Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Equivalent to Macro Expansion in VB.Net
Message
From
16/09/2008 02:55:55
 
 
To
15/09/2008 22:15:56
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
VB 9.0
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01347794
Message ID:
01347826
Views:
8
>Hi all,
>
>I have the following codes:
>
> Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
> Dim myForm As New rptLveForm
> Dim doc As Document = myForm.Execute(Request("filterParameter"))
>
> SendToBrowser(doc, Request("outputFormat"))
> Response.End()
> End Sub
>
>I want to change to:
>
> Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
> Dim myForm As New &(Reques("rptForm"))
> Dim doc As Document = myForm.Execute(Request("filterParameter"))
>
> SendToBrowser(doc, Request("outputFormat"))
> Response.End()
> End Sub
>
>How to do that for &(Reques("rptForm")) in VB.Net?

Hi,

It's not macro expansion but in this case you probably need Activator.CreateInstance
HTH,
Viv
Previous
Reply
Map
View

Click here to load this message in the networking platform