troubleshooting Question

How to apply href tags around bound data in datagrid item template label

Avatar of jsvb1977
jsvb1977 asked on
ASP.NETASPMicrosoft SQL Server 2005
5 Comments1 Solution657 ViewsLast Modified:
I have an datagrid which displays data from a table. one of the fields in the table contains a link. I would like to learn how to turn that link into a clickable href when the datagrid renders the data in the browser.

See code snippet below:

Thank you,
                       <asp:Label ID="lblSDSolution" runat="server" Text='<%# Bind("SDSolution") %>' Width="250"></asp:Label>

'SDSolution Data:

'When the data is displayed i would like:

<a href="" target="_blank"></a>

' Or maybe even consolidate the display so that the clickable link is something generic like this:

<a href="" target="_blank">SD Solution</a>

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 5 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 5 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros