How to use a Hyperlink in a DataList

Platform: ASP.NET| Category: DataList

<asp:DataList id='DataList1' runat='server'>
	<ItemTemplate>
	<asp:HyperLink Runat =server NavigateUrl =’<%#'webform1.aspx?id=' + DataBinder.Eval(Container.DataItem, 'productid').ToString()%>’ ID='Hyperlink1'>
		<%#DataBinder.Eval(Container.DataItem, 'ProductName')%>
	</asp:HyperLink>
	</ItemTemplate>
</asp:DataList>

Share with

Related FAQs

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

Please submit your question and answer.