ENABLEVIEWSTATE: Yes-No. Where's the difference ?

T

teo

I set to False
the EnableviewState
of the Page
and
of all the controls on it
(up to ten, Radiobuttons,Teextbox, Listbox...).

I run it, I populated it, I Response.Redirected to itself
then I read with Notepad the resulting HTML .


The I set the EnableviewState of all the stuff (Page and controls)
to True,
run it, I populated it, I Response.Redirected to itself
then I read with Notepad the resulting HTML.


I notice no differences, and I always found this:

<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE"
value="/wEPDwUJLTgzNzg2Mzg1ZBgBBR5fX0NvbnRyb2xzUmVxdWlyZ
VBvc3RCYWNrS2V5X18WCwUMUmFkaW9CdXR0b24xBQxSYWRpb0J
1dHRvbjUFDFJhZGlvQnV0dG9uMwUMUmFkaW9CdXR0b242BQxSYWR
pb0J1dHRvbjYFDFJhZGlvQnV0dG9uNAUMUmFkaW9CdXR0b240BQxSY
WRpb0J1dHRvbjIFDFJhZGlvQnV0dG9uMgUITGlzdEJveDEFDEltYWdlQn
V0dG9uMX+ZqgDt34Afc7GRf4TwsUC3T85p" />
 
J

Jacek Stawicki

Uzytkownik "teo" <[email protected]> napisal w wiadomosci

So,
are there differences from EnableviewState False to True?
Where can I see them?

Instead of Response.Redirect try to invoke post method. I'll see that form
remains values of the controls in _ViewState.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,816
Latest member
SapanaCarpetStudio

Latest Threads

Top