tags:

views:

276

answers:

2

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
Thank you ,,i will google
peter
+ (i would do more if i only could!!)
Andreas Niedermair
+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

  1. Application_BeginRequest - when user opens any page in solution Session_Start - when new session is
  2. created. New session could be created when user first visits the page or on other programmer defined action (like login)
  3. Application_Error - when exception is not cought by any other code

Application_BeginRequest calls two functions:

  1. 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
  2. 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
thank you Sergej Andrejev,for your valuable informations
peter