Click here to Skip to main content
15,884,388 members

1 solution

First create a string that would look something like this:
string linkFormat = "<p class=\"plineheight\"><a href=\"{0}\" target=\"_blank\" >{1} </a><br/> {2} </p><hr> ";


then pull your data from your database then do something like this:
string item = string.Format(linkFormat, row["URL"], row["DisplayText"], row["Description"]);


Then place on your page. In my case I just add it to a div
althChkItems.Add(item);
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900