<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Step2.aspx.cs" Inherits="MyCms.Install.Step2" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>绿叶博客安装 - 网站信息配置</title>
    <link href="install.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <div class="maindiv">
        <h1>网站信息配置</h1>
        <fieldset>
            <legend>填写网站信息</legend>
            <p>
                <label>网站标题：</label><asp:TextBox ID="tbTitle" runat="server"></asp:TextBox><asp:RequiredFieldValidator
                    ID="RequiredFieldValidator1" runat="server" ControlToValidate="tbTitle" ErrorMessage="网站标题不能为空！"></asp:RequiredFieldValidator>
            </p>
            <p>
                <label>网站域名：</label><asp:TextBox ID="tbSiteAddress" runat="server"></asp:TextBox><asp:RequiredFieldValidator
                    ID="RequiredFieldValidator5" runat="server" ControlToValidate="tbSiteAddress" ErrorMessage="网站域名不能为空！"></asp:RequiredFieldValidator>
            </p>
            <p>
                <label>管理员账号：</label><asp:TextBox ID="tbAdmin" runat="server"></asp:TextBox><asp:RequiredFieldValidator
                    ID="RequiredFieldValidator2" runat="server" ControlToValidate="tbAdmin" ErrorMessage="管理员账号不能为空！"></asp:RequiredFieldValidator>
            </p>
            <p>
                <label>管理员密码：</label><asp:TextBox ID="tbPassword" runat="server"></asp:TextBox><asp:RequiredFieldValidator
                    ID="RequiredFieldValidator3" runat="server" ControlToValidate="tbPassword" ErrorMessage="管理员密码不能为空！"></asp:RequiredFieldValidator>
            </p>
            <p>
                <label>站长邮箱：</label><asp:TextBox ID="tbEmail" runat="server"></asp:TextBox><asp:RequiredFieldValidator
                    ID="RequiredFieldValidator4" runat="server" ControlToValidate="tbEmail" ErrorMessage="邮箱地址不能为空！"></asp:RequiredFieldValidator><asp:RegularExpressionValidator
                    ID="RegularExpressionValidator1" runat="server" 
                    ErrorMessage="邮箱格式错误！" ControlToValidate="tbEmail" 
                    ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
            </p>
            <p>
                <asp:Button ID="btnSave" runat="server" Text="完成设置" OnClick="btnSave_Click"  />
            </p>
            <p>
        <asp:Literal ID="ltInfo" runat="server"></asp:Literal>
    </p>
        </fieldset>
    </div>
    </form>
</body>
</html>
