.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Home >> Interview Question >> C# >> Post New Question Subscribe to Interview Questions

What is Profile Based State in ASP State Management ?

Posted By :Srikanth     Posted Date :April 21, 2011    Points :40   Category :C# 
A profile based state is nothing but the state changes is saved permanently for a particular profile. That means the state is saved manually by the user. If there was no saving done the Default settings will be applied .

For Example .
If we login into igoogle.com, there if we have our customized page set once, untill and unless we change it delibrately it will be the same page.

You can also find related Interview Question to What is Profile Based State in ASP State Management ?  below: 

how to pass the values across webforms without using State Management Concepts:


public String CurrentCity
return TextBox1.Text;

In Page2.aspx

<%@ PreviousPageType VirtualPath="~/Page1.aspx" %>


Another Method:

In Page2.aspx

TextBox SourceTextBox = (TextBox)PreviousPage.FindControl("TextBox1");

Label1.Text = SourceTextBox.Text;


What are the different state management techniques used in asp.net for web applications?

In ASP.Net the state can be maintained in following ways
Server-side state management
Application objects
Session Variables
Client-side state management
Hidden input fields
Query String
ViewState (More...)

what are the different state management techniques in ASP.Net?

Asp.Net state management can be maintained in two ways as below
Client- Side State Management
ASP.Net provides following techniques to store state information. This will improve application performance by minimizing server resource utilization
1.View state
2. Hidden Fields
3. Cookies
4. Query Strings
Server - Side State Management
With respect to Server Side State Management ASP.Net uses "Application state" and "Session state" objects to store data or user state.

Read more: asp.net interview questions and answers | Introduction | FreeJobAlert.com http://www.freejobalert.com/explain-the-advantages- (More...)

State Management in ASP.NET

State Management
Type of state management in ASP.NET
1.InProc(Where session objects stored wit in IIS server)
2.OutProc(Where session objects store out of the server
a.State Server(where session objects can store in different server)
b.SQL server(where session objects can store in SQL server)

This can be configure in web.config file . (More...)

What are the client-side state management technique supported by ASP.NET?

Control state

View state


Hidden fields

Query strings (More...)

Session state vs View state

In some cases, using view state is not feasible. The alternative for view state is session state. Session state is employed under the following situations:
. Large amounts of data - View state tends to increase the size of both the HTML page sent to the browser and the size of form posted back. Hence session state is used.
. Secure data - Though the view state data is encoded and may be encrypted, it is better and secure if no sensitive data is sent to the client. Thus, session state is a more secure option.
. Problems in serializing of objects into view state - View state is efficient for a small set of data. Other types like DataSet are slower and can generate a very large view state (More...)

Which typically consumes more memory: application state or session state?

Session state tends to use much more memory than application state, because copies of all variables are stored for each user. (More...)

Which might not work if a user has disabled cookies in his or her Web browser: application state or session state?

Session state, by default, won't work if a Web browser that supports cookies has cookies disabled. Application state isn't user-specific, though, and doesn't need to be tracked in cookies. Therefore, application state works regardless of cookies. (More...)

What is View State Chunking?

View state chunking is new in ASP.NET, version 2.0.The ViewState property retains 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. If the data is too long for a single field (as specified in the MaxPageStateField-Length property), then ASP.NET performs view state chunking to split it across multiple hidden fields. (More...)

Is view state lost if a user refreshes a Web page? What if the user copies the URL and open it in other browser?

View state is maintained within a page's HTML, so it is lost if a page is refreshed or if the URL is copied. (More...)

Which typically consumes more memory: application state or session state?

Session state tends to use much more memory than application state, because copies of all variables are stored for each user. (More...)

Quick Links For Interview Questions Categories:
ASP.Net Windows Application   .NET Framework   C#   VB.Net   ADO.Net  
Sql Server   SharePoint   Silverlight   OOPs   JQuery   JavaScript/VBScript
Biztalk Patten/Practices .IIS WCF WPF WWF
Networking Aptitude Others   All      

Find questions, FAQ's and their answers related to .NET, C#, Vb.Net, Sql Server and many more.

Now you can find lots of .NET, C#, Vb.Net, SQL Server,Windows, ASP.Net related Questions and their Answers here at www.dotnetspark.com. Our aim is to help you pass your certification Exams (MCP, MCSD, MCAD etc.,) with flying scores and get good name in your company.

So, Start looking our Interview Question section daily and improve your .NET Skills. You can also help others by posting Interview Questions and their Answers in this section.

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend