Connecting Tech Pros Worldwide Forums | Help | Site Map

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

Lucky
Guest
 
Posts: n/a
#1: Jan 10 '07
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


Marc Gravell
Guest
 
Posts: n/a
#2: Jan 10 '07

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


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


Lucky
Guest
 
Posts: n/a
#3: Jan 10 '07

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


hey Marc!
i had this doubt. thanks for sharing your view.

Lucky

Marc Gravell wrote:
Quote:
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
Closed Thread