You cant do this sort of thing inside a module using a #include type statement.
However - you could possibly use a HTML scape type function to load the HTML markup output of your old aspx into a module at runtime.
Doing this sort of thing is however potentially fraught with all sorts of problems.
1. URLs that link around your OLD site would all need to be remapped -
2; Any forms or buttons or buttons wont work - and neither would client site vbscript potentially.
3. SInce the HTML is now being forced to fit inside the constraints of a MODULE label the results would potentially look wrong.
Having said all that - if you want a quick and dirty scraper module try the following:
1. Create a new module
2. Place a label control in the ascx of the module
asp:Label ID="lblPlaceholder" runat="server" Text="Label"></asp:Label>
<
Then in page_load event of the ascx.vb codebehind of the module you would do something like this:
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load, Me.Load
' GET THE URL TO LOAD SOMEHOW
'- Most Likely use a module setting of some type
'- or by passing in a URL as part of a query string
' for now lets just hard code it
Dim myUrl as String = "http://mysite.com/somefile.aspx"
Dim myHTML as String = GetHTML( myUrl )
' IF you original HTML contails any URL links you will need to remap these somehow.
' a query string would be the most useful way of doing that
lblPlaceholder.text = myHTML
End Sub
Private Function GetHTML(url As String) As String
Dim wReq As WebRequest = System.Net.HttpWebRequest.Create(url)
Dim sr As New StreamReader(wReq.GetResponse().GetResponseStream())
Dim result As String = sr.ReadToEnd()
sr.Close()
Return result
End Function 'GetHTML
>>>>>>>>>>>>
But frankly - me thinks it would be more trouble that its worth - and maybe an IFRAME would really be the much better option.
Westa