VBScript's Execute statement equivalent in .NET?

G

Guest

Hi all

as I am converting a client's software to asp.net, I encountered a problem with what I used to have with asp, the VBScript's execute/executeglobal statement. What's VB.NET's equivalent to this statement

Thanks
 
M

[MSFT]

Hello,

Thank you for using the community.

Regarding the question, we can still use VBScript and those functions in
ASP.NET code behind. For a .NET solution, you may take a look at
System.Reflection namespace. The classed in this namespace provide more
powerful functions than execute/executeglobal statement. With them, we can
create Type and invoke its method at runtime. For more information about
System.Reflection, you may refer to:

HOW TO: Create An Assembly at Runtime and Call Methods
http://support.microsoft.com/default.aspx?scid=KB;EN-US;Q821778

Discovering Type Information at Run Time
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/htm
l/cpcondiscoveringtypeinformationatruntime.asp

Hope this help,

Luke
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top