RICH CONTROLS
•Rich controlsare web controls that model complex
user interface elements.
•Although no strict definition exists for what is and
what isn’t a rich control, the term commonly
describes a web control that has an object model
that’s distinctly separate from the HTML it generates.
Calendar Control
➢ TheCalendar control presents a miniature calendar that you
can place in any web page.
<asp:Calendar id="MyCalendar" runat="server" />
➢ The Calendar control presents a single-month view
➢ The user can navigate from month to month by using the
navigational arrows, at which point the page is posted back and
ASP.NET automatically provides a new page with the correct
month values
6.
ADROTATOR CONTROL
• ➢The basic purpose of the AdRotator is to provide a graphic on a
page that is chosen randomly from a group of possible images.
• ➢ In other words, every time the page is requested, an image is
selected at random and displayed, which is the rotation indicated by
the name AdRotator.
• ➢ One use of the AdRotator is to show banner-style advertisements
on a page, but you can use it anytime you want to vary an image
randomly.
7.
The Advertisement File
•The AdRotator stores its list of image files in an XML file. This file uses the format shown
here:
• <Advertisements>
• <Ad>
• <ImageUrl>prosetech.jpg</ImageUrl>
• <NavigateUrl>http://www.prosetech.com</NavigateUrl>
• <AlternateText>ProseTech Site</AlternateText>
• <Impressions>1</Impressions>
• <Keyword>Computer</Keyword>
• </Ad>
• </Advertisements>
9.
MULTIVIEW CONTROL
• TheMultiView is the simpler of the two multiple-view controls.
• ➢ The MultiView gives you a way to declare multiple views and show
only one at a time.
• ➢ Creating a MultiView is suitably straightforward. You add the tag to
your .aspx page file and then add one tag inside it for each separate
view: