i dont have enough idea about global.asax,,Can any one tell about global.asax
+3
A:
How about asking Google first?
http://aspalliance.com/1114_Understanding_the_Globalasax_file http://quickstart.developerfusion.co.uk/QuickStart/aspnet/doc/applications/globalasax.aspx http://msdn.microsoft.com/en-us/library/2027ewzw.aspx
Start there, and then ask if there's something more specific that you don't understand. Your question as it is now is a bit too general to answer efficiently here.
Marcus L
2009-03-20 13:16:04
Thank you ,,i will google
peter
2009-03-20 13:18:33
+ (i would do more if i only could!!)
Andreas Niedermair
2009-03-25 14:48:38
+1
A:
Specify language in block
<%@ Application Language="C#" %>
Do some includes
<%@ Import Namespace="System" %>
<%@ Import Namespace="System.Reflection" %>
<%@ Import Namespace="System.Resources" %>
<%@ Import Namespace="System.ServiceModel" %>
<%@ Import Namespace="System.Text.RegularExpressions" %>
<%@ Import Namespace="System.Web" %>
<%@ Import Namespace="Aivea.Services.Acs" %>
Then there are bunch of functions which are executed by asp at some point in this order
- Application_BeginRequest - when user opens any page in solution Session_Start - when new session is
- created. New session could be created when user first visits the page or on other programmer defined action (like login)
- Application_Error - when exception is not cought by any other code
Application_BeginRequest calls two functions:
- ReqriteUrl - parses request url (for example: example.com/-P1.aspx), gets page id and type , and then opens Categories.aspx, ProductsDetails.aspx or CustomContentPage.aspx depending on type and passing Id parameter to it
- SetCulture - sets language and culture from cookies parameters
Session_Start does something I can't exactly explain to you, because it looks like a business logic to mee
Sergej Andrejev
2009-03-20 13:29:29