.NET
  Home arrow .NET arrow Basic Usage of MultiView and View Controls...
ASP Free Forums 
.NET  
ASP  
ASP Code  
ASP.NET  
ASP.NET Code  
BrainDump  
C#  
Code Examples  
Database  
Database Code  
IIS  
Microsoft Access  
MS SQL Server  
Visual Basic.NET  
Windows Scripting  
Windows Security  
XML  
ASP Web Hosting  
ASP.NET Web Hosting 
Dedicated Servers 
Actuate Whitepapers 
Moblin 
Windows Web Hosting
 
IBM® developerWorks 
Sun Developer Network 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
.NET

Basic Usage of MultiView and View Controls in ASP.NET
By: Jayaram Krishnaswamy
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 13
    2006-11-08

    Table of Contents:
  • Basic Usage of MultiView and View Controls in ASP.NET
  • Creating a web page with MultiView and View controls
  • Design time properties of View Control
  • Container Properties of View and MultiView Controls
  • Presenting a user preferred View

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT

    Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here

    Basic Usage of MultiView and View Controls in ASP.NET


    (Page 1 of 5 )

    This article introduces the use of View and MultiView controls. It discusses their properties and methods, and illustrates how they work with some simple web pages containing these controls.

    Introduction

    MultiView and View controls together provide a wizard-like functionality in ASP.NET pages. The MultiView control is a container control that can house only View Controls. The View Controls, which are also container controls, can only be housed in MultiView controls; any attempt to place them on a web page shows up as a design time error. Hence they will be used together with the MultiView control which may contain a number of View controls. Within the View control, one may place any of the other standard controls. That one may even place a MultiView control in a View Control opens the way for providing a complex navigational functionality in web pages.

    The client application can only interact with one of the View controls at any one time. This should remind the reader of only one browser window being active at any time, or any one form active at a time in VB 6 applications. All the controls in all the views are on the same web page and easy to access. Each time the page postbacks, one view will be displayed and the validators within that view are the only ones active. Hence the View State changes can be easily accounted for regardless of how many postbacks were made.

    About this tutorial

    The main objective of this tutorial is to introduce these controls by way of some simple web pages containing these controls. The tutorial also discusses the properties and methods of these controls using the information from the Object Browser.

    The next paragraph shows the object hierarchy of the MultiView control and its relation to the System.Object. Most of the properties and methods are inherited from System.Web.UI.Controls, though there are some properties and methods intrinsic to these controls.

    System.Object 
    System.Web.UI.Control 
    System.Web.UI.WebControls.MultiView
    

    More .NET Articles
    More By Jayaram Krishnaswamy


       · Persisting user preferences is not a trivial task but users are more and more used...
     

    .NET ARTICLES

    - Commands, Input and the WPF
    - Keyboard and Ink Input with WPF
    - Mouse Input and the WPF
    - Input with Windows Presentation Foundation
    - Introducing LINQ with XML and Databases
    - An Introduction to LINQ
    - Querying LINQ to SQL: Basics
    - Completing a Simple Storefront with LINQ
    - Knowing Your Environment: the System.Environ...
    - Creating the Home Page for a Simple Storefro...
    - LINQ Quickly with Language Integrated Queries
    - Introducing LINQ to SQL Designer using Visua...
    - Beginning LINQ to SQL Using Visual Studio 20...
    - Coding an AjaxPro.NET Based Search Engine fo...
    - Building an AjaxPro.NET Based Search Engine ...





    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway