Connecting Tech Pros Worldwide Forums | Help | Site Map

vb.net to asp.net

Newbie
 
Join Date: May 2008
Posts: 10
#1: Sep 17 '08
How do we change this set of code from vb.net to asp.net?
As this set of code is currently used in window form.In website form it said this set of code is not a member of 'Main'(website).
Thanks


If Me.txtMessage.InvokeRequired Then
Dim d As SetTextCallback = New SetTextCallback(AddressOf Me.SetStatusText)
Me.Invoke(d, New Object() {text})
Else
Me.txtMessage.Text = text
End If

jeffstl's Avatar
Expert
 
Join Date: Feb 2008
Posts: 414
#2: Sep 17 '08

re: vb.net to asp.net


Did you re-build the interface in a web form? In other words if this code used to be the processing for a windows application, a move to the web would require the interface be rebuilt as .aspx files.

If the interface is rebuilt and all your controls are named the same there shouldn't be any obvious reason this won't work, but there are alot of details that could be wrong such as the code-behind tags in your .aspx files, or the order of logic\processing.

Bottom line, probably need more detail to answer this effectively.
Reply