两个.aspx 页面传值 Request.QueryString["NAME"]
2016-04-24 22:24
465 查看
1.aspx.cs
protected void HouseManagement(object source, DataListCommandEventArgs e)
{
string url;
url = "HouseUpdate.aspx?houseCode=1“;
Response.Redirect(url);
}
}
HouseUpdate.aspx.cs
public partial class Item_HouseUpdate : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
lblHouseCode.Text = Request.QueryString["houseCode"];
}
}
protected void HouseManagement(object source, DataListCommandEventArgs e)
{
string url;
url = "HouseUpdate.aspx?houseCode=1“;
Response.Redirect(url);
}
}
HouseUpdate.aspx.cs
public partial class Item_HouseUpdate : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
lblHouseCode.Text = Request.QueryString["houseCode"];
}
}
相关文章推荐
- ASP.NET 使用Ajax 请求 aspx.cs 中的方法
- asp.net 输入框的TextBox的Enabled属性
- 深入分析HaspMap源码
- 写自己的ASP.NET MVC框架(上)
- 细说ASP.NET Forms身份认证
- ASP.NET初始
- 【转载】IIS如何设置可以让.aspx后缀的文件直接下载
- Asp.net初识
- ASP.NET自定义模块
- Aspose.words合并文档、邮件合并功能
- AspectJ 出现错误::0 can't find referenced pointcut 的解决之道
- ASP.Net MVC开发基础学习笔记(1):走向MVC模式
- ASP.NET MVC 网站开发总结(二)——一个或多个文件的异步或同步上传
- ASP.NET MVC 网站开发总结(一)
- ASP.NET Core的配置(3): 将配置绑定为对象
- Asp.net 面向接口可扩展框架之核心容器
- ASP.NET自定义处理程序
- Repeat和AspNetPager控件
- Asp.net Mvc 使用EF6 code first 方式连接MySQL总结
- ASP.NET MVC之下拉框绑定四种方式(十)