zoukankan      html  css  js  c++  java
  • 使用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;
    }
    }
    }
    结果如下:
  • 相关阅读:
    优美的回文串--全国模拟(二)
    创造新世界--全国模拟(二)
    字符串分类--全国模拟(二)
    平衡数--全国模拟(二)
    最小矩形--全国模拟(二)
    组装三角形--全国模拟(二)
    深入.NET内测题
    面向对象七大设计原则
    创建数据库普通临时表和创建数据库全局变量表和俩者的区别
    使用变量 数据类型转换 逻辑控制语句(begin ...end; case...end; if...else; while)
  • 原文地址:https://www.cnblogs.com/chester/p/2044793.html
Copyright © 2011-2022 走看看