?
Solved

repeater control Create hyperlink

Posted on 2011-02-15
2
Medium Priority
?
501 Views
Last Modified: 2012-05-11
i have this as part of my repeater control:

<%#DataBinder.Eval(Container.DataItem, " Category_Name")%>

In reality, the value of category name needs by be a hyperlink with a URL simular to what is listed bellow.  Category_ID will be pulled in the same way i am getting category name. I am having a hard time putting this all together.

http://something.com/categories/catEdit.asp?Category_ID=1

0
Comment
Question by:vbnetcoder
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 16

Accepted Solution

by:
BurnieP earned 2000 total points
ID: 34902292
Hi,

You could do it this way :

<a href=' <%# Eval("Category_Name", "http://something.com/categories/catEdit.asp?Category_ID={0}") %>'><%# Eval("Category_Name") %> </a>

or with <asp:HyperLink.. />

<asp:HyperLink ID="hyp" runat="server" NavigateUrl='<%# Eval("Category_Name", "http://something.com/categories/catEdit.asp?Category_ID={0}") %>'><%# Eval("Category_Name") %></asp:HyperLink>

0
 

Author Closing Comment

by:vbnetcoder
ID: 34902491
Thank you!
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I recently went through the process of creating a Calendar Control of events with the basis of using a database to keep track of the dates that are selectable, one requirement was to have the selected date pop-up in a simple lightbox.  At first this…
User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses

764 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question