Ok I am wanting to learn more about how ASP.Net works under the hood. I mean beneath MVC or Webforms and other such frameworks.
I have custom errors set in the web config file as follows: <customErrors mode=\"RemoteOnly\" defaultRedirect=\"GenericError.aspx\" />
I have this authentication check in my global.asax file in the Session_OnStart() call: if (Session[\"Authenticated\"] == null)
I am using the Application_Error event for handling the exceptions and it catches almost all exceptions correctly. However in some pages it catches with exception \"File does not exist\" and I am not
I\'m using MVC2 and VS2010 developing a website and need to use Application State global values. I can set a value like \'Application[\"hits\"]=0;\' in Global.asax but when trying to use the same in a
I am trying to check if the user belongs to someone\'s friendlist from the database and redirect him accordingly.
I\'m using Forms authentication on my MVC website. I administrate users and roles using the default ASP.NET Configuration option in Visual Studio. All good so far.
In which part of the Global.asax lifecycle can I safely \'use\' the User object? I\'m using the default forms authentication and noticed the following:
I\'m trying to get a reference to the user object in my Global.asax file\'s Application_BeginRequest. I\'m using the property Context.User but I 开发者_StackOverflowget a NullReferenceException. Is it
the code to strip /Default.aspx and //www is not working (as expected): protected void Application_BeginRequest(object sender, EventArgs e)