一个简单的例子。 aspx:<asp:wizard id="Wizard1" runat="server"> <wizardsteps> <asp:wizardstep id="step1" runat="server" onactivate="step1_Activate" title="Step 1"> Step 1 </asp:wizardstep> <asp:wizardstep id="step2" runat="server" onactivate="step2_Activate" title="Step 2"> Step 2 </asp:wizardstep> <asp:wizardstep id="step3" runat="server" onactivate="step3_Activate" title="Step3"> Step 3 </asp:wizardstep> </wizardsteps></asp:wizard> CODE-BEHIND:protected void Page_Load(object sender, EventArgs e){ if (!this.IsPostBack) { this.step1_Activate(step1, EventArgs.Empty); }}protected void step1_Activate(object sender, EventArgs e){ Button next = Wizard1.FindControl("StartNavigationTemplateContainerID").FindControl("StartNextButton") as Button;}protected void step2_Activate(object sender, EventArgs e){ Button previous = Wizard1.FindControl("StepNavigationTemplateContainerID").FindControl("StepPreviousButton") as Button; Button next = Wizard1.FindControl("StepNavigationTemplateContainerID").FindControl("StepNextButton") as Button;}protected void step3_Activate(object sender, EventArgs e){ Button previous = Wizard1.FindControl("FinishNavigationTemplateContainerID").FindControl("FinishPreviousButton") as Button; Button finish = Wizard1.FindControl("FinishNavigationTemplateContainerID").FindControl("FinishButton") as Button;} 转载于:https://www.cnblogs.com/straw808/archive/2007/10/10/919831.html