• 使用Wizard控件创建向导界面


    <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Wizard.aspx.cs" Inherits="MapQQ.test.Wizard" %>

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
    <title></title>
    </head>
    <body>
    <form id="form1" runat="server">
    <div style="font-size: large">

    <asp:Wizard ID="Wizard1" runat="server" ActiveStepIndex="2" BackColor="#F7F6F3"
    BorderColor
    ="#CCCCCC" BorderStyle="Solid" BorderWidth="1px"
    Font
    -Names="Verdana" Font-Size="0.8em" Height="168px"
    onfinishbuttonclick
    ="Wizard1_FinishButtonClick" style="font-size: large"
    Width
    ="371px">
    <HeaderStyle BackColor="#5D7B9D" BorderStyle="Solid" Font-Bold="True"
    Font
    -Size="0.9em" ForeColor="White" HorizontalAlign="Left" />
    <NavigationButtonStyle BackColor="#FFFBFF" BorderColor="#CCCCCC"
    BorderStyle
    ="Solid" BorderWidth="1px" Font-Names="Verdana" Font-Size="0.8em"
    ForeColor
    ="#284775" />
    <SideBarButtonStyle BorderWidth="0px" Font-Names="Verdana" ForeColor="White" />
    <SideBarStyle BackColor="#7C6F57" BorderWidth="0px" Font-Size="0.9em"
    VerticalAlign
    ="Top" />
    <StepStyle BorderWidth="0px" ForeColor="#5D7B9D" />
    <WizardSteps>
    <asp:WizardStep runat="server" title="住址">
    <asp:Label ID="Label1" runat="server" Text="省份:"></asp:Label>
    <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
    <br />
    <asp:Label ID="Label2" runat="server" Text="城市:"></asp:Label>
    <asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
    </asp:WizardStep>
    <asp:WizardStep runat="server" title="培训经历">
    </asp:WizardStep>
    <asp:WizardStep runat="server" Title="个人信息">
    </asp:WizardStep>
    </WizardSteps>
    </asp:Wizard>
    <asp:Label ID="Label3" runat="server"></asp:Label>
    <br />

    </div>
    </form>
    </body>
    </html>

    后台代码

    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Web;
    using System.Web.UI;
    using System.Web.UI.WebControls;

    namespace MapQQ.test
    {
    public partial class Wizard : System.Web.UI.Page
    {
    protected void Page_Load(object sender, EventArgs e)
    {

    }

    protected void Wizard1_FinishButtonClick(object sender, WizardNavigationEventArgs e)
    {
    this.Label3.Text = this.TextBox1.Text;
    }
    }
    }
    结果如下:
  • 相关阅读:
    Web应用Word生成
    记 Ubuntu14.04 Monodevelop 安装的两个问题
    CSDN上下载的一些关于Android程序调用Webservice执行不成功的问题
    Binary Search Tree Iterator
    算法之贪心算法
    《SAS编程与数据挖掘商业案例》学习笔记之十七
    数据库设计之半结构化存储
    Timus 1446. Sorting Hat 分类问题
    WebGL on iOS8 最终等到了这一天
    仿netty线程池简化版本
  • 原文地址:https://www.cnblogs.com/chester/p/2044793.html
Copyright © 2020-2023  润新知