我有一个产品信息显示页面:spot.aspx,产品信息是通过产品列表页面的linkbutton传值来查询数据库得到的,请问如何把这个产品的型号(数据字段值:typeID)设为spot.aspx的标题。请高手指导一下,多谢!传值页面代码: protected void lkb_Click(object sender, EventArgs e)
{
LinkButton lb = (LinkButton)sender;
string typeID = lb.CommandArgument.ToString().Trim();
int Row = ((GridViewRow)lb.Parent.Parent).RowIndex;
string user = GV1.Rows[Row].Cells[0].Text.ToString().Trim();
string lnk = "products/spot.aspx? eid=" + typeID;
Response.Redirect(lnk);
}
请教接值页面spot.aspx动态将产品型号(typeID)设置为标题名的代码?
{
LinkButton lb = (LinkButton)sender;
string typeID = lb.CommandArgument.ToString().Trim();
int Row = ((GridViewRow)lb.Parent.Parent).RowIndex;
string user = GV1.Rows[Row].Cells[0].Text.ToString().Trim();
string lnk = "products/spot.aspx? eid=" + typeID;
Response.Redirect(lnk);
}
请教接值页面spot.aspx动态将产品型号(typeID)设置为标题名的代码?
解决方案 »
- 请问怎么能让查询时的表格是淡入淡出的? gridView
- Linq to Entities 动态查询,对最终结果distinct,写法的疑问,请高手指点一下...
- 与sqlserver2005连接的问题。
- http下载系统打不开的后缀名的文件报404错误
- 谁知道那个免费的邮箱可以做SMTP服务器?
- 在ASP.NET怎么样使用AJAX
- 请教两个关于在asp.net2.0环境中利用oledb连接oracle数据库的问题
- asp.net 中要在一个几位数中插入一个数字怎么做
- datagrid翻页问题
- 在ASP.NET C#如何实现TreeView 急急!!万分感谢
- 在asp.net中怎么使用access数据库
- 我有一html页面要实现全屏(急急急)
this.Title = request.queryString["eid"];