Tuesday, 3 September 2013

Themes in Asp.net

1. Open Visual Studio
2. Create a New Website
3. Create Web Page
4. Place TextBox on Page
5. Now Right-click on solution Explorer Click Add New Item and Select Skin file give a name and click Add and then click Ok. SkinFile.skin will be added to the App_Theme folder as shown below image.

6. Add Code to SkinFile.skin




<asp:TextBox  runat="server" BackColor="Blue" ></asp:TextBox>


7. In Apply_Theme.aspx Page Add Theme="SkinFile" as shown image below


8. Click F5 you will see TextBox with BackGround color Blue. 



No comments:

Post a Comment

Thanks

SQL server tricky questions