bulleted list help
Posted on 2006-11-17
I have a bulleted list control on my page and have successfully binded data to the list:
BulletedList1.DataSource = EmploymentOpportunityDAO.GetList();
BulletedList1.DataValueField = "ID";
BulletedList1.DataTextField = "title";
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.