From Session_Start I call: MyFunction (this) that detects the type of system in use.Upon receiving this in the function, I look in the debug and indicate that "this" is type "dynamic {ASP.global_asax}".If I enter "this is ASP.global_asax" answer true.
But it does not allow me to write this same line in code.
1.- How can I detect the type ASP.global_asax 2.- What is the correct way to detect the Aspx system.I now use System.Web.HttpContext.Current! = Null
Well, the keyword "this" in Session_Start refers to the Global_asax class since Session_Start is a member of the Global_asax class. The same holds true for any class in the .NET framework.
Can you explain the problem you are string to solve?
All-Star
53621 Points
23983 Posts
Re: ASP.global_asax Type
Dec 28, 2019 04:02 PM|mgebhard|LINK
Well, the keyword "this" in Session_Start refers to the Global_asax class since Session_Start is a member of the Global_asax class. The same holds true for any class in the .NET framework.
Can you explain the problem you are string to solve?