Friday, May 8, 2009

Example of SkinFile.skin in ASP.NET for Few Controls

<

asp:ImageButton runat="server" Height=16 Width=16 ImageUrl="~/App_Themes/Theme1/Images/delete.gif" skinid="delete"/>

<

asp:ImageButton runat="server" Height=16 Width=16 ImageUrl="~/App_Themes/Theme1/Images/edit.gif" skinid="edit"/>

<

asp:ImageButton runat="server" Height=16 Width=16 ImageUrl="~/App_Themes/Theme1/Images/view.jpg" skinid="view"/>

<

asp:ImageButton runat="server" Height=16 Width=16 ImageUrl="~/App_Themes/Theme1/Images/print.gif" skinid="print"/>

<

asp:LinkButton runat="server" class="link_font"></asp:LinkButton>

<asp:HyperLink runat="Server" class="link_font"></asp:HyperLink>

<

asp:Label runat="server" />

<

asp:Label runat="server" skinid="lblError" ForeColor="#b90b1b" Font-Names="Verdana, Geneva, Arial, Helvetica, sans-serif" Font-Size="13px" Font-Bold="true"/>

<

asp:Label runat="server" skinid="lblStatus" ForeColor="#9BA36A" Font-Names="Verdana, Geneva, Arial, Helvetica, sans-serif" Font-Size="13px" Font-Bold="true"/>

<

asp:Image ImageUrl="~/App_Themes/Theme1/images/bullet.gif" BorderWidth="0" SkinID="headerimg" Width="21" Height="24" runat="server" />

 <

asp:TextBox runat="server" Font-Names="Verdana" Height="15px" BorderStyle="Groove" />

 <

asp:Button runat="server" CssClass="buttonbg" Height="27" Width="66" Font-Bold="True" BorderStyle="None" ForeColor="#FFFFFF"/>

<

asp:DropDownList Font-Names="Verdana" CssClass="textfont" runat="server"></asp:DropDownList>

<asp:ListBox Font-Names="Verdana" runat="server" CssClass="textfont">

</asp:ListBox>

<asp:GridView Width="98%" runat="server" AutoGenerateColumns="False" AllowPaging="true" PageSize="15"

BackColor="#90bbe4" BorderColor="#c2dbed" CellPadding="2" BorderStyle="Inset" BorderWidth="0.5px"

CellSpacing="1" GridLines="none" HeaderStyle-ForeColor="white" RowStyle-BackColor="#023c69"

AlternatingRowStyle-BackColor="#CECEAA" HeaderStyle-HorizontalAlign="Left" RowStyle-HorizontalAlign="Left">

<HeaderStyle BackColor="#90bbe4" ForeColor="#04396a" HorizontalAlign="left" />

<FooterStyle BackColor="WhiteSmoke" />

<RowStyle HorizontalAlign="left" BackColor="#d8ecfa" />

<AlternatingRowStyle Font-Bold="False" BackColor="#FFFFFF" />

<EditRowStyle />

<SelectedRowStyle />

<EmptyDataRowStyle BackColor="White" Height="22px" />

<PagerStyle Font-Bold="True" Font-Size="8.5pt" ForeColor="White" HorizontalAlign="Right"

Wrap="True" Height="10px" />

</asp:GridView>

No comments:

Post a Comment