Previous Thread

6/19/2006 1:59:42 PM    Re: "&" in Querystring
easy :) 
 
you need to Encode the String 
 
Respose.Redirect( "myPage.aspx?name=" & Server.URLEncode( myLabel.Text ) ) 
 
and then you can use 
 
myLabel.Text = Server.URLDecode( request.QueryString("name") ) 
 
-- 
 
Bruno Alexandre 
 
(a Portuguese in Københanv, Danmark) 
 
"Tanmaya Kulkarni" <tanmaya_kulkarni@persistent.co.in> escreveu na mensagem 
 
news:OY$FkZ5kGHA.4828@TK2MSFTNGP04.phx.gbl...



6/19/2006 5:19:09 PM    "&" in Querystring
Hi, 
 
I need to pass a string having ampersand "&" in the query string like 
 
Company=Johnson&Johnson. 
 
How do I send it and receive it? 
 
TIA, 
 
Tanmaya

6/19/2006 5:28:55 PM    Re: "&" in Querystring
Go the Answer, 
 
Add a %26 instead of & 
 
"Tanmaya Kulkarni" <tanmaya_kulkarni@persistent.co.in> wrote in message 
 
news:OY$FkZ5kGHA.4828@TK2MSFTNGP04.phx.gbl...