Click here to Skip to main content
15,921,577 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionProblem with Magic Ajax Pin
jith - iii9-May-06 19:33
jith - iii9-May-06 19:33 
QuestionCustom Control post back raises Validation Control's Validate event Pin
MihirV9-May-06 19:27
MihirV9-May-06 19:27 
Questiondifference between datalist and datagrid Pin
amaneet9-May-06 19:04
amaneet9-May-06 19:04 
AnswerRe: difference between datalist and datagrid Pin
J4amieC9-May-06 21:59
J4amieC9-May-06 21:59 
Questionview state in asp.net 1.1 Pin
amaneet9-May-06 19:01
amaneet9-May-06 19:01 
AnswerRe: view state in asp.net 1.1 Pin
_AK_9-May-06 19:17
_AK_9-May-06 19:17 
AnswerRe: view state in asp.net 1.1 Pin
CWIZO9-May-06 19:40
CWIZO9-May-06 19:40 
AnswerRe: view state in asp.net 1.1 Pin
chinnasrihari9-May-06 19:58
chinnasrihari9-May-06 19:58 
View state in asp.netSmile | :)

Let us consider a simple Scenario

We have a work flow kind of application. Where we need to enter lot of information in each page and we are navigating accross pages. We may get error at any page. and we have final save.

In classic ASP it was user responsiblity to maintaining the data entered in all the pages some place and we used to use session variables or quering string variables while navigating accross pages.

That means when a form is submitted in classic ASP, all form values are cleared. Suppose you have submitted a form with a lot of information and the server comes back with an error. You will have to go back to the form and correct the information. You click the back button, and what happens, ALL form values are cleared, and you will have to start all over again! The site did not maintain your ViewState.

But in the case of ASP .NET, the form maintains your ViewState. The ViewState indicates the status of the page when submitted to the server. The status is defined through a hidden field placed on each page with a control.

This happen (ASP.net) when the ctrl's EnableViewState property set to True (by defaule). using unnecessary ViewState leads to performance hit for the application. And there are n' number of of issues.


Smile | :) Hope this helps.

Chinna Srihari
Tech Lead, Capgemini.
QuestionGridView Paging Pin
Rajiya9-May-06 18:57
Rajiya9-May-06 18:57 
AnswerRe: GridView Paging Pin
_AK_9-May-06 19:15
_AK_9-May-06 19:15 
QuestionFck Editor Error -: XML request :Internal Server 500. Pin
Amit Agarrwal9-May-06 18:43
Amit Agarrwal9-May-06 18:43 
Questionemail sent automatically from .aspx page Pin
lehya9-May-06 18:42
lehya9-May-06 18:42 
AnswerRe: email sent automatically from .aspx page Pin
CWIZO9-May-06 19:41
CWIZO9-May-06 19:41 
AnswerRe: email sent automatically from .aspx page Pin
chinnasrihari9-May-06 20:23
chinnasrihari9-May-06 20:23 
QuestionWhich way is the Page_Load event? Pin
Raul Davila9-May-06 13:24
Raul Davila9-May-06 13:24 
AnswerRe: Which way is the Page_Load event? Pin
minhpc_bk9-May-06 15:17
minhpc_bk9-May-06 15:17 
Questionneeed help about backtalk plz Pin
ksar0019-May-06 12:26
ksar0019-May-06 12:26 
QuestionAllowing html inside a textbox control Pin
Ista9-May-06 10:48
Ista9-May-06 10:48 
AnswerRe: Allowing html inside a textbox control Pin
Daniel Santillanes9-May-06 12:56
professionalDaniel Santillanes9-May-06 12:56 
AnswerRe: Allowing html inside a textbox control Pin
chinnasrihari9-May-06 20:34
chinnasrihari9-May-06 20:34 
QuestionHow to Prepare a Combined Setup using .NET 2.0 Pin
VenkataRamana.Gali9-May-06 9:14
VenkataRamana.Gali9-May-06 9:14 
Questionfiles Pin
irshan9-May-06 6:49
irshan9-May-06 6:49 
AnswerRe: files Pin
CWIZO9-May-06 8:43
CWIZO9-May-06 8:43 
QuestionDynamic breadcrumbs Pin
leckey9-May-06 5:36
leckey9-May-06 5:36 
AnswerRe: Dynamic breadcrumbs Pin
J4amieC9-May-06 5:39
J4amieC9-May-06 5:39 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.