asp.net.ph

Wizard.ActiveStepChanged Event

System.Web.UI.WebControls Namespace   Wizard Class


.NET Framework version 2.0

Occurs when the Wizard control switches between edit, insert, and read-only mode, but after the mode has changed.

[ VB ]
Public Event ActiveStepChanged As EventHandler

[ C# ]
public event EventHandler ActiveStepChanged;

[ C++ ]
public: __event EventHandler* ActiveStepChanged;

In [ JScript ], you can handle the events defined by a class, but you cannot define your own.

Remarks

The ActiveStepChanged event is raised whenever the current step that is displayed in the Wizard control changes.

This allows you to provide an event-handling method that performs a custom routine, such as to provide notification about the currrent wizard step, whenever this event occurs.

Example

The following code example demonstrates how to use the ActiveStepChanged event to update the HeaderText property of a Wizard control. Each time the ActiveStep property changes, the handler changes the HeaderText to match it.

<script runat = "server">
   void OnActiveStepChanged ( object sender, EventArgs e ) {
      // each time the ActiveStep property changes, change the HeaderText
      myWizard.HeaderText = "You are currently on " + myWizard.ActiveStep.Title;
   }
</script>
  C# VB

See Also

Wizard Members Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph