1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657
|
<?xml version="1.0" encoding="utf-8"?>
<Type Name="MultiView" FullName="System.Web.UI.WebControls.MultiView">
<TypeSignature Language="C#" Value="public class MultiView : System.Web.UI.Control" />
<AssemblyInfo>
<AssemblyName>System.Web</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Base>
<BaseTypeName>System.Web.UI.Control</BaseTypeName>
</Base>
<Interfaces />
<Attributes>
<Attribute>
<AttributeName>System.ComponentModel.DefaultEvent("ActiveViewChanged")</AttributeName>
</Attribute>
<Attribute>
<AttributeName>System.Web.UI.ParseChildren(typeof(System.Web.UI.WebControls.View))</AttributeName>
</Attribute>
<Attribute>
<AttributeName>System.Web.UI.ToolboxData("<{0}:MultiView runat="server"></{0}:MultiView>")</AttributeName>
</Attribute>
<Attribute>
<AttributeName>System.ComponentModel.Designer("System.Web.UI.Design.WebControls.MultiViewDesigner, System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", "System.ComponentModel.Design.IDesigner")</AttributeName>
</Attribute>
</Attributes>
<Docs>
<since version=".NET 2.0" />
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>In this topic:</para>
<list type="bullet">
<item>
<para>
<format type="text/html">
<a href="#introduction">Introduction</a>
</format>
</para>
</item>
<item>
<para>
<format type="text/html">
<a href="#declarative_syntax">Declarative Syntax</a>
</format>
</para>
</item>
</list>
<format type="text/html">
<a href="#introduction" />
</format>
<format type="text/html">
<h2>Introduction</h2>
</format>
<para>The <see cref="T:System.Web.UI.WebControls.MultiView" /> control is a container for a group of <see cref="T:System.Web.UI.WebControls.View" /> controls. It allows you to define a group of <see cref="T:System.Web.UI.WebControls.View" /> controls, where each <see cref="T:System.Web.UI.WebControls.View" /> control contains child controls. Your application can then render a specific <see cref="T:System.Web.UI.WebControls.View" /> control to the client based on criteria such as user identity, user preferences, and information passed in a query-string parameter. You can also use the <see cref="T:System.Web.UI.WebControls.MultiView" /> control to create wizards. In this scenario, each <see cref="T:System.Web.UI.WebControls.View" /> control contained in a <see cref="T:System.Web.UI.WebControls.MultiView" /> control represents a different step or page in the wizard. You should also use this control to develop multiple-screen applications for mobile devices. This control provides the same functionality as the ASP.NET mobile <see cref="T:System.Web.UI.MobileControls.Form" /> control in .NET Framework version 1.1.</para>
<para>Only one <see cref="T:System.Web.UI.WebControls.View" /> control at a time can be defined as the active view within a <see cref="T:System.Web.UI.WebControls.MultiView" /> control. When a <see cref="T:System.Web.UI.WebControls.View" /> control is defined as the active view, the child controls that it contains are rendered to the client. You can use either the <see cref="P:System.Web.UI.WebControls.MultiView.ActiveViewIndex" /> property or the <see cref="M:System.Web.UI.WebControls.MultiView.SetActiveView(System.Web.UI.WebControls.View)" /> method to define the active view. If the <see cref="P:System.Web.UI.WebControls.MultiView.ActiveViewIndex" /> property is empty, the <see cref="T:System.Web.UI.WebControls.MultiView" /> control does not render any content to the client. If the active view is set to a <see cref="T:System.Web.UI.WebControls.View" /> that does not exist within the <see cref="T:System.Web.UI.WebControls.MultiView" /> control, an <see cref="T:System.ArgumentOutOfRangeException" /> is raised at run time.</para>
<para>You can define the active view declaratively or programmatically. Setting the <see cref="P:System.Web.UI.WebControls.MultiView.ActiveViewIndex" /> property declaratively when you define the <see cref="T:System.Web.UI.WebControls.MultiView" /> control causes the <see cref="T:System.Web.UI.WebControls.View" /> control that is set as the active view to render to the client the first time the <see cref="T:System.Web.UI.WebControls.MultiView" /> control is called. The following code example demonstrates how to set the <see cref="P:System.Web.UI.WebControls.MultiView.ActiveViewIndex" /> property declaratively.</para>
<code><asp:MultiView id="MultiView1" ActiveViewIndex=0 runat="Server"> </code>
<para>Setting the <see cref="P:System.Web.UI.WebControls.MultiView.ActiveViewIndex" /> property programmatically, or calling the <see cref="M:System.Web.UI.WebControls.MultiView.SetActiveView(System.Web.UI.WebControls.View)" /> method, allows the application to determine which <see cref="T:System.Web.UI.WebControls.View" /> control to render to the client at run time based on criteria such as a user's identity or preferences.</para>
<para>To allow users to navigate between <see cref="T:System.Web.UI.WebControls.View" /> controls within a <see cref="T:System.Web.UI.WebControls.MultiView" /> control, you can add a <see cref="T:System.Web.UI.WebControls.LinkButton" /> or <see cref="T:System.Web.UI.WebControls.Button" /> control to each <see cref="T:System.Web.UI.WebControls.View" /> control. To take advantage of the <see cref="T:System.Web.UI.WebControls.MultiView" /> control's automatic updating of the currently active <see cref="T:System.Web.UI.WebControls.View" />, set the CommandName property on the button or link button to the value of one of the following command-name fields that corresponds to the desired navigation behavior: <see cref="F:System.Web.UI.WebControls.MultiView.PreviousViewCommandName" />, <see cref="F:System.Web.UI.WebControls.MultiView.NextViewCommandName" />, <see cref="F:System.Web.UI.WebControls.MultiView.SwitchViewByIDCommandName" />, or <see cref="F:System.Web.UI.WebControls.MultiView.SwitchViewByIndexCommandName" />.</para>
<format type="text/html">
<a href="#declarative_syntax" />
</format>
<format type="text/html">
<h2>Declarative Syntax</h2>
</format>
<code><asp:MultiView
ActiveViewIndex="integer"
EnableTheming="<codeFeaturedElement>True</codeFeaturedElement>|False"
EnableViewState="<codeFeaturedElement>True</codeFeaturedElement>|False"
ID="string"
OnActiveViewChanged="ActiveViewChanged event handler"
OnDataBinding="DataBinding event handler"
OnDisposed="Disposed event handler"
OnInit="Init event handler"
OnLoad="Load event handler"
OnPreRender="PreRender event handler"
OnUnload="Unload event handler"
runat="server"
SkinID="string"
Visible="<codeFeaturedElement>True</codeFeaturedElement>|False"
>
<asp:TemplatedWizardStep
AllowReturn="<codeFeaturedElement>True</codeFeaturedElement>|False"
ContentTemplateContainer="string"
EnableTheming="<codeFeaturedElement>True</codeFeaturedElement>|False"
EnableViewState="<codeFeaturedElement>True</codeFeaturedElement>|False"
ID="string"
OnActivate="Activate event handler"
OnDataBinding="DataBinding event handler"
OnDeactivate="Deactivate event handler"
OnDisposed="Disposed event handler"
OnInit="Init event handler"
OnLoad="Load event handler"
OnPreRender="PreRender event handler"
OnUnload="Unload event handler"
runat="server"
SkinID="string"
StepType="<codeFeaturedElement>Auto</codeFeaturedElement>|Complete|Finish|Start|Step"
Title="string"
Visible="<codeFeaturedElement>True</codeFeaturedElement>|False"
>
<ContentTemplate>
<!-- child controls -->
</ContentTemplate>
<CustomNavigationTemplate>
<!-- child controls -->
</CustomNavigationTemplate>
</asp:TemplatedWizardStep>
<asp:View
EnableTheming="<codeFeaturedElement>True</codeFeaturedElement>|False"
EnableViewState="<codeFeaturedElement>True</codeFeaturedElement>|False"
ID="string"
OnActivate="Activate event handler"
OnDataBinding="DataBinding event handler"
OnDeactivate="Deactivate event handler"
OnDisposed="Disposed event handler"
OnInit="Init event handler"
OnLoad="Load event handler"
OnPreRender="PreRender event handler"
OnUnload="Unload event handler"
runat="server"
SkinID="string"
Visible="<codeFeaturedElement>True</codeFeaturedElement>|False"
/>
<asp:WizardStep
AllowReturn="<codeFeaturedElement>True</codeFeaturedElement>|False"
EnableTheming="<codeFeaturedElement>True</codeFeaturedElement>|False"
EnableViewState="<codeFeaturedElement>True</codeFeaturedElement>|False"
ID="string"
OnActivate="Activate event handler"
OnDataBinding="DataBinding event handler"
OnDeactivate="Deactivate event handler"
OnDisposed="Disposed event handler"
OnInit="Init event handler"
OnLoad="Load event handler"
OnPreRender="PreRender event handler"
OnUnload="Unload event handler"
runat="server"
SkinID="string"
StepType="<codeFeaturedElement>Auto</codeFeaturedElement>|Complete|Finish|Start|Step"
Title="string"
Visible="<codeFeaturedElement>True</codeFeaturedElement>|False"
/>
</asp:MultiView></code>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Represents a control that acts as a container for a group of <see cref="T:System.Web.UI.WebControls.View" /> controls.</para>
</summary>
</Docs>
<Members>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public MultiView ();" />
<MemberType>Constructor</MemberType>
<Parameters />
<Docs>
<since version=".NET 2.0" />
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Use this constructor to create and initialize a new instance of the <see cref="T:System.Web.UI.WebControls.MultiView" /> class.</para>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Initializes a new instance of the <see cref="T:System.Web.UI.WebControls.MultiView" /> class. </para>
</summary>
</Docs>
<AssemblyInfo>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
</AssemblyInfo>
</Member>
<Member MemberName="ActiveViewChanged">
<MemberSignature Language="C#" Value="public event EventHandler ActiveViewChanged;" />
<MemberType>Event</MemberType>
<ReturnValue>
<ReturnType>System.EventHandler</ReturnType>
</ReturnValue>
<Docs>
<since version=".NET 2.0" />
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>The <see cref="E:System.Web.UI.WebControls.MultiView.ActiveViewChanged" /> event is raised when the active <see cref="T:System.Web.UI.WebControls.View" /> control within a <see cref="T:System.Web.UI.WebControls.MultiView" /> control changes between posts to the server.</para>
<para>For more information about handling events, see <format type="text/html"><a href="73bf8638-c4ec-4069-b0bb-a1dc79b92e32">How to: Consume Events in a Web Forms Application</a></format>.</para>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Occurs when the active <see cref="T:System.Web.UI.WebControls.View" /> control of a <see cref="T:System.Web.UI.WebControls.MultiView" /> control changes between posts to the server.</para>
</summary>
</Docs>
<AssemblyInfo>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
</AssemblyInfo>
</Member>
<Member MemberName="ActiveViewIndex">
<MemberSignature Language="C#" Value="public virtual int ActiveViewIndex { set; get; }" />
<MemberType>Property</MemberType>
<Attributes>
<Attribute>
<AttributeName>System.ComponentModel.DefaultValue(-1)</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Int32</ReturnType>
</ReturnValue>
<Docs>
<value>To be added.</value>
<since version=".NET 2.0" />
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Use the <see cref="P:System.Web.UI.WebControls.MultiView.ActiveViewIndex" /> property to set a <see cref="T:System.Web.UI.WebControls.View" /> control within a <see cref="T:System.Web.UI.WebControls.MultiView" /> control as the active view. You can also use this property to return the index of the <see cref="T:System.Web.UI.WebControls.View" /> control that is currently set as the active view. The index of a <see cref="T:System.Web.UI.WebControls.View" /> control is determined by the order in which it is declared within a <see cref="T:System.Web.UI.WebControls.MultiView" /> control. For example, the first <see cref="T:System.Web.UI.WebControls.View" /> control declared within a <see cref="T:System.Web.UI.WebControls.MultiView" /> control has an index of 0.</para>
<para>Only one <see cref="T:System.Web.UI.WebControls.View" /> control at a time can be defined as active within a <see cref="T:System.Web.UI.WebControls.MultiView" /> control. The <see cref="T:System.Web.UI.WebControls.View" /> control that is set to the <see cref="P:System.Web.UI.WebControls.MultiView.ActiveViewIndex" /> property will be rendered to the client. If the <see cref="P:System.Web.UI.WebControls.MultiView.ActiveViewIndex" /> property is set to a <see cref="T:System.Web.UI.WebControls.View" /> that does not exist within the <see cref="T:System.Web.UI.WebControls.MultiView" /> control, a <see cref="T:System.ArgumentOutOfRangeException" /> is raised at run time. If the property is empty, the <see cref="T:System.Web.UI.WebControls.MultiView" /> control does not render any content to the client.</para>
<para>You can set the <see cref="P:System.Web.UI.WebControls.MultiView.ActiveViewIndex" /> property either declaratively at development time or programmatically at run time. Setting the <see cref="P:System.Web.UI.WebControls.MultiView.ActiveViewIndex" /> property declaratively when you define the <see cref="T:System.Web.UI.WebControls.MultiView" /> control causes the <see cref="T:System.Web.UI.WebControls.View" /> control that is set as the active view to render to the client the first time the <see cref="T:System.Web.UI.WebControls.MultiView" /> control is called. Setting the <see cref="P:System.Web.UI.WebControls.MultiView.ActiveViewIndex" /> property programmatically allows the application to determine which <see cref="T:System.Web.UI.WebControls.View" /> control to render to the client at run time based on criteria such as a user's identity or their preferences.</para>
<para>Alternately, you can use the <see cref="M:System.Web.UI.WebControls.MultiView.SetActiveView(System.Web.UI.WebControls.View)" /> and <see cref="M:System.Web.UI.WebControls.MultiView.GetActiveView" /> methods to set or get the active view within the <see cref="T:System.Web.UI.WebControls.MultiView" /> control.</para>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Gets or sets the index of the active <see cref="T:System.Web.UI.WebControls.View" /> control within a <see cref="T:System.Web.UI.WebControls.MultiView" /> control.</para>
</summary>
</Docs>
<AssemblyInfo>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
</AssemblyInfo>
</Member>
<Member MemberName="AddParsedSubObject">
<MemberSignature Language="C#" Value="protected override void AddParsedSubObject (object ob);" />
<MemberType>Method</MemberType>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="ob" Type="System.Object" />
</Parameters>
<Docs>
<param name="ob">To be added.</param>
<since version=".NET 2.0" />
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>This method overrides the base class implementation to allow only <see cref="T:System.Web.UI.WebControls.View" /> controls to be added to the <see cref="T:System.Web.UI.WebControls.ViewCollection" />.</para>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Notifies the <see cref="T:System.Web.UI.WebControls.MultiView" /> control that an XML or HTML element was parsed, and adds the element to the <see cref="T:System.Web.UI.WebControls.ViewCollection" /> collection of the <see cref="T:System.Web.UI.WebControls.MultiView" /> control.</para>
</summary>
</Docs>
<AssemblyInfo>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
</AssemblyInfo>
</Member>
<Member MemberName="CreateControlCollection">
<MemberSignature Language="C#" Value="protected override System.Web.UI.ControlCollection CreateControlCollection ();" />
<MemberType>Method</MemberType>
<ReturnValue>
<ReturnType>System.Web.UI.ControlCollection</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<since version=".NET 2.0" />
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>This method overrides the base implementation to always return a <see cref="T:System.Web.UI.WebControls.ViewCollection" /> to contain the <see cref="T:System.Web.UI.WebControls.View" /> controls of the current <see cref="T:System.Web.UI.WebControls.MultiView" /> control.</para>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Creates a <see cref="T:System.Web.UI.ControlCollection" /> to hold the child controls of the <see cref="T:System.Web.UI.WebControls.MultiView" /> control.</para>
</summary>
<returns>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>A <see cref="T:System.Web.UI.WebControls.ViewCollection" /> to contain the <see cref="T:System.Web.UI.WebControls.View" /> controls of the current <see cref="T:System.Web.UI.WebControls.MultiView" /> control.</para>
</returns>
</Docs>
<AssemblyInfo>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
</AssemblyInfo>
</Member>
<Member MemberName="EnableTheming">
<MemberSignature Language="C#" Value="public virtual bool EnableTheming { set; get; }" />
<MemberType>Property</MemberType>
<Attributes>
<Attribute>
<AttributeName>System.ComponentModel.Browsable(true)</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Docs>
<value>To be added.</value>
<since version=".NET 2.0" />
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>The <see cref="P:System.Web.UI.WebControls.MultiView.EnableTheming" /> property indicates whether themes are enabled for the <see cref="T:System.Web.UI.WebControls.MultiView" /> control. The <see cref="P:System.Web.UI.WebControls.MultiView.EnableTheming" /> property also affects whether themes are enabled for the controls contained in its <see cref="P:System.Web.UI.Control.Controls" /> collection. When the <see cref="P:System.Web.UI.WebControls.MultiView.EnableTheming" /> property is true, the application's theme directory is searched for control skins to apply. If no skin for the particular control exists in the theme directory, a skin is not applied. When the <see cref="P:System.Web.UI.WebControls.MultiView.EnableTheming" /> property is false, the theme directory is not searched and the contents of the <see cref="P:System.Web.UI.Control.SkinID" /> property are not used.</para>
<para>A control can override the <see cref="P:System.Web.UI.WebControls.MultiView.EnableTheming" /> value set by its parent control or the containing page. For example, if a <see cref="T:System.Web.UI.WebControls.MultiView" /> control has <see cref="P:System.Web.UI.WebControls.MultiView.EnableTheming" /> set to false, you can selectively apply themes to individual <see cref="T:System.Web.UI.WebControls.View" /> controls contained within the <see cref="T:System.Web.UI.WebControls.MultiView" /> control by setting the <see cref="P:System.Web.UI.Control.EnableTheming" /> property to true on the individual child controls.</para>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Gets or sets a value indicating whether themes apply to the <see cref="T:System.Web.UI.WebControls.MultiView" /> control.</para>
</summary>
</Docs>
<AssemblyInfo>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
</AssemblyInfo>
</Member>
<Member MemberName="GetActiveView">
<MemberSignature Language="C#" Value="public System.Web.UI.WebControls.View GetActiveView ();" />
<MemberType>Method</MemberType>
<ReturnValue>
<ReturnType>System.Web.UI.WebControls.View</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<since version=".NET 2.0" />
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Use this method to return the <see cref="T:System.Web.UI.WebControls.View" /> control within a <see cref="T:System.Web.UI.WebControls.MultiView" /> control that is currently set as the active view. This method returns a <see cref="T:System.Web.UI.WebControls.View" /> control and therefore can be used to access the properties of the active view. For example, MultiView1.GetActiveView.ID returns the value of the <see cref="P:System.Web.UI.Control.ID" /> property of the current active view in MultiView1.</para>
<para>Alternately, you can use the <see cref="P:System.Web.UI.WebControls.MultiView.ActiveViewIndex" /> property to get or set the zero-based index of the current active view in a <see cref="T:System.Web.UI.WebControls.MultiView" /> control. This property can be accessed either declaratively or programmatically.</para>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Returns the current active <see cref="T:System.Web.UI.WebControls.View" /> control within a <see cref="T:System.Web.UI.WebControls.MultiView" /> control.</para>
</summary>
<returns>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>A <see cref="T:System.Web.UI.WebControls.View" /> control that represents the active view within a <see cref="T:System.Web.UI.WebControls.MultiView" /> control.</para>
</returns>
</Docs>
<AssemblyInfo>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
</AssemblyInfo>
</Member>
<Member MemberName="LoadControlState">
<MemberSignature Language="C#" Value="protected override void LoadControlState (object state);" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="state" Type="System.Object" />
</Parameters>
<Docs>
<remarks>To be added.</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Loads the current state of the <see cref="T:System.Web.UI.WebControls.MultiView" /> control.</para>
</summary>
<param name="state">
<attribution license="cc4" from="Microsoft" modified="false" />An <see cref="T:System.Object" /> that represents the state of the <see cref="T:System.Web.UI.WebControls.MultiView" /> control. </param>
</Docs>
</Member>
<Member MemberName="NextViewCommandName">
<MemberSignature Language="C#" Value="public static readonly string NextViewCommandName;" />
<MemberType>Field</MemberType>
<ReturnValue>
<ReturnType>System.String</ReturnType>
</ReturnValue>
<Docs>
<since version=".NET 2.0" />
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Use the <see cref="F:System.Web.UI.WebControls.MultiView.NextViewCommandName" /> field to represent the "NextView" command name.</para>
<para>You can use the value of this field to take advantage of the <see cref="T:System.Web.UI.WebControls.MultiView" /> control's automatic updating of the active <see cref="T:System.Web.UI.WebControls.View" /> control. For example, if a <see cref="T:System.Web.UI.WebControls.View" /> control contains a <see cref="T:System.Web.UI.WebControls.Button" /> control that navigates to the previous <see cref="T:System.Web.UI.WebControls.View" />, you can set the <see cref="P:System.Web.UI.WebControls.Button.CommandName" /> property to the value of the <see cref="F:System.Web.UI.WebControls.MultiView.NextViewCommandName" /> field, which is "NextView". This causes the <see cref="T:System.Web.UI.WebControls.MultiView" /> control to automatically decrement the value of the <see cref="P:System.Web.UI.WebControls.MultiView.ActiveViewIndex" /> property when the button is clicked.</para>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Represents the command name associated with the next <see cref="T:System.Web.UI.WebControls.View" /> control to display in a <see cref="T:System.Web.UI.WebControls.MultiView" /> control. This field is read-only.</para>
</summary>
</Docs>
<AssemblyInfo>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
</AssemblyInfo>
</Member>
<Member MemberName="OnActiveViewChanged">
<MemberSignature Language="C#" Value="protected virtual void OnActiveViewChanged (EventArgs e);" />
<MemberType>Method</MemberType>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="e" Type="System.EventArgs" />
</Parameters>
<Docs>
<since version=".NET 2.0" />
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>The <see cref="E:System.Web.UI.WebControls.MultiView.ActiveViewChanged" /> event is raised when the active <see cref="T:System.Web.UI.WebControls.View" /> control within a <see cref="T:System.Web.UI.WebControls.MultiView" /> control changes between posts to the server, and you can provide a custom handler for this event.</para>
<para>Raising an event invokes the event handler through a delegate. For more information, see <format type="text/html"><a href="73bf8638-c4ec-4069-b0bb-a1dc79b92e32">How to: Consume Events in a Web Forms Application</a></format>.</para>
<para>The <see cref="M:System.Web.UI.WebControls.MultiView.OnActiveViewChanged(System.EventArgs)" /> method also allows derived classes to handle the event without attaching a delegate. This is the preferred technique for handling the event in a derived class.</para>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Raises the <see cref="E:System.Web.UI.WebControls.MultiView.ActiveViewChanged" /> event of a <see cref="T:System.Web.UI.WebControls.MultiView" /> control.</para>
</summary>
<param name="e">
<attribution license="cc4" from="Microsoft" modified="false" />A <see cref="T:System.EventArgs" /> that contains the event data. </param>
</Docs>
<AssemblyInfo>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
</AssemblyInfo>
</Member>
<Member MemberName="OnBubbleEvent">
<MemberSignature Language="C#" Value="protected override bool OnBubbleEvent (object source, EventArgs e);" />
<MemberType>Method</MemberType>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="source" Type="System.Object" />
<Parameter Name="e" Type="System.EventArgs" />
</Parameters>
<Docs>
<since version=".NET 2.0" />
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>A <see cref="T:System.Web.UI.WebControls.MultiView" /> control contains <see cref="T:System.Web.UI.WebControls.View" /> controls that raise events. This method overrides the base implementation to handle navigation between <see cref="T:System.Web.UI.WebControls.View" /> controls.</para>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Determines whether the event for the <see cref="T:System.Web.UI.WebControls.MultiView" /> control is passed to the page's UI server control hierarchy.</para>
</summary>
<returns>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>true if the event has been canceled; otherwise, false. The default is false.</para>
</returns>
<param name="source">
<attribution license="cc4" from="Microsoft" modified="false" />The source of the event. </param>
<param name="e">
<attribution license="cc4" from="Microsoft" modified="false" />An <see cref="T:System.EventArgs" /> object that contains the event data. </param>
</Docs>
<AssemblyInfo>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
</AssemblyInfo>
</Member>
<Member MemberName="OnInit">
<MemberSignature Language="C#" Value="protected override void OnInit (EventArgs e);" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="e" Type="System.EventArgs" />
</Parameters>
<Docs>
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>When notified by this method, a <see cref="T:System.Web.UI.WebControls.MultiView" /> control must perform any initialization steps that are required to create and set up an instance. In this stage of the server control's lifecycle, the control's view state has yet to be populated. You cannot access another server control when this method is called, even if it is a child or parent of this control. Other server controls are not certain to be created and ready for access.</para>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Raises the <see cref="E:System.Web.UI.Control.Init" /> event.</para>
</summary>
<param name="e">
<attribution license="cc4" from="Microsoft" modified="false" />An <see cref="T:System.EventArgs" /> object that contains the event data. </param>
</Docs>
</Member>
<Member MemberName="PreviousViewCommandName">
<MemberSignature Language="C#" Value="public static readonly string PreviousViewCommandName;" />
<MemberType>Field</MemberType>
<ReturnValue>
<ReturnType>System.String</ReturnType>
</ReturnValue>
<Docs>
<since version=".NET 2.0" />
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Use the <see cref="F:System.Web.UI.WebControls.MultiView.PreviousViewCommandName" /> field to represent the "PrevView" command name. </para>
<para>You can use the value of this field to take advantage of the <see cref="T:System.Web.UI.WebControls.MultiView" /> control's automatic updating of the active <see cref="T:System.Web.UI.WebControls.View" /> control. For example, if a <see cref="T:System.Web.UI.WebControls.View" /> control contains a <see cref="T:System.Web.UI.WebControls.Button" /> control that navigates to the next <see cref="T:System.Web.UI.WebControls.View" />, you can set the <see cref="P:System.Web.UI.WebControls.Button.CommandName" /> property to the value of the <see cref="F:System.Web.UI.WebControls.MultiView.PreviousViewCommandName" /> field, which is "PrevView". This causes the <see cref="T:System.Web.UI.WebControls.MultiView" /> control to automatically increment the value of the <see cref="P:System.Web.UI.WebControls.MultiView.ActiveViewIndex" /> property when the button is clicked.</para>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Represents the command name associated with the previous <see cref="T:System.Web.UI.WebControls.View" /> control to display in a <see cref="T:System.Web.UI.WebControls.MultiView" /> control. This field is read-only.</para>
</summary>
</Docs>
<AssemblyInfo>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
</AssemblyInfo>
</Member>
<Member MemberName="RemovedControl">
<MemberSignature Language="C#" Value="protected override void RemovedControl (System.Web.UI.Control ctl);" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="ctl" Type="System.Web.UI.Control" />
</Parameters>
<Docs>
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>The <see cref="M:System.Web.UI.Control.RemovedControl(System.Web.UI.Control)" /> method is called immediately after a <see cref="T:System.Web.UI.WebControls.View" /> control is removed from the <see cref="P:System.Web.UI.Control.Controls" /> collection of a <see cref="T:System.Web.UI.WebControls.MultiView" /> control.</para>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Called after a <see cref="T:System.Web.UI.WebControls.View" /> control is removed from the <see cref="P:System.Web.UI.Control.Controls" /> collection of a <see cref="T:System.Web.UI.WebControls.MultiView" /> control.</para>
</summary>
<param name="ctl">
<attribution license="cc4" from="Microsoft" modified="false" />The <see cref="T:System.Web.UI.WebControls.View" /> control that has been removed. </param>
</Docs>
</Member>
<Member MemberName="Render">
<MemberSignature Language="C#" Value="protected override void Render (System.Web.UI.HtmlTextWriter writer);" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="writer" Type="System.Web.UI.HtmlTextWriter" />
</Parameters>
<Docs>
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>The <see cref="M:System.Web.UI.WebControls.MultiView.Render(System.Web.UI.HtmlTextWriter)" /> method is used primarily by control developers when deriving a custom class from the <see cref="T:System.Web.UI.WebControls.MultiView" /> control.</para>
<para>The <see cref="M:System.Web.UI.WebControls.MultiView.Render(System.Web.UI.HtmlTextWriter)" /> method writes the rendered content of the active view to the client using the supplied <see cref="T:System.Web.UI.HtmlTextWriter" />. You can set the active view in a <see cref="T:System.Web.UI.WebControls.MultiView" /> control using the <see cref="M:System.Web.UI.WebControls.MultiView.SetActiveView(System.Web.UI.WebControls.View)" /> method or the <see cref="P:System.Web.UI.WebControls.MultiView.ActiveViewIndex" /> property. You can determine which one of the <see cref="T:System.Web.UI.WebControls.View" /> controls in the <see cref="P:System.Web.UI.WebControls.MultiView.Views" /> collection is the active view, if any, by using the <see cref="M:System.Web.UI.WebControls.MultiView.GetActiveView" /> method or the <see cref="P:System.Web.UI.WebControls.MultiView.ActiveViewIndex" /> property.</para>
<para>If an active view is set for the <see cref="T:System.Web.UI.WebControls.MultiView" /> control, the active <see cref="T:System.Web.UI.WebControls.View" /> control is used to render content for that view and its child controls. If an active view is not set for the <see cref="T:System.Web.UI.WebControls.MultiView" /> control, no content is rendered to the <see cref="T:System.Web.UI.HtmlTextWriter" />.</para>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Writes the <see cref="T:System.Web.UI.WebControls.MultiView" /> control content to the specified <see cref="T:System.Web.UI.HtmlTextWriter" /> object, for display on the client. </para>
</summary>
<param name="writer">
<attribution license="cc4" from="Microsoft" modified="false" />An <see cref="T:System.Web.UI.HtmlTextWriter" /> that represents the output stream to render HTML content on the client.</param>
</Docs>
</Member>
<Member MemberName="SaveControlState">
<MemberSignature Language="C#" Value="protected override object SaveControlState ();" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Object</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<remarks>To be added.</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Saves the current state of the <see cref="T:System.Web.UI.WebControls.MultiView" /> control.</para>
</summary>
<returns>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>An <see cref="T:System.Object" /> that represents the state of the <see cref="T:System.Web.UI.WebControls.MultiView" /> control. If there is no state associated with the <see cref="T:System.Web.UI.WebControls.MultiView" /> control, this method returns null.</para>
</returns>
</Docs>
</Member>
<Member MemberName="SetActiveView">
<MemberSignature Language="C#" Value="public void SetActiveView (System.Web.UI.WebControls.View view);" />
<MemberType>Method</MemberType>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="view" Type="System.Web.UI.WebControls.View" />
</Parameters>
<Docs>
<since version=".NET 2.0" />
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Use this method to set a <see cref="T:System.Web.UI.WebControls.View" /> control within a <see cref="T:System.Web.UI.WebControls.MultiView" /> control as the active view. Only one <see cref="T:System.Web.UI.WebControls.View" /> control at a time can be defined as active within a <see cref="T:System.Web.UI.WebControls.MultiView" /> control. The <see cref="T:System.Web.UI.WebControls.View" /> control that is set as the active view is rendered to the client. If a <see cref="T:System.Web.UI.WebControls.View" /> control that does not exist within the <see cref="T:System.Web.UI.WebControls.MultiView" /> control is set as active, an exception is raised at run time. If no <see cref="T:System.Web.UI.WebControls.View" /> control is set as the active view, the <see cref="T:System.Web.UI.WebControls.MultiView" /> control does not render any content to the client.</para>
<para>Using the <see cref="M:System.Web.UI.WebControls.MultiView.SetActiveView(System.Web.UI.WebControls.View)" /> method to programmatically set the active view allows the application to determine which <see cref="T:System.Web.UI.WebControls.View" /> control to render to the client at run time based on criteria such as a user's identity and preferences.</para>
<para>Alternately, you can use the <see cref="P:System.Web.UI.WebControls.MultiView.ActiveViewIndex" /> property to get or set the zero-based index of the current active view in a <see cref="T:System.Web.UI.WebControls.MultiView" /> control. This property can be accessed either declaratively or programmatically.</para>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Sets the specified <see cref="T:System.Web.UI.WebControls.View" /> control to the active view within a <see cref="T:System.Web.UI.WebControls.MultiView" /> control.</para>
</summary>
<param name="view">
<attribution license="cc4" from="Microsoft" modified="false" />A <see cref="T:System.Web.UI.WebControls.View" /> control to set as the active view within a <see cref="T:System.Web.UI.WebControls.MultiView" /> control. </param>
</Docs>
<AssemblyInfo>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
</AssemblyInfo>
</Member>
<Member MemberName="SwitchViewByIDCommandName">
<MemberSignature Language="C#" Value="public static readonly string SwitchViewByIDCommandName;" />
<MemberType>Field</MemberType>
<ReturnValue>
<ReturnType>System.String</ReturnType>
</ReturnValue>
<Docs>
<since version=".NET 2.0" />
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Use the <see cref="F:System.Web.UI.WebControls.MultiView.SwitchViewByIDCommandName" /> field to represent the "SwitchViewByID" command name.</para>
<para>You can use the value of this field to take advantage of the <see cref="T:System.Web.UI.WebControls.MultiView" /> control's automatic updating of the active <see cref="T:System.Web.UI.WebControls.View" /> control. For example, if a <see cref="T:System.Web.UI.WebControls.View" /> control contains a <see cref="T:System.Web.UI.WebControls.Button" /> control that navigates to the first <see cref="T:System.Web.UI.WebControls.View" /> when clicked, you can set the <see cref="P:System.Web.UI.WebControls.Button.CommandName" /> property to the value of the <see cref="F:System.Web.UI.WebControls.MultiView.SwitchViewByIDCommandName" /> field, which is "SwitchViewByID". Set the <see cref="P:System.Web.UI.WebControls.Button.CommandArgument" /> property to the ID of the first <see cref="T:System.Web.UI.WebControls.View" /> in the <see cref="T:System.Web.UI.WebControls.MultiView" /> control, such as "Page1". This causes the <see cref="T:System.Web.UI.WebControls.MultiView" /> control to automatically set "Page1" as the active <see cref="T:System.Web.UI.WebControls.View" /> when the button is clicked.</para>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Represents the command name associated with changing the active <see cref="T:System.Web.UI.WebControls.View" /> control in a <see cref="T:System.Web.UI.WebControls.MultiView" /> control, based on a specified <see cref="T:System.Web.UI.WebControls.View" /> id. This field is read-only.</para>
</summary>
</Docs>
<AssemblyInfo>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
</AssemblyInfo>
</Member>
<Member MemberName="SwitchViewByIndexCommandName">
<MemberSignature Language="C#" Value="public static readonly string SwitchViewByIndexCommandName;" />
<MemberType>Field</MemberType>
<ReturnValue>
<ReturnType>System.String</ReturnType>
</ReturnValue>
<Docs>
<since version=".NET 2.0" />
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Use the <see cref="F:System.Web.UI.WebControls.MultiView.SwitchViewByIndexCommandName" /> field to represent the "SwitchViewByIndex" command name.</para>
<para>You can use the value of this field to take advantage of the <see cref="T:System.Web.UI.WebControls.MultiView" /> control's automatic updating of the active <see cref="T:System.Web.UI.WebControls.View" /> control. For example, if a <see cref="T:System.Web.UI.WebControls.View" /> control contains a <see cref="T:System.Web.UI.WebControls.Button" /> control that navigates to the first <see cref="T:System.Web.UI.WebControls.View" /> when clicked, you can set the <see cref="P:System.Web.UI.WebControls.Button.CommandName" /> property to the value of the <see cref="F:System.Web.UI.WebControls.MultiView.SwitchViewByIndexCommandName" /> field, which is "SwitchViewByIndex". Set the <see cref="P:System.Web.UI.WebControls.Button.CommandArgument" /> property to the index of the first <see cref="T:System.Web.UI.WebControls.View" /> in the <see cref="T:System.Web.UI.WebControls.MultiView" /> control, which is 0. This causes the <see cref="T:System.Web.UI.WebControls.MultiView" /> control to automatically set the <see cref="P:System.Web.UI.WebControls.MultiView.ActiveViewIndex" /> property to 0 when the button is clicked.</para>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Represents the command name associated with changing the active <see cref="T:System.Web.UI.WebControls.View" /> control in a <see cref="T:System.Web.UI.WebControls.MultiView" /> control based on a specified <see cref="T:System.Web.UI.WebControls.View" /> index. This field is read-only.</para>
</summary>
</Docs>
<AssemblyInfo>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
</AssemblyInfo>
</Member>
<Member MemberName="Views">
<MemberSignature Language="C#" Value="public virtual System.Web.UI.WebControls.ViewCollection Views { get; }" />
<MemberType>Property</MemberType>
<Attributes>
<Attribute>
<AttributeName>System.ComponentModel.Browsable(false)</AttributeName>
</Attribute>
<Attribute>
<AttributeName>System.Web.UI.PersistenceMode(System.Web.UI.PersistenceMode.InnerDefaultProperty)</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Web.UI.WebControls.ViewCollection</ReturnType>
</ReturnValue>
<Docs>
<value>To be added.</value>
<since version=".NET 2.0" />
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Use this property to programmatically manage the <see cref="T:System.Web.UI.WebControls.View" /> controls in a <see cref="T:System.Web.UI.WebControls.MultiView" /> control.</para>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Gets the collection of <see cref="T:System.Web.UI.WebControls.View" /> controls in the <see cref="T:System.Web.UI.WebControls.MultiView" /> control.</para>
</summary>
</Docs>
<AssemblyInfo>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
</AssemblyInfo>
</Member>
</Members>
</Type>
|