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.
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.
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>
<script runat="server">
Sub OnActiveStepChanged ( ByVal sender As Object, ByVal e As System.EventArgs )
' each time the ActiveStep property changes, change the HeaderText
myWizard.HeaderText = "You are currently on " + myWizard.ActiveStep.Title
End Sub
</script> |
|
C# |
VB |
Wizard Members