KEMBAR78
ASP dot net programming Unit - three.pptx
ASP .NET Programming
G.Mathiyalagan
Assistant Professor
Dept of CS&CA
PASC
RICH CONTROLS
•Rich controls are 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.
RICH CONTROLS
• Calendar Control
• AdRotator Control
• Multiview control
Calendar Control
➢ The Calendar 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
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.
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>
MULTIVIEW CONTROL
• The MultiView 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:
• <asp:MultiView ID="MultiView1" runat="server">
• <asp:View ID=”View1” runat=”server”>...</asp:View>
• <asp:View ID=”View2” runat=”server”>...</asp:View>
• <asp:View ID=”View3” runat=”server”>...</asp:View>
• </asp:MultiView>
ASP dot net programming Unit -  three.pptx
ASP dot net programming Unit -  three.pptx

ASP dot net programming Unit - three.pptx

  • 1.
  • 2.
    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.
  • 3.
    RICH CONTROLS • CalendarControl • AdRotator Control • Multiview control
  • 4.
    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:
  • 10.
    • <asp:MultiView ID="MultiView1"runat="server"> • <asp:View ID=”View1” runat=”server”>...</asp:View> • <asp:View ID=”View2” runat=”server”>...</asp:View> • <asp:View ID=”View3” runat=”server”>...</asp:View> • </asp:MultiView>