What is the difference between application object and
session object?

Answer Posted / anand gopal makwa munger

You can use Application to store information that is accessible from all web page but it is not user-specific.To initialized application variable respond to the Application_Start event in Your Global.asax File

You can use Session to store user-specific information that is accessible from all web page. To initialized session variable respond to the Session_Start event in Global.asax File.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is difference between cookies and cache?

775


What is the question mark in a url?

723


Which browsers support the xmlhttprequest object?

714


What's the use of formatters in .net?

785


What are the layouts of ASP.NET Pages?

809


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?

773


To get the values in two different controls to match which control you use it?

801


How can i explain my project during interview?many time i expalain my project but they did't accept? please explain me.

5303


Is post back property in asp net?

752


What is the difference between mvc (model-view-controller) and mvp (model-view-presenter)? : asp.net mvc

772


What is jade template engine?

793


How do u optimize a query in asp.net?

769


8. Why do you want to work here?

1671


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.

1638


How can you implement encapsulation in asp.net?

12058