The document discusses several rich controls in ASP.NET including the AdRotator, File Upload, Multiview, Calendar, and Wizard controls. It provides descriptions of each control and examples of how to use their key properties. Some key advantages of rich controls mentioned are that they are flexible, reduce code needs, and improve performance by combining standard controls into a single control.
2. 2
•
What is Rich Control ?
•
AdRotator Control and Example
•
File Upload Control and Example
•
Multiview Control and Example
•
Calender Control and Example
•
Wizard Control and Example
•
Advantage
•
Reference
Content
Rich Control
3. 3
What is Rich Control..??
•
The Control which are not standard control and allow
you to do some advanced functionality are know as
“RICH CONTROL”
•
Rich controls are built with multiple HTML elements
and contain rich functionality.
•
Although rich control is combination of other
standard controls,it work as a single control.
Rich Control
4. 4
AdRotator Control
•
ASP.NET gives you one very useful and important
control to develop advertisement banners called
« AdRotator Control »
•
AdRotaror control has only one very important
property called « AdvertisementFile » which
basically a XML file.
•
AdvertisementFile Contains details about the
advertisements.
Rich Control
5. 5
Properties
•
Add control where banner is to display
•
Properties:
AdvertisementFile :-XML file of banners
KeywordFilter:- only banners with this keyword
Target :-where to display hyperlink
Height/Width:- if want the same for all banners
Rich Control
10. 10
File Upload Control
•
The file upload control used to select (Browse)any
file from your pc and then the uploaded file is used
for some specific operation.
•
It just gives you the path of file along with its name.
Rich Control
11. 11
Property
•
File Name:
Gives you the name of file which is
uploaded.
•
HasFile:
Return Boolean value True or False.
•
FileContent:
This is collection which gives details about
file contents.
Rich Control
14. 14
Multiview
•
Multiview Control used for many view.
•
Sometime it have many screens but at a time display
only one screen.
•
Multiview is a container of group of view control.
•
In Multiview select only one view at a time that is
called “Active View”
Rich Control
15. 15
Property
•
ActiveViewIndex:
It will be used to set or get the index no. of
current active view.
•
Views.Count
Views.count will give total no. of views under
multiview.
Rich Control
18. 18
Calender Control
•
The Calendar control is created by the Calendar class
•
Thé calendar displays a single calendar month
•
By default, the current month is displayed
–
You can configure the appearance of the calendar
by setting the properties of the calendar control.
Rich Control
19. 19
Properties
•
The Calendar control supports the following
properties:
DayNameFormat—Enables you to specify the
appearance of the days of the week.Possible values
are FirstLetter, FirstTwoLetters, Full, Short.
NextMonthText—Enables you to specify the text
that appears for the next month link.
Rich Control
20. 20
Cont…
•
SelectedDate—Enables you to get or set the selected
date
•
SelectionMode—Enables you to specify how dates
are selected. Possible values are Day, DayWeek,
DayWeekMonth.
•
ShowDayHeader—Enables you to hide or display
the day names at the top of the Calendar control.
Rich Control
23. 23
Wizard Control
•
Wizard has many screen which comes after one
another.
•
For wizard we say “Start->Next->Next->..->Finish”
•
Where screen starts with “Start” scrren and goes up to
last screen.
•
Wizard has different THREE parts:
Main , Header , SideBar
Rich Control
24. 24
Property
•
ActiveStepIndex:
It is used to set or get the index no.of currently
active step.
•
HeaderText:
HeaderText will be display in all the steps as
header information.
•
WizardSteps.Count:
Returns how many no. of steps are specified
in wizardSteps.
Rich Control
27. 27
Advantage
•
It is very flexible control.
•
Control has high performance.
•
Rich control reduce the code and give the high
performance.
•
Consume the developer time.
Rich Control