26 April 2011

ASP.NET Themes: interview questions

Topic : ASP.NET Themes

Faculty Name : Keerthy C

Q.What is the difference between Named skins and Default skins?
A. default skin automatically applies to all controls of the same type when a theme is
applied to a page. A control skin is a default skin if it does not have a SkinID attribute.
For example, if you create a default skin for a Calendar control, the control skin applies
to all Calendar controls on pages that use the theme. (Default skins are matched exactly
by control type, so that a Button control skin applies to all Button controls, but not to
LinkButton controls or to controls that derive from the Button object.)

A named skin is a control skin with a SkinID property set. Named skins do not
automatically apply to controls by type. Instead, you explicitly apply a named skin to a
control by setting the control's SkinID property. Creating named skins allows you to set
different skins for different instances of the same control in an application.

Faculty Name : Pinky Bhadran

Q.How do you apply Themes to an entire application?

A.By specifying the theme in the web.config file.
Eg: <configuration>
<system.web>
<pages theme=”BlueMoon” />
</system.web>
</configuration>

Q. How do you exclude an ASP.NET page from using Themes?

A.To remove themes from your page, use the EnableTheming attribute of
the Page directive.

Q.What are the three levels at which themes can be applied for a web
application?

1.At the page level-use the theme or stylesheettheme attribute of the
@page directive

2.At the application level-can be applied to all pages in an
application by setting the element in the application configuration
file.

3.At the web server level-Define the element in the machine.config
file. this will apply the theme to all the web applications on that
web server.

http://msdn.microsoft.com/en-us/library/ykzx33wh.aspx

http://odetocode.com/articles/423.aspx

Faculty Name : Saravana Kumar

Q.What is a "theme" in ASP.NET?
A. A "theme" is a collection of property settings that allow you to define the look of pages
and controls, and then apply the look consistently across pages in a Web application,
across an entire Web application, or across all Web applications on a server.

Reference :
http://www.cinterviews.com/2009/10/aspnet-interview-questions-and-answers_8952.html
http://msdn.microsoft.com/en-us/library/ykzx33wh.aspx
http://odetocode.com/articles/423.aspx
http://msdn.microsoft.com/en-us/library/0yy5hxdk(v=vs.80).aspx

Q.What is a global theme?
A. A global theme is a theme that you can apply to all the Web sites on a server. Global
themes allow you to define an overall look for your domain when you maintain multiple
Web sites on the same server.

Reference :
http://www.dotnetfunda.com/interview/exam3972-what-is-a-global-theme-.aspx
http://www.cinterviews.com/2009/10/aspnet-interview-questions-and-answers_8952.html
http://weblogs.asp.net/vardi/archive/2006/07/04/Global-Theme.aspx

Faculty Name : Majesh

Q.What is the difference between themes and CSS?

A. 1. Themes can define many properties of a control or page, not just style properties. For
example, using themes, you can specify the graphics for a TreeView control, the template
layout of a GridView control, and so on.

2. Themes can include graphics.

3. Themes do not cascade the way style sheets do. By default, any property values
defined in a theme referenced by a page's Theme property override the property
values declaratively set on a control, unless you explicitly apply the theme using the
StyleSheetTheme property.

No comments:

Post a Comment