一个简单的登录页面

 signin.aspx:

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="SignIn.aspx.cs" Inherits="SignIn" %>

<!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>Sign In</title>
    <style type="text/css">
        body
        {
            margin: 0 0 0 0;
            font-size:14px;
           
        }

        fieldset
        {
            width: 340px;
            margin-top:inherit;  margin-left: auto;  margin-right: auto;
            padding-top: 100px;
            padding-bottom: 10px;
            border: solid 1 #6699ff;
        }
       
        legend
        {
            font-weight:bold;
            font-size:18px;
        }

        table
        {
            margin-left: auto;
            margin-right: auto;
        }

        td
        {
            padding-top: 8px;
            padding-bottom: 8px;
        }

        .lb
        {
            width: 80px;
        }

        .username
        {
            text-transform:capitalize;
            width: 150px;
        }
       
        .password
        {
            width: 150px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
        <fieldset>
            <legend>Simple Factory Pattern Demo</legend><br />
            <table>
                <tr>
                    <td class="lb">
                        UserName:
                    </td>
                    <td>
                        <input name="txtUserName" type="text" id="txtUserName" class="username" />
                    </td>
                </tr>
                <tr>
                    <td class="lb">
                        Password:
                    </td>
                    <td>
                        <input name="txtPassword" type="text" id="txtPassword" class="password" />
                    </td>
                </tr>
                <%--   <tr>
                    <td class="lb">
                        Domain:
                    </td>
                    <td>
                        <input name="txtDomain" type="text" id="txtDomain" class="box" />
                    </td>
                </tr>--%>
                <tr>
                    <td colspan="2">
                        <input type="submit" name="btnSignIn" value="Sign In" id="btnSignIn" class="lb" onserverclick="btnSignIn_ServerClick"
                            runat="server" />
                    </td>
                </tr>
            </table>
        </fieldset>
    </form>
</body>
</html>

posted on 2008-08-06 08:52  Good life  阅读(385)  评论(0编辑  收藏  举报