Changing Request.Form collection values

K

Kobi.Pinhasov

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
 
K

Kevin Spencer

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.
 
K

krishna.bitla

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
 

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

Top