1:A标签传递参数:
<a href="xx.aspx?id=1">按钮</a>
<a href='xx.aspx?id=<%#Eval("ID")'%>按钮</a>
2:PostBackUrl 传参
PostBackUrl='<%# "~/xx.aspx?id=" + (DataBinder.Eval(Container.DataItem, "ID"))%>+"XXX"' />
1:A标签传递参数:
<a href="xx.aspx?id=1">按钮</a>
<a href='xx.aspx?id=<%#Eval("ID")'%>按钮</a>
2:PostBackUrl 传参
PostBackUrl='<%# "~/xx.aspx?id=" + (DataBinder.Eval(Container.DataItem, "ID"))%>+"XXX"' />
转载于:https://www.cnblogs.com/Jack_G/archive/2012/07/11/2586760.html