Request.Forms.Clear()

  • Thread starter Thread starter Shahid Juma
  • Start date Start date
S

Shahid Juma

Hi,

I tried using Request.Forms.Clear() but it says it is only a read-only
property.

I have a form and that same form has to be filled out 3 times and what
I am trying is to clear the values once it is filled and automaitcally
change the label and load the same form again to record.

Any ideas?

Thanks in advance,
Shahid
 
Try copying the Request.Forms to another collection which you can manipulate
as you wish. If you search for the HttpRequest.Form Property in the msdn
library you will get a complete description of this read-only property and
for examples in using a collection to get its content.
 
If this is to prevent ASP.NET to keep those values you could instead clear
the fields (MyTextBox.Text="")...

By design it holds values submitted to the server by the user (i.e. it is
readonly).

Patrice
 

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