Add text to item before Databind

  • Thread starter Thread starter Jasonkimberson
  • Start date Start date
J

Jasonkimberson

DataSet objDataSet = new DataSet();
objDataAdapter.Fill(objDataSet,"OfficeList");

ddlOfficeList.DataSource = objDataSet;
ddlOfficeList.DataTextField = "field1";
ddlOfficeList.DataValueField = "field3";



i have a drop down menu being populated by a Dataset

i want to add "<a href='" and a url to each TextField in this drop
down, if i modify the SQL to do this, it displays "<'s" as "&lt;" is
there anyway i can just add

example

"<a href="">" + "field1" + "</a>"
 
Hi Mihir

WHen i use it in a drop down

it actually displays the <a href=

do you know how i can make that html?
 
Back
Top