Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

repeater control Create hyperlink

Posted on 2011-02-15
2
Medium Priority
?
506 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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
Suggested Courses

636 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