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:
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>
EXTERNAL VB.NET DOC'S CODE:
Code:
Sub hello
headtitle.text = "HELLO WORLD!"
End Sub
If Not Page.IsPostBack Then
'...some code...
End If
RESULTING 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
Sub hello
headtitle.text = "HELLO WORLD!"
End Sub
If Not Page.IsPostBack Then
'...some code...
End If
End Sub
</script>
If anyone can show me how to do this, that would be great. Thanks.
KWilliams