What is the role of global.asax?

Answer Posted / joicy

The Global.asax file is an optional file that can contain
declarations of objects, variables, and methods that can be
accessed by every page in an application.The Global.asax
file can contain only the following:

Application events
Session events
<object> declarations
TypeLibrary declarations
the #include directive
The Global.asax file must be stored in the root
directory of the application, and each application can only
have one Global.asax file.

Is This Answer Correct ?    6 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which protocol is used to call web service?

562


What is rich control in asp.net?

525


while developing webservices if i want some users to use my webservice only how can i give security to my webservice?

1411


What is enableviewstate in asp net?

527


How can you make sure that web api returns json data only?

518






What is viewstate in asp net with example?

526


What is the difference between viewstate and hidden field in asp.net?

488


Why is global asax is used?

614


What are session state modes?

568


a web application needs to be created to accept the product name and quantity of a toy from a customer. After the customer has entered the product name the application needs to display the discounted price of the product to the customer (company is offering 35% discount on all products). The application should allow the customer to select the product name from a list box. and also while i'm data binding to a label with custom data binding with some declarations : "The Discounted Price is "+((System.Convert.todouble(lblprodprice.text)*(system.convert.todouble(txtqty.text)) - ((System.convert.todouble(lblprodprice.text)*(system.convert.todouble(txtqty.text)*0.35)). Where i need to give this declaration in asp.net 2.0.

1444


Define machine.config in .net?

555


What are the advantages of Web API?

639


How does asp.net page work?

525


what is AutoEventWireUp and what is the use of This property explain in details?

1133


What is cross page posting? How is it done?

555