Thursday, September 25, 2008

State the difference between a Session and an Application

Total Answers and Comments: 5
Last Update: September 19, 2008 Asked by: lakshminarayanan



ecember 20, 2006 05:55:09 #1




RE: State the difference between a Session and an Appl...

the session object is used to maintain the session of each user. If one user enter in to the application then they get seesion id if he leaves from the application then the session id is deleted.If they again enter in to the application they get different session id.

  But for application object the id is maintained for whole application.it doesn't differ


Is this answer useful? Yes | No


December 24, 2006 02:50:03 #2
shree

RE: State the difference between a Session and an Appl...

sessions allows information to be stored in one page and accessed in another,and it supports any type of object,including your own custom data types.

Application state allows you to store global objects that can be accessed by any client.

The coomon thing b/w session and application is both support the same type of objects,retain information on the server, and uses the same dictionary -based syntax.


Is this answer useful? Yes | No


January 11, 2007 14:05:27 #3
roopali

RE: State the difference between a Session and an Appl...
application state is a state where we hav the information that is global for the application,
where as
session state is a state which is maintained as a per-client basis.
whenever a user first accesses a page a session id is generated by asp.net.
that session id is then transmitted between the client and the server via Http either with the help of client-side cookies or encoded in a mangled sessions of the urls.
so the next time the users accesses,state associated with that session id can be viewed or modified.

Is this answer useful? Yes | No


February 19, 2007 16:00:15 #4
yv_harish

RE: State the difference between a Session and an Appl...
Question is vague......It should be.......According to the answers poated
What is the difference between Session object and Application object?

Is this answer useful? Yes | No


September 19, 2008 09:32:21 #5
Inturi
Member Since: September 2008 Contribution: 2

RE: State the difference between a Session and an Application

1) Application object is created when first request comes to the web server related the web application. Inside the application sessions will be created.

2) Application variables are global. you can access across the sessions. where as the session variables are related to particular session only.

RE: how to load data from one page to another page in asp.net
Wecan load data from one page to another page by using these ways:
1.We can pass the data from one page by using context object if we are using server.transfer method to redirect the user.
2.We can use query string
3.We can use session variable
4.We can use crosspage postback for this.
5.By using properties
What are the uses of Reflection?
1. Viewing Metadata.
2.Performing type discovery.
3.Late binding to methods and properties (dynamic invocation)
4.Creating new types at runtime(Reflection EMIT)


The differences are
1. Repeater is generally used as a read-only forward-only control displaying data items one by one. DataList is used as a read-write control displaying one row of data at a time. Repeater is not used when editing is a requirement.
2. Repeater derives from Control while DataList derives from WebControl. As a result Repeater needs more programming to control the display, generate events etc. and is not used for complex purposes.
3. DataList is flexible in terms of number of data-rows which can be displayed per row. Repeater does not have this facility.
4. Repeater is the only control which allows html start tag to be placed in header item template and end tag to be placed in the footer item template. DataList does not allow this.
5. Repeater has HeaderTemplate, FooterTemplate, ItemTemplate, AlternatingItemTemplate and SeparatorTemplate. DataList has all these 5 templates + SelectedItemTemplate and EditItemTemplate

No comments: