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

Changing Request.Form collection values

P: n/a
Hello,

I'm using HttpModule to capture requests to the web server. Before
processing the page I'd like to check the values contained in some keys
of the Request.Form collection and according to some logic change if
necessary. I'd like to do this when BeginRequest event is fired. The
problem is that the Request.Form collection is readonly.

Is there any way to accomplish this task ?

Thanks is advance

Feb 9 '06 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Not via Request.Form. Rather, store the values you want in Context.Items,

http://www.odetocode.com/Articles/111.aspx
http://openmymind.net/index.aspx?documentId=6#context

Karl

--
http://www.openmymind.net/

<Ko***********@gmail.com> wrote in message
news:11**********************@o13g2000cwo.googlegr oups.com...
Hello,

I'm using HttpModule to capture requests to the web server. Before
processing the page I'd like to check the values contained in some keys
of the Request.Form collection and according to some logic change if
necessary. I'd like to do this when BeginRequest event is fired. The
problem is that the Request.Form collection is readonly.

Is there any way to accomplish this task ?

Thanks is advance

Feb 9 '06 #2

P: n/a
The Request object represents a message sent from the client. Can you change
what someone on the other end of a telephone line has just said to you?
Obviously not. Neither can you change the message that was just sent from
the client.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
We got a sick zebra a hat,
you ultimate tuna.
<Ko***********@gmail.com> wrote in message
news:11**********************@o13g2000cwo.googlegr oups.com...
Hello,

I'm using HttpModule to capture requests to the web server. Before
processing the page I'd like to check the values contained in some keys
of the Request.Form collection and according to some logic change if
necessary. I'd like to do this when BeginRequest event is fired. The
problem is that the Request.Form collection is readonly.

Is there any way to accomplish this task ?

Thanks is advance

Feb 9 '06 #3

P: n/a
Hi,

If you are changing the values of a control, get the control by using
Request.Form.FindControl method. Modify the value of the control with
the help of control object.

Thanks,
Kris

Feb 9 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.