global-asax
global.asax Protect Page
How can I protect a Page in Global.asax to prevent direc access like http://yourapp/Login.aspx, so that you开发者_StackOverflow中文版 need to log before you can get through that page.You can use Forms[详细]
2023-03-16 00:48 分类:问答How can I redirect a site based on date in ASP.NET MVC?
I\'m trying to find the best way to redirect a user to a page based on the current date. Exactly What I\'m trying to accomplish is in the code below.[详细]
2023-03-13 22:09 分类:问答Where the methods of Global.asax come from?
When I add Global.asax to the page, five methods (Application_Start,Session_Start,...) are added to the page automatically. But where they come from ? I loo开发者_运维百科ked at the application class[详细]
2023-03-13 12:59 分类:问答Application_Start not behaving correctly in ASP.Net 4.0 Application
I\'m stumped. I ran t开发者_StackOverflow社区hrough all the recommendations on StackOverflow and Google... no joy.[详细]
2023-03-13 12:42 分类:问答The Application_PreRequestHandlerExecute event doesn't fire for PageMethods. What can I use instead?
This article explains that the PreRequestHandlerExecute event does not fire for PageMethod calls for whatever reason. However, I\'m trying to use that event to populate the Principal object with the u[详细]
2023-03-13 04:08 分类:问答asp.net - global.asax in asp.net 2.0 app
I created a global.asax file for an asp.net application. I run some code in the session_start method. The code does not get executed. Is there some type of procedure for using a global.asax file in as[详细]
2023-03-13 01:16 分类:问答Where is the Global.asax.cs file?
I am using VS 2008. I have created a new Asp.net web site project from File->New->Website->Asp.net Website.[详细]
2023-03-11 05:33 分类:问答Start Application_Start again on a shared hosting?
Iam on a sh开发者_JAVA技巧ared hosting plan using asp.net mvc 3. In my Application_Start I start my Quartz scheduler and have some jobs run. However some don\'t seem to be running or something is wron[详细]
2023-03-10 06:04 分类:问答How to use page OutputCache and VaryByCustom to take into account multiple criteria in ASP.NET 2.0+?
We have a site that is multi-lingual and has some personalization after the user\'s login (e.g. headers show different links, the user\'s username, etc.), but we would like to cache particular public[详细]
2023-03-08 05:27 分类:问答Does Application_OnStart in global.asax work with cached pages?
I\'d like to implement a counter in global.asax so I can do a giveaway on my site every xxx visits. The question is, if my page is served from the ASP.NET cache, w开发者_C百科ill the counter still upd[详细]
2023-03-07 12:18 分类:问答