Hyperlink Column in a Gridview can be easily accomadated to accept two or more arguments as displayed below.
<asp:GridView ID=”GridView1″ runat=”server” AutoGenerateColumns=”False” >
<Columns>
<asp:HyperLinkField DataNavigateUrlFields=”ProducrID,Company” DataNavigateUrlFormatString=”ProductDetails.aspx?ProducrID={0}&Company={1}” Text=”View Student” />
<asp:BoundField DataField=”Description” HeaderText=”Description" />
</Columns>
</asp:GridView>
Cheers
Samitha
<asp:GridView ID=”GridView1″ runat=”server” AutoGenerateColumns=”False” >
<Columns>
<asp:HyperLinkField DataNavigateUrlFields=”ProducrID,Company” DataNavigateUrlFormatString=”ProductDetails.aspx?ProducrID={0}&Company={1}” Text=”View Student” />
<asp:BoundField DataField=”Description” HeaderText=”Description" />
</Columns>
</asp:GridView>
Cheers
Samitha
No comments:
Post a Comment