Can you give an example of what might be best suited to
place in the Application_Start and Session_Start subroutines?

Answer Posted / sulochana singh

The Application_Start event is guaranteed to occur only once throughout the lifetime of the application. It's a good place to initialize global variables. For example, you might want to retrieve a list of products from a database table and place the list in application state or the Cache object. SessionStateModule exposes both Session_Start and Session_End events.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are merge modules?

562


What are validator? Name the validation controls in asp.net? How do you disable them? Will the asp.net validators run in server side or client side? How do you do client-side validation in .net? How to disable validator control by client side javascript?

558


Why do we need Sessions?

586


How we implement web farm and web garden concept in asp.net?

549


Is it possible for me to change my aspx file extension to some other name?

589






What is Bundling and Minification in MVC?

586


Why and where this web.config file is used?

599


What is the difference between debug and release?

526


What are the ways to sending the data in ASP.NET page?

572


In a Repeater control how one can provide an alternating color scheme ?

573


What is an assembly? Explain its parts.

637


Which is better union or union all?

564


What is syntax code to send email from an asp.net application?

536


What is datagrid asp.net?

501


From which base class all web forms are inherited?

507