<asp:HyperLinkColumn Target="_blank" DataNavigateUrlField="noteid" DataNavigateUrlFormatString="main.aspx?noteid={0}" DataTextField="title" HeaderText="标题"> ------------- 在mian.aspx中 sub page_load(sender as object, e as eventargs) dim noteid as string noteid=request("noteid") strsql="select * from tables where noteid=" & cint(noteid) ................. end sub
<asp:HyperLinkColumn Text="网点意见" Target="_new" DataNavigateUrlField="numbercode" DataNavigateUrlFormatString="lookUPTable.aspx?numbercode1={0}"
HeaderText="网点意见">
<HeaderStyle Wrap="False"></HeaderStyle>
在第二页面中这样写:
post=Request.QueryString["numbercode1"].ToString().Trim();
0表示Title字段在第几个cells在News_detail.aspx页面中的Page_Load事件中用
Request.QueryString["Title"].ToString().Trim();即可提取所传递的Title值
然后你就可以利用所提取的Title值进行数据库查询啊,等等!
DataNavigateUrlField="noteid"
DataNavigateUrlFormatString="main.aspx?noteid={0}"
DataTextField="title"
HeaderText="标题">
-------------
在mian.aspx中
sub page_load(sender as object, e as eventargs)
dim noteid as string
noteid=request("noteid")
strsql="select * from tables where noteid=" & cint(noteid)
.................
end sub
你可以参考一下子哦,自己试试吧,不行的话
在来问