zoukankan      html  css  js  c++  java
  • 自己写的asp.net网站在URL传值过程中隐藏真正值的方法

    //传送值 

    protected void btnsend_Click(object sender, EventArgs e)
        {
            string id, disguise, random;
            random = StrOperation.RandString();
            disguise = StrOperation.DisGuise();
            id = StrOperation.DeTransform3(txtID.Text.Trim().ToString());//StrOperation函数为上一篇博客中的方法集
            Response.Redirect("Show.aspx?type=" + id + "&target=" + random + "&id=" + disguise);
        }

    //接收值

    protected void Page_Load(object sender, EventArgs e)
        {
            if (Request.QueryString["type"] != null && Request.QueryString["type"].ToString() != "")
            {
                string id, code;
                code = Request.QueryString["type"].ToString();
                id = StrOperation.Transform3(code);
                lblID.Text = id;
            }
        }

  • 相关阅读:
    性能测试之-响应时间
    性能测试之-分类
    CSS 的基础语法
    linux之-mysql数据库约束3
    linux之-mysql数据库2
    linux安装mysql
    反向树状数组
    曼哈顿最小生成树
    最小生成树的性质
    CSA Round 84 Growing Trees
  • 原文地址:https://www.cnblogs.com/QiuJL/p/4524286.html
Copyright © 2011-2022 走看看