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

Related FAQs

Couldn't find the FAQs you're looking for?

Please submit your question and answer.