User Profile

Collapse

Profile Sidebar

Collapse
onlyprad
onlyprad
Last Activity: Dec 10 '09, 05:55 AM
Joined: Nov 24 '09
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • onlyprad
    replied to Format some lines in listbox
    It works for me.

    the span tag will be rendered as html. It should not appear as it is.

    Regards,
    only
    See more | Go to post

    Leave a comment:


  • onlyprad
    replied to Format some lines in listbox
    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>"...
    See more | Go to post

    Leave a comment:


  • onlyprad
    replied to CheckBoxList with style color
    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...
    See more | Go to post

    Leave a comment:


  • onlyprad
    started a topic CheckBoxList with style color

    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)
    ...
    See more | Go to post
No activity results to display
Show More
Working...