A theme can contain how many Default and Named skin for each control ?

 Posted by Tripati_tutu on 4/30/2011 | Category: ASP.NET Interview questions | Views: 2389 | Points: 40

A theme can contain only one Default Skin for each type of control. However, a
theme can contain as many Named skins as you can. Each Named Skin must have
a unique name.

Sample code:
<asp:TextBox SkinID="DashedTextBox" BorderStyle="Dashed" BorderWidth="5px" runat="server" /> 

<asp:TextBox BorderStyle="Double" BorderWidth="5px" runat="server"/>

<%@ Page Language="C#" AutoEventWireup="true" 

CodeBehind="ShowSkin.aspx.cs" Inherits="DemoApp.ShowSkin" Theme="SimpleTheme" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Show Named Skin</title>
<form id="form1" runat="server">
<asp:TextBox ID="txtFirstName" runat="server" SkinID="DashedTextBox">
<br /><br />
<asp:TextBox ID="txtLastName" runat="server"></asp:TextBox>

Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response