Groups | Blog | Home
all groups > asp.net > march 2004 >

asp.net : VBScript's Execute statement equivalent in .NET?


Samuel
3/13/2004 11:46:05 PM
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

lukezhan NO[at]SPAM online.microsoft.com
3/15/2004 9:15:35 AM
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.)
AddThis Social Bookmark Button