中文COOKIES防止乱码

    xiaoxiao2021-04-12  61

    

    Response.Cookies["cxxx"]["xxxx"] = adm1.namer;

    //中文COOKIS 用HttpContext.Current.Server.UrlDecode解码,用下面语句编码

    Response.Cookies["xxxx"]["xxxxx"] = HttpContext.Current.Server.UrlEncode(adm1.zhanghao);

    Label1.Text = HttpContext.Current.Server.UrlDecode(Request.Cookies["xxx"]["zxxxo"]);

    this.ClientScript.RegisterStartupScript(typeof(string), "alert", "alert('该文件夹内已存在同名的文件,请重新输入!');", true);

    del = "<a href=delfile.aspx?fid=" + infolist.Tables[0].Rows[i]["f_id"].ToString() + "  οnclick='return confirm(\"删除后将无法恢复!真的要删除?\");'>删除</a>";

    转载请注明原文地址: https://ju.6miu.com/read-667447.html

    最新回复(0)