المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Adding a hyperlink to a sentence of text in a bulleted list



C# Programming
07-14-2011, 03:26 AM
Good afternoon.

We created a control (somecontrol.cs) which displays a dynamic bullet list. In some scenerios, one of the bullets will have a hyperlink.

The problem is, the a href code renders as text. We are adding to a string List and using it as the DataSource for the bulleted list:
private BulletedList _blConfirmText = new BulletedList(); List displayText = new List(); _confirmText.Text = CONFIRMTEXTLB; displayText.Add(BULLETONELB); displayText.Add(BULLETTWOLB); if (hasUpdateAccess) displayText.Add(BULLETTHREELBHL); else displayText.Add(BULLETTHREELB); //set the bullet style and load the bulletd list _blConfirmText.CssClass = "bulletItems"; _blConfirmText.DataSource = displayText; _blConfirmText.DataBind();
Any idea how to get this to render correctly? Any suggestions? Thank you, WHEELS