web 2.0

ASP.NET(vb.net) & View - asp:View

ASP.NET(vb.net) & View - asp:View - asp:View : The MultiView control represents a control that acts as a container for groups of View controls. It allows you to define a group of View controls, where each View control contains child controls, for example, in an online survey application. Your application can then render a specific View control to the client based on criteria such as user identity, user preferences, or information passed in a query string parameter.

ShotDev Focus:
- ASP.NET(vb.net) & View - asp:View

ASP.NET(vb.net) & View - asp:View



<%@ Page Language="VB" %>
<script runat="server">

Sub DropDownList1_SelectedIndexChanged(sender As Object, e As System.EventArgs)
MultiView1.ActiveViewIndex = DropDownList1.SelectedValue
End Sub

<title>ShotDev.Com Tutorial</title>
<form id="form1" runat="server">
<asp:DropDownList ID="DropDownList1" OnSelectedIndexChanged="DropDownList1_SelectedIndexChanged"
runat="server" AutoPostBack="True">
<asp:ListItem Value="0">Name</asp:ListItem>
<asp:ListItem Value="1">Email</asp:ListItem>
<asp:ListItem Value="2">Password</asp:ListItem>
<br />
<asp:MultiView ID="MultiView1" runat="server" ActiveViewIndex="0">

<asp:View ID="View1" runat="server">
First Name :<br />
<asp:TextBox ID="txtFirstName" runat="server" Width="184px"></asp:TextBox>
<br />
Last Name :<br />
<asp:TextBox ID="txtLastName" runat="server" Width="184px"></asp:TextBox>

<asp:View ID="View2" runat="server">
Enter Your Email<br />
<asp:TextBox ID="txtEmail" runat="server" Width="184px"></asp:TextBox>

<asp:View ID="View3" runat="server">
(Auth Password) Password:<br />
<asp:TextBox ID="txtPassword1" runat="server" TextMode="Password" Width="192px"></asp:TextBox><br />
<asp:TextBox ID="txtPassword2" runat="server" TextMode="Password" Width="192px"></asp:TextBox>


<asp:Label id="lblText1" runat="server"></asp:Label>


ASP.NET(vb.net) & View - asp:View

ASP.NET(vb.net) & View - asp:View
Download this script.

1 Star2 Stars3 Stars4 Stars5 Stars6 Stars7 Stars8 Stars9 Stars10 Stars (No Ratings Yet)
Loading ... Loading ...

Leave a Reply

You must be logged in to post a comment.