What are the Application_Start and Session_Start
subroutines used for?

Answers were Sorted based on User's Feedback



What are the Application_Start and Session_Start subroutines used for?..

Answer / ananta

Whenever the application starts, this subroutine is fired,
So you can place codes here that is specific to the
application start event, say want to log when application
starts.
Code in Session_Start will be executed every time a new
session is started (e.g. a new user visits the site).

Is This Answer Correct ?    11 Yes 0 No

What are the Application_Start and Session_Start subroutines used for?..

Answer / elango

application_start is executed when the first time the
application get executed.This is useful to findout total no
of users visted in that website and etc.
Session_start will get executed when each unique user enter
in to the application here u can access session specific
values,username ,pwd etc.

Is This Answer Correct ?    7 Yes 0 No

What are the Application_Start and Session_Start subroutines used for?..

Answer / srikanth

Application_Start is fired when the application loads first
time. Here use static data only.Do not use instance data
this is recommended.


Session_Start is fired when a user enters in to the
application.(when he requests first time.)

Is This Answer Correct ?    4 Yes 0 No

What are the Application_Start and Session_Start subroutines used for?..

Answer / radha

This is where you can set specific variables to the
apllication and session objects.

Is This Answer Correct ?    3 Yes 1 No

What are the Application_Start and Session_Start subroutines used for?..

Answer / devi

This is where you can set the specific variables for the
Application and Session objects.

Is This Answer Correct ?    2 Yes 0 No

Post New Answer

More ASP.NET Interview Questions

What are the best practices to follow to secure connection strings in an ASP.NET web application?

0 Answers   MCN Solutions,


Describe the .net base class library.

0 Answers  


How is session id generated?

0 Answers  


I am using a range validator and want to use dd mm yyyy format for accepting dates. I get a fairly generic "can't do that" type exception when I use this format for setting the minValue or maxValue properties for the range validator. How can I force it to accept my format?

1 Answers   FutureTech,


Below is a code extract from an ASP.Net application. The code basically reads data from the “name” field in the “members” table and prints them onto the webpage. Using the assumptions provided, fill in the 4 blanks below so that the code will run correctly. ‘Assumptions: ‘conn_str is a variable that holds the connection string to the database ‘Objects dbcomm and dbread are already declared earlier dbcomm = New OleDbCommand("SELECT name FROM members", conn_str) dbread = dbcomm._______________ _____________________ response.write(_______________) _____________________ dbread.Close()

4 Answers   Techno Solutions,






what is SQL cache Invalidation?

1 Answers  


what is NET Framework ?

4 Answers   TCS,


Using code explain Configuration Management

0 Answers  


1.What r collections? 2.What is .pdb file? 3.Is it possible to provide access to users in master page? 4.What is dirty n Phantom Read(SQL)? 5.What r different isolation levels(SQL)? 6.How to set authentication mode in web.config file?

0 Answers   TCS,


Explain why datareader is useful?

0 Answers  


What is Partial PostBack in ASP.NET?

0 Answers   Viscus Infotech,


Is it possible to disable the minimized icon of a popup window using window.open. Not using iframe concept?

3 Answers   AFAS, Take United,


Categories