vb.net to asp.net

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • cherychoclatecandy
    New Member
    • May 2008
    • 10

    vb.net to asp.net

    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.I nvokeRequired Then
    Dim d As SetTextCallback = New SetTextCallback (AddressOf Me.SetStatusTex t)
    Me.Invoke(d, New Object() {text})
    Else
    Me.txtMessage.T ext = text
    End If
  • jeffstl
    Recognized Expert Contributor
    • Feb 2008
    • 432

    #2
    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\processin g.

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

    Comment

    Working...