Live Chat Icon For mobile
Live Chat Icon

How do I specify more than one parameter for my HyperlinkColumn?

Platform: ASP.NET| Category: DataGrid

<asp:DataGrid id='DataGrid1' runat='server' AutoGenerateColumns='False'>
<Columns>
<asp:TemplateColumn HeaderText='Sample Column'>
<ItemTemplate>
<asp:Hyperlink runat='server' Text=’<%#DataBinder.Eval(Container.DataItem, 'ProductName').ToString()%>’ NavigateUrl=’<%# 'page1.aspx?id=' + DataBinder.Eval(Container.DataItem,'ProductId').ToString() + '&Name=' + DataBinder.Eval(Container.DataItem,'ProductName').ToString()%>’ ID='Hyperlink1' NAME='Hyperlink1'/>
</ItemTemplate>
</asp:TemplateColumn>
</Columns>
</asp:DataGrid>

Share with

Share on twitter
Share on facebook
Share on linkedin