I'm a newbie to VB.NET, and I need to know how to call code from an external VB.NET file from within method body. I was thinking something like this:
CODE:
EXTERNAL VB.NET DOC'S CODE:Code:<script runat="server"> Sub Page_Load(sender As Object, e As EventArgs) 'Code for this page '...some code... 'Code from external VB.NET doc goes here - HOW??? End Sub </script>
RESULTING CODE:Code:Sub hello headtitle.text = "HELLO WORLD!" End Sub If Not Page.IsPostBack Then '...some code... End If
If anyone can show me how to do this, that would be great. Thanks.Code:<script runat="server"> Sub Page_Load(sender As Object, e As EventArgs) 'Code for this page '...some code... 'Code from external VB.NET doc Sub hello headtitle.text = "HELLO WORLD!" End Sub If Not Page.IsPostBack Then '...some code... End If End Sub </script>


Reply With Quote
Bookmarks