By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,453 Members | 3,183 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,453 IT Pros & Developers. It's quick & easy.

Request.Forms.Clear()

P: n/a
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

Nov 19 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
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.
---
www.societopia.net
"Shahid Juma" wrote:
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

Nov 19 '05 #2

P: n/a
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

--

"Shahid Juma" <sh*********@gmail.com> a écrit dans le message de
news:11**********************@g14g2000cwa.googlegr oups.com...
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

Nov 19 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.