Chapter 10

Date post:21-Dec-2014
Category:
View:607 times
Download:6 times
Share this document with a friend
Description:
 
Transcript:
  • 1. What are rich controls The Calendar Control The AdRotator The MultiView Control The Wizard Control

2. Rich controls are web controls that modelcomplex user interface elements and giveyou a way to create advanced user interfacesin your web pages without writing lines ofconvoluted HTML 3. The Calendar control presents a miniature calendar thatyou can place in any web page. Like most rich controls,the Calendar can be programmed as a single object (anddefined in a single simple tag), but it renders itself withdozens of lines of HTML output. 4. You can set various parts of the calendar, like the header, selector,and various day types, by using one of the style properties 5. In most situations where you need to use a calendar forselection, you dont want to allow the user to select anydate in the calendar.The basic approach to restricting dates is to write an eventhandler for the Calendar.DayRender event.protected void MyCalendar_DayRender(Object source, DayRenderEventArgs e){// Restrict dates after the year 2012 and those on the weekend.if (e.Day.IsWeekend || e.Day.Date.Year > 2012){e.Day.IsSelectable = false;}} 6. The e.Day object is an instance of the CalendarDay class,which provides various properties. 7. The basic purpose of the AdRotator is to provide agraphic on a page that is chosen randomly from a groupof possible images. In other words, every time the page isrequested, an image is selected at random and displayed,which is the rotation indicated by the name AdRotator.prosetech.jpghttp://www.prosetech.comProseTech Site1Computer 8. You can set the KeywordFilter property so that the bannerwill be chosen from a specific keyword group. tag to your .aspx page file and then add one tag inside it for each separate view:......... 10. MultiView1.ActiveViewIndex = 0;OrMultiView1.SetActiveView(View1);The MultiView includes some built-in smarts that can save you a lotof trouble. Heres how it works: the MultiView recognizes buttoncontrols with specific command names. 11. Wizards represent a single task, and the user moveslinearly through them, moving from the current step to theone immediately following it (or the one immediatelypreceding it in the case of a correction). The ASP.NETWizard control also supports nonlinear navigation, whichmeans it allows you to decide to ignore a step based onthe information the user supplies. 12. You can add as many WizardStep controls inside theWizard as you want. Conceptually, the WizardStep playsthe same role as the View in a MultiView. You place thecontent for each step inside the WizardStep control. ... ... ...

Popular Tags:

Click here to load reader

Embed Size (px)
Recommended