.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month

Home >> Forum >> ASP.Net >> Post New QuestionBookmark and Share Subscribe to Forum


Posted By: R@j     Posted Date: December 15, 2008    Points:2   Category :ASP.Net

I have a datalist in which I have 6 links in each record. Each link have to redirect to different page.

How it can be done.

Thanks in advance

Author: Praveen             
Posted Date: December 15, 2008     Points: 5   

you can use HyperLink inside DataList and use Its "NavigateURL" property to the desired page you want to redirect.

you can build your HyperLink Tag like this

<asp:hyperlink Runat=server ID="Hyperlink1" Text="<%# container.dataitem.site %>" NavigateUrl=<%# container.dataitem.site %>></asp:HyperLink>

Happy Coding!!!

Post Reply

You must Sign In To post reply
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend