Mega Code Archive

 
Categories / ASP.Net Tutorial / Development
 

Creating Named Skins with a SkinID property

File: Simple\TextBox.skin <asp:TextBox     SkinID="DashedTextBox"     BorderStyle="Dashed"     BorderWidth="5px"     Runat="Server" /> <asp:TextBox     BorderStyle="Double"     BorderWidth="5px"     Runat="Server" /> File: ShowNamedSkin.aspx <%@ Page Language="C#" Theme="Simple" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" > <head runat="server">     <title>Show Named Skin</title> </head> <body>     <form id="form1" runat="server">     <div>     <asp:TextBox         id="txtFirstName"         SkinID="DashedTextBox"         Runat="server" />     <br /><br />     <asp:TextBox         id="txtLastName"         Runat="server" />     </div>     </form> </body> </html>