View State

G

Guest

Hi
Im having one doubt in Viewstate. Actually Viewstate is used to maintain the
state of the controls for postback of the page. If I Set the Page level
EnableViewState=False and the Viewstate for the control (say Textbox) as
False. Now Im posting form for process then again im getting the value in the
textbox(i disabled the viewstate) then why?
 
C

Cor Ligthert

Sundar,

When you set the viewstate to false the let desrtiption of the properties of
the textbox is not in a viewstate however inline in HTML code.

Open for that the sourcecode from a showed page than you will see that.

I hope this helps?

Cor
 
G

Guest

Thanks Cor
I got the answer.
Actually I expect if I disable the viewstate the data may not be loaded. But
its wrong the data will be loaded by the load postdata event. In the
loadviewstate it loads only the State of the Control. for Example
TextBox1.Font.Bold=True like this.

B. Sundar
 

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

Top