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;
            }
        }

  • 相关阅读:
    c学习第6天
    c学习第5天
    c学习第4天
    c学习第1天
    20171009/20171010/20171011
    20171010
    20171008
    20171007
    20171006
    matrix
  • 原文地址:https://www.cnblogs.com/QiuJL/p/4524286.html
Copyright © 2011-2022 走看看