gridview
asp hyperlink
TemplateField
SelectedIndexChanged
CommandField
GridViewRow row = gridViewShipments.Rows[gridViewShipments.SelectedIndex]; HyperLink link = (HyperLink)row.FindControl("poNum"); // here link is always null.
<asp:TemplateField> <ItemTemplate> <asp:HyperLink ID="poNum" Text='<% Eval("poNum") %>' NavigateUrl="#" runat="server"></asp:HyperLink> </ItemTemplate> </asp:TemplateField>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)