How to apply styles dynamically

Ddd
Posted by Ddd under ASP.NET category on | Points: 40 | Views : 1634
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data.SqlClient;

public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
Label1.Style.Add("text-decoration","underline");


}
}
//It will underline the text of the label

Comments or Responses

Login to post response