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

  • 相关阅读:
    字典dict
    数组处理
    switch语句
    java基础复习2
    位运算
    内存中占用的字节
    java基础复习
    常用快捷键
    利用Typora设计博客的方式
    java数据结构-排序算法-堆算法
  • 原文地址:https://www.cnblogs.com/QiuJL/p/4524286.html
Copyright © 2011-2022 走看看