It works for me.
the span tag will be rendered as html. It should not appear as it is.
Regards,
only
User Profile
Collapse
-
hi,
After populating your listbox in foreach loop, add the below code,
define a class "boldListIt em" in CSS then,
lstHisttory.Ite ms[lstHisttory.Ite ms.Count - 3].Text =
"<span class=\"boldLis tItem\">" +
lstHisttory.Ite ms[lstHisttory.Ite ms.Count - 3].Text +
"</span>"...Leave a comment:
-
Thanx Frinny.
I am not using AJAX.
Its fixed now.
I changed the code from:
checkBoxList.It ems.FindByValue (item.ItemValue .ToLower()).Att ributes.Add("cl ass", "selectedCheckB oxListItem");
to:
checkBoxList.It ems.FindByValue (item.ItemValue .ToLower()).Tex t = "<span class=\"selecte dCheckBoxListIt em\">" + checkBoxList.It ems.FindByValue (item.ItemValue .ToLower()).Tex t...Leave a comment:
-
CheckBoxList with style color
Hi,
I am populating the checkboxlist in (!IsPostBack) block of page load event
with some checked items.
After populating with checked items I am iterating through the items collection and applying color style for checked items.
The below method is called from !IsPostBack()
Code:public static void PopulateCheckBoxList(CheckBoxList checkBoxList, ArrayList nameValueList, ArrayList selectedItemsList)
No activity results to display
Show More
Leave a comment: