Request.Form or IsPostBack and ViewState

  • Thread starter Thread starter paul.hester
  • Start date Start date
P

paul.hester

Hi all,

I'm in two minds about whether to use IsPostBack and ViewState or
Reqest.Form for handling form data.

Is there any advantage in using the old Request.Form method, other than
generating less HTML for the page? Has anyone ever seen any reason to
keep using this method.

Thanks,

Paul
 
The main reason I usualy make the distinction is if I am building my
own controls dynamicaly that need viewstate. In this case the control
must look exactly the same way before viewstate is loaded as when
viewstate was saved. Repeaters are an example of this type of
control. In general ViewState is easier to work with. Thats why it is
there.
 

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

Back
Top