Saturday, October 07, 2006

ASP.NET TabbedWizard Control (WizardBasePage.cs)

using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

namespace MSJ.BaseControl
{
public abstract class WizardBasePage : System.Web.UI.Page
{
public abstract Wizard Wizard { get; set;}

protected void Page_Init(object sender, EventArgs e)
{
GetTabbedWizardBase().InitPartnerControls(this);
}


protected abstract TabbedWizardBase GetTabbedWizardBase();

/// <summary>
/// Validates the wizard step. Returns true of validation is ok;
/// otherwise return false and set e.Cancel = true;
/// </summary>
/// <param name="e">The <see cref="System.Web.UI.WebControls.WizardNavigationEventArgs"/>
/// instance containing the event data.</param>
/// <param name="eventSourceIsSidebarButton">if set to <c>true</c>
/// [event source is sidebar button].</param>
/// <returns></returns>
public abstract bool ValidateThis(WizardNavigationEventArgs e
, bool eventSourceIsSidebarButton);

public abstract void FinishButtonClickFinalize(object sender
, WizardNavigationEventArgs e);
}
}

No comments:

Post a Comment

What a line of code

I didn't know this line of code (in any language) will make sense but apparently it does: auto l = [](){}; Look at all those bracke...