when pass # value in Querystring it works in ie8.and all browser, but it does not working in ie6.

Posted by Gnanavel36 under ASP.NET on 1/24/2012 | Points: 10 | Views : 1367 | Status : [Member] | Replies : 1
sir,
when pass #(StreetAddress=#12 ,AmmanKovil Street,Arunapuri.) value in Querystring it works in ie8.and all browser, but it does not working in ie6.


( here i use,
var queryString = window.location.search + window.location.hash;)


in url:

http://localhost/DinnerNow/MoreInfo.aspx?RestaurantId=149?&Name=Siva?&LogoImageLocation=Images/Logos/vel_Siva_Pavoorchatram.jpg?&Description=Welcome to the most sophisticated restaurant review guide on the web. WhenWeDine is a restaurant guide that offers information and reviews for restaurants serving many types of food in hundreds of locations from arou ndthe globe.?&StreetAddress=#12 ,AmmanKovil ,AmmanKovil Street,Arunapuri.?&City=Tirunelveli?&Area=Pavoorchatram?&Status=Opened?&DeliveryTime=30?&PreOrder=Yes




Responses

Posted by: SheoNarayan on: 1/24/2012 [Administrator] HonoraryPlatinum | Points: 25

Up
0
Down
You can use escape function like below to encode the special characters that would be passed easily via querystring.

var url = escape("#(StreetAddress=#12 ,AmmanKovil Street,Arunapuri.)");

The reverse of escape is unescape that you can use to decode.

In the server side you can simply use Request.QueryString to get the value of the querystring.

Thanks

Regards,
Sheo Narayan
http://www.dotnetfunda.com

Gnanavel36, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response