Solved

bulleted list help

Posted on 2006-11-17
2
342 Views
Last Modified: 2012-06-21
I have a bulleted list control on my page and have successfully binded data to the list:

if (!Page.IsPostBack)
{

BulletedList1.DataSource = EmploymentOpportunityDAO.GetList();
BulletedList1.DataValueField = "ID";
BulletedList1.DataTextField = "title";
BulletedList1.DataBind();
}

What I'd like to do is set the DataTextField to a link and pass the DataValueField in a QueryString to my details page, EmploymentDetails.aspx, so I can display all the data.

I'm trying to do something like the following:
"<li><a href='EmploymentDetails.aspx?id=" + emp.ID + "'>" + emp.title.ToUpper() + "</a></li>"

I just don't know how to do this with a bulleted list control?


Also how can I convert the DataTextField to uppercase?  I was trying to use ToUpper(), but I'm not coding it correctly.

Thanks for any help.
0
Comment
Question by:-Dman100-
[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 13

Accepted Solution

by:
jeebukarthikeyan earned 500 total points
ID: 17970763
Hi ,
      <asp:bulletedlist id="BulletedList1" runat="server"
        displaymode="HyperLink"
        datasourceid="Datasetdatasource1"
        datatextfield="Name"                          //give the text here
        datavaluefield="Url" />                       //give the url here

b u d d h a
0
 

Author Comment

by:-Dman100-
ID: 17971214
Thanks budda,

How do I set the datavaluefield as a querystring?

I'm trying:

DataValueField="employmentdetails.aspx?id= + employment_opportunity_id"

that doesn't work.  What is the correct syntax?

Thanks for your help.
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

In an ASP.NET application, I faced some technical problems. In this article, I list them out and show the solutions that I found.  I hope it will be useful. Problem: After closing a pop-up window, the parent page should be refreshed automaticall…
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…
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…

623 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