URL Path
-
Hi Friends, How to pass FileName Path as querystring in javascript.I have passed like this var file='comment_popup.aspx?Path='+hid.value; when i put alert(file) its getting D:workReview115-02.xml but the path name should come like this D:\work\Review\15-02.xml.How to pass the correct path name as querystring please help me. Thanks in Advance
-
Hi Friends, How to pass FileName Path as querystring in javascript.I have passed like this var file='comment_popup.aspx?Path='+hid.value; when i put alert(file) its getting D:workReview115-02.xml but the path name should come like this D:\work\Review\15-02.xml.How to pass the correct path name as querystring please help me. Thanks in Advance
Have the value
UrlEncoded
before passing it in the querystring.Vasudevan Deepak Kumar Personal Homepage
Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson -
Have the value
UrlEncoded
before passing it in the querystring.Vasudevan Deepak Kumar Personal Homepage
Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis LevinsonHi Vasudevan Deepak Kumar, Thanks for reply i have one doubt whether we have to put UrlEncode(hid.value) in the querystring. Thanks in Advance
-
Hi Vasudevan Deepak Kumar, Thanks for reply i have one doubt whether we have to put UrlEncode(hid.value) in the querystring. Thanks in Advance
If you are building a querystring from serverside, use
Server.UrlEncode()
. You can encode the querystring from JavaScript, you ought to useescape
function.Vasudevan Deepak Kumar Personal Homepage
Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson -
If you are building a querystring from serverside, use
Server.UrlEncode()
. You can encode the querystring from JavaScript, you ought to useescape
function.Vasudevan Deepak Kumar Personal Homepage
Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis LevinsonHi Vasudevan Deepak Kumar, I m passing querystring from javascript, as you told i have used escape(hid.value) but when i retreving the value at server side Request.QueryString["Path"].ToString() its not getting right path and also its getting half of the letter from filename.Please Help me Sorry for disturbing. Thanks in Advance