Development ASP.Net Tutorial

<%@ Page Language="C#" Theme="DynamicSkin" %>
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

    protected void btnSubmit_Click(object sender, EventArgs e)
    {
        grdProducts.CssClass = ddlCssClass.SelectedItem.Text;
    }



    Show Dynamic CSS


    
    

            id="grdProducts"
        DataSourceID="srcProducts"
        HeaderStyle-CssClass="Header"
        AlternatingRowStyle-CssClass="Alternating"
        GridLines="none"
        Runat="server" />
           id="srcProducts"
       ConnectionString="<%$ ConnectionStrings:Products %>"
       SelectCommand="SELECT Id,Title,Director FROM Products"
       Runat="server" />
    
            id="lblCssClass"
        Text="Select Style:"
        AssociatedControlID="ddlCssClass"
        Runat="server" />
            id="ddlCssClass"
        Runat="server">
        
        
    
            id="btnSubmit"
        Text="Select"
        Runat="server" OnClick="btnSubmit_Click" />