我要用到js 前台那里取一个http的网地址, 里边有&字符,要一起取过来。 所以要用到加密与解密;
file.cs
我现在只知道C#的解密好象是这个Server.UrlEncode()但JS前台如何写?取值vurl
if (lx == "yes")
{
ShopTitle(Server.UrlDecode(Request["vurl"])); //解密
}file.aspx
oHttpReq.open("post", "T_Send.aspx?shopt=yes&vurl=" +document.getElementById("<%=T_url1.ClientID%>").value, false); //返回数据 如何加密码 T_url1请告诉我吧
file.cs
我现在只知道C#的解密好象是这个Server.UrlEncode()但JS前台如何写?取值vurl
if (lx == "yes")
{
ShopTitle(Server.UrlDecode(Request["vurl"])); //解密
}file.aspx
oHttpReq.open("post", "T_Send.aspx?shopt=yes&vurl=" +document.getElementById("<%=T_url1.ClientID%>").value, false); //返回数据 如何加密码 T_url1请告诉我吧
escape(document.getElementById("<%=T_url1.ClientID%>").value) //加密码FILE。CS
Server.UrlDecode(Request["vurl"])); //解密
因为是网地址连接,会有多个&, 如不加密带不过去。就这样了。
完结了,更新好服务器程序, 可以去吃饭