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

How to retrieve form field value if form is EncType=multipart/form-dataForm?

P: n/a
I know I can use controlName.Value to retrieve the form fields value if
I am in that page. But if I am out of the page, for example I am in a
HttpModule, I want to retrieve a hidden filed value, Is that possible?
if so how? Thanks!
Nov 19 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
in the module you can use context.Request.Form

This contains the form values (and the hidden values)

Nov 19 '05 #2

P: n/a
Thanks for your reply. Since the form is used for uploading files, The
enctype already set to be multipart/form-data, I don't think we can use
request.form or request.params to access those fields.

Actually, I tried both, it won't work, so I am wondering is there any
way I could retrieve the value of those fields?

Thanks!

ga**********@gmail.com wrote:
in the module you can use context.Request.Form

This contains the form values (and the hidden values)

Nov 19 '05 #3

P: n/a
I tried, you are right. I can access them by Request.Form. I made a
mistake. Sorry. Thanks for your reply. :)

ga**********@gmail.com wrote:
in the module you can use context.Request.Form

This contains the form values (and the hidden values)

Nov 19 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.