Tuesday, September 20, 2011

To show the spaces in between values of dropdown

    protected void ddlRack_DataBound(object sender, EventArgs e)
    {
        ddlRack.Items.Cast<ListItem>().ToList().ForEach(a => a.Text = a.Text.Replace(" ", HttpUtility.HtmlDecode("&nbsp;"))); 
    }

No comments:

Post a Comment