Saturday, 7 June 2008

ASP.NET Wizard - Finish button CommandName

If you want to override the FinishNavigationTemplate template, the CommandName for the finish button is MoveComplete. I found several websites claiming it is MoveFinish but this won't trigger the event (definitely under the .NET 2.0 framework).

Example:

<asp:Wizard runat="server">
<FinishNavigationTemplate>
<asp:Button runat="server" CommandName="MoveComplete" Text="Finish" />
</FinishNavigationTemplate>
</asp:Wizard>

7 comments:

Anonymous said...

Thanks man!

Tel said...

A Life saver! Would never of figured that out myself in a million years.

bsebe said...

Thank you so much!

Unknown said...

Thank You!!

Anonymous said...

Thanks very much, very helpful!

Anonymous said...

Thanks!

Anonymous said...

Thanks :)