How to use theme and skin in TextBox
Theme is a collection of design property settings that allow us to define look of pages and controls.
we can apply theme consistently across pages in a web application or across an entire web application
or even all web applications in a server. theme hold skins, css, images and other resources. skin file is a file
which extension is .skin and it contains property settings for individual controls such as TextBox, DropDownList, ListBox,
Calendar, FileUpload etc. so that you can use theme and a skin file for store TextBox server control's specific design
properties settings such as BackColor, ForeColor, BorderStyle etc. the following example code create a skin name Blue.skin
that hold some textbox design property settings. we applied that theme in a web page by including
it @Page directive Theme property value. copy and paste the following code on your .net IDE and run it for better
understand how to use theme and skin in textbox server control.
TextBoxTheme.aspx
<%@ Page Language="C#" Theme="Blue" %>
<!DOCTYPE html>
<script runat="server">
</script>
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title>How to use theme and skin in TextBox</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<h2 style="color:Green">TextBox Example: Theme</h2>
<asp:Label
ID="Label1"
runat="server"
Text="Favorite Forest"
Font-Bold="true"
Font-Size="Large"
ForeColor="DodgerBlue"
>
</asp:Label>
<asp:TextBox
ID="TextBox1"
runat="server"
Text="Sundarban"
>
</asp:TextBox>
</div>
</form>
</body>
</html>
Blue.skin
<asp:TextBox
runat="server"
BackColor="IndianRed"
ForeColor="Snow"
Font-Size="X-Large"
Font-Italic="true"
Font-Underline="true"
>
</asp:TextBox>

- How to set, change TextBox font size
- How to set, change TextBox ForeColor (font, text color)
- How to set, change TextBox height programmatically
- How to use theme and skin id (SkinID) in TextBox
- How to set, change TextBox read only mode (ReadOnly)
- How to convert, change TextBox TextMode SingleLine to Password
- How to show, hide, visible TextBox programmatically
- How to set, change TextBox width programmatically
- How to set, change TextBox font, text style
- How to set, change Button BackColor (background color)