protected void Page_Load(object sender, EventArgs e) { Button1.AddStyleAttribute("background-color", "red"); }
protected void Button1_Click(object sender, EventArgs e) { if (RadioButtonList1.SelectedValue == "large") { TextBox1.AddStyleAttribute("font-size", "24pt"); } else { TextBox1.AddStyleAttribute("font-size", "12pt"); } }The package library for the System AddStyleAttribute method is the .NET Framework, which is a software development framework created by Microsoft that includes a set of libraries and tools for building various types of applications, including web applications.