querystring problem [modified]
-
i m using both html and aspx pages in my project... for searching a particular product i m using search option in all pages...its working f9 but when i pass the text from html page through get method..it not taking the minus sign(taking in aspx page) http://www.esccctv.com/[^] when i m passing CCP – 2415 (ESC) product no. from aspx page.. it found a search but not thru html page... someone help please
modified on Wednesday, November 26, 2008 4:26 AM
-
i m using both html and aspx pages in my project... for searching a particular product i m using search option in all pages...its working f9 but when i pass the text from html page through get method..it not taking the minus sign(taking in aspx page) http://www.esccctv.com/[^] when i m passing CCP – 2415 (ESC) product no. from aspx page.. it found a search but not thru html page... someone help please
modified on Wednesday, November 26, 2008 4:26 AM
-
i m using both html and aspx pages in my project... for searching a particular product i m using search option in all pages...its working f9 but when i pass the text from html page through get method..it not taking the minus sign(taking in aspx page) http://www.esccctv.com/[^] when i m passing CCP – 2415 (ESC) product no. from aspx page.. it found a search but not thru html page... someone help please
modified on Wednesday, November 26, 2008 4:26 AM
Try using Server.UrlEncode() OR HttpUtility.UrlEncode() for the query string value this will encode the value
Thanks & Regards Pete
-
Try using Server.UrlEncode() OR HttpUtility.UrlEncode() for the query string value this will encode the value
Thanks & Regards Pete
Prasanna Kumar Pete wrote:
Try using Server.UrlEncode() OR HttpUtility.UrlEncode()
thanks but please give a proper syntax how to use Server.UrlEncode() or HttpUtility.UrlEncode()
-
Prasanna Kumar Pete wrote:
Try using Server.UrlEncode() OR HttpUtility.UrlEncode()
thanks but please give a proper syntax how to use Server.UrlEncode() or HttpUtility.UrlEncode()
string strEncoded = HttpUtility.UrlEncode("CCP – 2415 (ESC)");
Thanks & Regards Pete
-
string strEncoded = HttpUtility.UrlEncode("CCP – 2415 (ESC)");
Thanks & Regards Pete
but how can i use that(
Prasanna Kumar Pete wrote:
string strEncoded = HttpUtility.UrlEncode("CCP – 2415 (ESC)");
) in html pages.... please tell me
modified on Wednesday, November 26, 2008 4:34 AM
-
but how can i use that(
Prasanna Kumar Pete wrote:
string strEncoded = HttpUtility.UrlEncode("CCP – 2415 (ESC)");
) in html pages.... please tell me
modified on Wednesday, November 26, 2008 4:34 AM
for html pages you might need to use encodeURIComponent() available in javascript :):)
Thanks & Regards Pete