
February 23rd, 2000, 10:49 AM
|
|
Contributing User
|
|
Join Date: Dec 2002
Posts: 14,575
  
Time spent in forums: < 1 sec
Reputation Power: 22
|
|
<i><b>Originally posted by : yusuf (y_sheikh@hotmail.com)</b></i><br />give try for server.urlencode on the client and then on the server side IF u need to decode it use this<br /><br />===============================================<br /><Script language=VBScript RUNAT=Server><br />Function URLDecode(strToDecode)<br /> strIn = strToDecode<br /> strOut = ""<br /> intPos = Instr(strIn, "+")<br /> Do while intPos<br /> strLeft = ""<br /> strRight = ""<br /> If intPos > 1 then strLeft = Left(strIn, intPos - 1)<br /> If intPos < Len(strIn) then strRight = mid(strIn, intPos + 1)<br /> strIn = strLeft & " " & strRight<br /> intPos = Instr(strIn, "+")<br /> intLoop = intLoop + 1<br /> Loop<br /> intPos = Instr(strIn,"%")<br /> Do while intPos<br /> if intPos > 1 then strOut = strOut & Left(strIn, intPos -1)<br /> strOut = strOut & Chr(CInt("&H" & Mid(strIn,intPos +1,2)))<br /> If intPos > (Len(strIn) - 3) then<br /> strIn = ""<br /> else<br /> strIn = mid(strIn, IntPos + 3)<br /> end if<br /> intPos = Instr(strIn,"%")<br /> loop<br /> URLDecode = strOut & strIn<br />End Function<br /></script><br />---------------------------------------------<br /><br />yusuf<br /><br /><br />------------<br />JoyEasy at 2/23/2000 3:28:18 AM<br /><br />I use some client function to return a string value to the server,if the string include the following marks:blank marks,double quotation marks and wrap prompt.The remote script will return a error message  age invoks not support Remote scripting.<br />So I have to use the Jscript function,escape(),to encode the string value.But I use VBScript in Server,So I want to know how can I do it?<br />Thank u!!!!!!!!!!!<br />
|