urgent help: tomorrow 70-315 exam

  • Thread starter Thread starter fj
  • Start date Start date
F

fj

Question about ViewState

I disabled ViewState of the page. The page has textbox(empty) and label
(empty text) and button. When the button click and post back. text input in
textbox still remains and label is set in the button click event handler.
There are still "__viewstate" hidden field in page HTML source code.

Should the textbox be empty when postback? If viewstate is disabled, who set
the value of the textbox.

-fj
 
You are in the same session. The browser maintains some objects' image in
memory. You must have accessed the pge first with ViewState enabled and
changed it to disabled and then recompiled and Refresh-ed the page.

Close the browser window after changing EnableViewState's value from enabled
to diabled.

with regards,

J.V.
 
Back
Top