Editing URL before displaying it into the addressbar of the web browser

  • Thread starter Thread starter Lucky
  • Start date Start date
L

Lucky

Hi guys,
again with problem.
now the problem is something like this.
in the backend of the asp.net 2.0, i'm getting query string in the
page_load event. the request url is something like this.
http://www.mycom.com/default.aspx?param1=x

all i want to do is, after processing the "param1", i want to add
another param into the querystring, so it would become something like
this.
http://www.mycom.com/default.aspx?param1=x&param2=xx

when it is shown into the addressbar of the web browser.

i tried to add the param into the request.querystring.add(), but it
said, that collaction is READ ONLY. i dont know how to modify this
querystring collaction.

tools:
asp.net 2.0
c#.net 2.0

i would appriciate any help.

Lucky
 
The url in the browser is the page that the client requested and got a
response from. The only way the server can change this is to redirect
the client. You can't change what was asked for... note that a
redirect will necessitate a whole new request.

Marc
 
Back
Top