Asp .Net Interview Question and Answer | Web Application | Session 11

101. Disadvantages of using Session State ?   
Ans: Disadvatages:
         1. It is not advisable to use session state when working with large sum of data.Because Data in session state is stored in server memory.
          2. Too many variables in the memory effect performance. Because session state variable stays in memory until you destroy it.  
 
102. Advantages of using Session State? 
Ans: Advantages:
1. It is easy to implement.
2. Ensures platform scalability,works in the multi-process configuration.
3. Ensures data durability, since session state retains data even if ASP.NET work process restarts as data in Session State is stored in other process space.
 
103. What is the Session Identifier?  Ans:Session Identifier is :
1. To identify session.
2. It has SessionID property.
3. When a page is requested, browser sends a cookie with a session identifier.
4. Session identifier is used by the web server to determine if it belongs to an existing session or not. If not, then Session ID is generated by the web server and sent along with the response. 
 
104. What is SessionID? 
Ans: To identify the request from the browser used sessionID. SessionId value stored in a cookie. Configure the application to store SessionId in the URL for a "cookieless" session. 
 
105. Describe Server – Side State Management ?   
Ans: Sever side state managment provied Better security,Reduced bandwidth.
          1. Application State: This State information is available to all pages, regardless of which user requests a page.
          2. Session State – Session State information is available to all pages opened by a user during a single visit.
 
106. Discribe Client – Side State Management?  
Ans: Client side state managment have:
         a. Stores information on the client's computer by embedding the information into a Web page.
         b. A uniform resource locator(url).
         c. Cookie.
To store the state information at the client end terms are:
         1. View State:It is used by the Asp.net page framework to automatically save the values of the page and of each control just prior to rendering to the page.Asp.Net uses View State to track the values in the Controls. You can add custom values to the view state.
         2. Control State:When user create a custom control that requires view state to work properly, you should use control state to ensure other developers don’t break your control by disabling view state.
         3. Hidden fields:Like view state, hidden fields store data in an HTML form without displaying it in the user's browser. The data is available only when the form is processed.
         4. Cookies: Cookies store a value in the user's browser that the browser sends with every page request to the same server. Cookies are the best way to store state data that must be available for multiple Web pages on a web site.
         5. Query Strings: Query strings store values in the URL that are visible to the user. Use query strings when you want a user to be able to e-mail or instant message state data with a URL.

107. Define State managment?
 
Ans: This is passible to at a time many request occures.State management is the process by which maintained state and page information over multiple requests for the same or different pages.
Two types of State Managment:
1. Client side state managment:This stores information on the client's computer by embedding the information into a Web page,uniform resource locator(url), or a cookie.
2. Server side state managment: There are two state Application State,Session State. 


108. What are the different states in ASP.NET?
 
Ans: There are three types of state:
1. View state: Under the client-side state managment.The ViewState property provides a dictionary object for retaining values between multiple requests for the same page. When an ASP.NET page is processed, the current state of the page and controls is hashed into a string and saved in the page as a hidden field.
2. Application state:Under the server side state managment. ASP.NET allows you to save values using application state, a global storage mechanism that is accessible from all pages in the Web application. Application state is stored in the Application key/value dictionary.
3. Session state:Under server side state managment . ASP.NET allows you to save values using session state, a storage mechanism that is accessible from all pages requested by a single Web browser session.
 
109. Whether we can use vbscript and javascript combination for validation? 
Ans: WE cant use them togather,since compiler are different.
Ques: 80 What is GAC and name of the utility used to add an assembly into the GAC ?
Ans:
GAC(Global Assembly Cache) for an effective sharing of assemblies.GAC refers to the machine-wide code cache in any of the computers that have been installed with common language runtime.Global Assembly Cache in .NET Framework acts as the central place for private registering assemblies.
"gacutil.exe" utility used to add assembly in GAC

110. What is the Purpose of System.Collections.Generic ? 
Ans: For more safty and better performance strongly typed collections are useful for the user. System.Collections.Generic having interfaces and classes which define strongly typed generic collections.
Previous Next


:: Click the links below for similar type Questions and answers ::

1 comments:

Anonymous said...

Nice post. Keep posting asp.net interview questions

Post a Comment

 
Design by Wordpress Theme | Bloggerized by Free Blogger Templates | coupon codes