自己写的asp.net网站在URL传值过程中隐藏真正值的方法
2011-08-09 22:33
344 查看
//传送值
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;
}
}
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;
}
}
相关文章推荐
- 自己写的asp.net网站在URL传值过程中隐藏真正值的方法
- asp.net 自己封装数据库操作一个类中一个自定义方法Execute(),非常实用,省去了麻烦的中间过程,动态参数
- ASP.NET网站伪静态下使用中文URL的方法
- ASP.NET网站伪静态下使用中文URL的方法
- 将Asp.Net网站发布到IIS的四种方法及注意事项
- asp.net操作过程中常见错误的解决方法
- 自己写的一个asp.net的生成曲线图的过程
- asp.net网站的404错误页面的正确设置方法第1/2页
- asp.net网站的404错误页面的正确设置方法第1/2页
- asp.net中IDataParameter调用存储过程的实现方法
- ASP.NET运行机制原理 ---浏览器与IIS的交互过程 自己学习 网上查了下别人写的总结的很好 就转过来了 和自己写的还好里嘻嘻
- 在配置win7 IIS浏览网站时 检测到在集成的托管管道模式下不适用的ASP.NET设置 的解决方法
- ASP.NET 2.0的URL映射的实现方法
- ASP.NET中URL传参数出现乱码解决方法
- asp.net C#网站项目 获取物理路径、虚拟路径的方法
- asp.net中页面间url参数传递的三种实现方法
- Asp.net Mvc Framework可以在Controller中使用的Url.Action方法
- 26种提高ASP.NET网站访问性能的优化方法
- asp.net之DataList的使用方法,及分页(存储过程创建),编辑,更新,删除
- 不修改代码就能优化ASP.NET网站性能的一些方法 [转]