Create a new request in code??

  • Thread starter Thread starter Eidolon
  • Start date Start date
E

Eidolon

Heres what i am trying to do:

In the codebehind code for a page, i want to be able to send the request on
to another page, but with different form values than what may have been
submitted to me. So for example's sake, say im a login page, and the
request to me included form values of "uid" and "pwd". Now i want to
transfer the user over to the search page for example, but Server.Transfer
wont work, because i dont want to send him the UID and PWD form values.
Instead i want to send him a form value name QUERY with some value. How can
i do this?

I would rather NOT resort to writing out a form on the client html and a
script block to populate the forms values and then submit it. Thats rather
sloppy.

Thanks in advance,
- Aaron.
 
No, because i want to send different Request variables to the new page than
were received by the first page. I tried changing the variables on the
current request before forwarding on, something like the following:

Request.Form.Clear()
Request.Form.Add("search","my search params")
Server.Transfer("myNewPage.aspx",True)

But it tells me that i cannot do that because the object is readonly.
 
Back
Top