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

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
 
M

Marc Gravell

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
 

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

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top