SlideShare a Scribd company logo
WELCOME
TO
ASP.NET Tutorials
on
Multi Views
• MultiView and View controls allow you to divide the content of a
page into different groups, displaying only one group at a time.
Each View control manages one group of content and all the
View controls are held together in a MultiView control.
• The MultiView control is responsible for displaying one View
control at a time. The View displayed is called the active view.
• The syntax of MultiView control is:
• <asp:MultView ID= "MultiView1" runat= "server">
</asp:MultiView>The syntax of View control is:
• <asp:View ID= "View1" runat= "server"> </asp:View>
Properties of View and MultiView Controls
• Both View and MultiView controls are derived from Control class and
inherit all its properties, methods, and events. The most important
property of the View control is Visible property of type Boolean, which
sets the visibility of a view.
• The CommandName attribute of the button control associated with
the navigation of the MultiView control are associated with some
related field of the MultiView control.
• For example, if a button control with CommandName value as
NextView is associated with the navigation of the multiview, it
automatically navigates to the next view when the button is clicked.
Properties Description
Views Collection of View controls within the MultiView.
ActiveViewIndex A zero based index that denotes the active view.
If no view is active, then the index is -1.
Properties Description
NextViewCommandName NextView
PreviousViewCommandName PrevView
SwitchViewByIDCommandName SwitchViewByID
SwitchViewByIndexCommandName SwitchViewByIndex
Methods Description
SetActiveview Sets the active view
GetActiveview Retrieves the active view
Events Description
ActiveViewChanged Raised when a view is changed
Activate Raised by the active view
Deactivate Raised by the inactive view
Thank You
For more updates subscribe to our YouTube channel
SIRYMEDIA
To watch more videos visit our website
www.sirymedia.in

More Related Content

PPTX
Managing exchange server 2013
PPT
Escritorio Remoto
PDF
Know_Your_Supplier_Hevea_Engineering_Works_Rubber Machinery World_Jan 2016
PPTX
Java Class1
PPTX
Ajax control asp.net
DOCX
Everett C. Hall
PPTX
Statistics review
Managing exchange server 2013
Escritorio Remoto
Know_Your_Supplier_Hevea_Engineering_Works_Rubber Machinery World_Jan 2016
Java Class1
Ajax control asp.net
Everett C. Hall
Statistics review

Viewers also liked (6)

PDF
435 Technical Terms in Rubber Industry
PPT
Strategic Sourcing And Supplier Development Strategy
PPT
Clase 15 SPSS
PPTX
Balance of power
PPT
Responsibile Citizenship Presentation
ODP
Ppt of c++ vs c#
435 Technical Terms in Rubber Industry
Strategic Sourcing And Supplier Development Strategy
Clase 15 SPSS
Balance of power
Responsibile Citizenship Presentation
Ppt of c++ vs c#
Ad

Similar to Main views in asp.net (20)

PPT
RichControl in Asp.net
PDF
Model View Controller
PDF
iPhone Development: Multiple Views
PDF
iOS Bootcamp: learning to create awesome apps on iOS using Swift (Lecture 05)
PPTX
Learnings for Accessibility for iOS Platform
PPTX
iOS training (intermediate)
PDF
iOS: View Controllers
PDF
Intro to UIKit • Made by Many
PPTX
PDF
Ch4 creating user interfaces
PPTX
SFDC UI - Introduction to Visualforce
PPT
ASP.NET Session 16
PPT
ASP.NET 04 - Additional Web Server Controls
PDF
Session 13 - Working with navigation and tab bar
PPTX
Custom Controllers and Controller Extensions
PPT
Adobe Flex Introduction
PPT
HCI 3e - Ch 8: Implementation support
PPT
Porting the Legacy Application to Composite Application Guidance
PPT
ASP.NET Session 9
PPT
e3-chap-08.ppt
RichControl in Asp.net
Model View Controller
iPhone Development: Multiple Views
iOS Bootcamp: learning to create awesome apps on iOS using Swift (Lecture 05)
Learnings for Accessibility for iOS Platform
iOS training (intermediate)
iOS: View Controllers
Intro to UIKit • Made by Many
Ch4 creating user interfaces
SFDC UI - Introduction to Visualforce
ASP.NET Session 16
ASP.NET 04 - Additional Web Server Controls
Session 13 - Working with navigation and tab bar
Custom Controllers and Controller Extensions
Adobe Flex Introduction
HCI 3e - Ch 8: Implementation support
Porting the Legacy Application to Composite Application Guidance
ASP.NET Session 9
e3-chap-08.ppt
Ad

More from Sireesh K (20)

PPTX
Cn10
PPTX
chanakya neeti
PPTX
chanakya neeti
DOCX
What is mvc
PPTX
PPTX
31cs
PPTX
PPTX
PPTX
PPTX
PPTX
PPTX
PPTX
PPTX
PPTX
PPTX
PPTX
PPTX
PPTX
PPTX
Cn10
chanakya neeti
chanakya neeti
What is mvc
31cs

Recently uploaded (20)

PPTX
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
PPTX
GDM (1) (1).pptx small presentation for students
PDF
Supply Chain Operations Speaking Notes -ICLT Program
PDF
Computing-Curriculum for Schools in Ghana
PDF
A systematic review of self-coping strategies used by university students to ...
PDF
A GUIDE TO GENETICS FOR UNDERGRADUATE MEDICAL STUDENTS
PPTX
Presentation on HIE in infants and its manifestations
PDF
Anesthesia in Laparoscopic Surgery in India
PDF
O5-L3 Freight Transport Ops (International) V1.pdf
PDF
102 student loan defaulters named and shamed – Is someone you know on the list?
PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PPTX
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PDF
2.FourierTransform-ShortQuestionswithAnswers.pdf
PPTX
Cell Structure & Organelles in detailed.
PPTX
Pharma ospi slides which help in ospi learning
PDF
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
PDF
01-Introduction-to-Information-Management.pdf
PDF
FourierSeries-QuestionsWithAnswers(Part-A).pdf
PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
GDM (1) (1).pptx small presentation for students
Supply Chain Operations Speaking Notes -ICLT Program
Computing-Curriculum for Schools in Ghana
A systematic review of self-coping strategies used by university students to ...
A GUIDE TO GENETICS FOR UNDERGRADUATE MEDICAL STUDENTS
Presentation on HIE in infants and its manifestations
Anesthesia in Laparoscopic Surgery in India
O5-L3 Freight Transport Ops (International) V1.pdf
102 student loan defaulters named and shamed – Is someone you know on the list?
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
Final Presentation General Medicine 03-08-2024.pptx
2.FourierTransform-ShortQuestionswithAnswers.pdf
Cell Structure & Organelles in detailed.
Pharma ospi slides which help in ospi learning
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
01-Introduction-to-Information-Management.pdf
FourierSeries-QuestionsWithAnswers(Part-A).pdf
school management -TNTEU- B.Ed., Semester II Unit 1.pptx

Main views in asp.net

  • 3. • MultiView and View controls allow you to divide the content of a page into different groups, displaying only one group at a time. Each View control manages one group of content and all the View controls are held together in a MultiView control. • The MultiView control is responsible for displaying one View control at a time. The View displayed is called the active view. • The syntax of MultiView control is: • <asp:MultView ID= "MultiView1" runat= "server"> </asp:MultiView>The syntax of View control is: • <asp:View ID= "View1" runat= "server"> </asp:View>
  • 4. Properties of View and MultiView Controls • Both View and MultiView controls are derived from Control class and inherit all its properties, methods, and events. The most important property of the View control is Visible property of type Boolean, which sets the visibility of a view. • The CommandName attribute of the button control associated with the navigation of the MultiView control are associated with some related field of the MultiView control. • For example, if a button control with CommandName value as NextView is associated with the navigation of the multiview, it automatically navigates to the next view when the button is clicked.
  • 5. Properties Description Views Collection of View controls within the MultiView. ActiveViewIndex A zero based index that denotes the active view. If no view is active, then the index is -1.
  • 6. Properties Description NextViewCommandName NextView PreviousViewCommandName PrevView SwitchViewByIDCommandName SwitchViewByID SwitchViewByIndexCommandName SwitchViewByIndex
  • 7. Methods Description SetActiveview Sets the active view GetActiveview Retrieves the active view
  • 8. Events Description ActiveViewChanged Raised when a view is changed Activate Raised by the active view Deactivate Raised by the inactive view
  • 9. Thank You For more updates subscribe to our YouTube channel SIRYMEDIA To watch more videos visit our website www.sirymedia.in