新手:HyperLinkField属性设置,怎么选择选择对应列的信息?
如题,想从gridview里选择一列直接传到下一个页面做参数,HyperLinkField属性怎么写啊?
[解决办法]
用这个列:
<asp:TemplateField HeaderText= "用户编号 " SortExpression= "au_id ">
<ItemStyle HorizontalAlign= "Center " />
<HeaderStyle HorizontalAlign= "Center " />
<ItemTemplate>
<asp:HyperLink ID= "HyperLink1 " runat= "server " Text= ' <%# DataBinder.Eval(Container.DataItem, "au_id ") %> ' NavigateUrl= ' <%# "GridViewMubiao.aspx?id= "+DataBinder.Eval(Container.DataItem, "au_id ") %> ' Target= "_blank "> </asp:HyperLink>
</ItemTemplate>
</asp:TemplateField>