Click here to Skip to main content
15,885,216 members
Articles / Web Development / ASP.NET

Creating Code for Coding

Rate me:
Please Sign up or sign in to vote.
4.56/5 (9 votes)
18 Sep 2011GPL33 min read 32.7K   559   33  
Creating code to create code
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="login.aspx.cs" Inherits="login" %>

<!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>
    <link href="css/StyleSheet.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <h1>
            &nbsp;</h1>
        <div style="margin-left: auto; margin-right: auto; text-align: left; width: 870px;
            overflow: hidden; padding: 10px;">
            <asp:Panel runat="server" ID="LoginPanel" DefaultButton="LoginButton" CssClass="login"
                Height="142px">
                <h1>
                    <asp:Label ID="Label1" runat="server" Text="Login"></asp:Label></h1>
                <div class="headerdivWhite" style="width: 870px">
                    <div class="leftdiv70">
                        <asp:Literal ID="UserNameLabel" runat="server" Text="Username" /></div>
                    <div class="leftdiv100">
                        <asp:TextBox ID="UserName" runat="server" Width="75px" ValidationGroup="Login"></asp:TextBox></div>
                    <div class="leftdiv150">
                        <asp:RequiredFieldValidator ID="UserNameRequired" ValidationGroup="Login" runat="server"
                            ControlToValidate="UserName" ErrorMessage="Campo obrigatório." ToolTip="Campo obrigatório.">*</asp:RequiredFieldValidator><asp:Literal
                                ID="FailureText" runat="server"></asp:Literal></div>
                </div>
                <div class="headerdivWhite" style="width: 870px">
                    <div class="leftdiv70">
                        <asp:Literal ID="PasswordLabel" runat="server" Text="Password" /></div>
                    <div class="leftdiv100">
                        <asp:TextBox ID="Password" runat="server" ValidationGroup="Login" TextMode="Password"
                            Width="75px"></asp:TextBox></div>
                    <div class="leftdiv150">
                        <asp:RequiredFieldValidator ID="PasswordRequired" runat="server" ControlToValidate="Password"
                            ErrorMessage="Campo obrigatório." ToolTip="Campo obrigatório." ValidationGroup="Login">*</asp:RequiredFieldValidator>
                    </div>
                </div>
                <div class="headerdivWhite" style="width: 870px">
                    <div class="leftdiv70">
                    </div>
                    <div class="leftdiv100">
                    </div>
                    <div class="leftdiv150">
                        <asp:Button ID="LoginButton" runat="server" BackColor="White" CommandName="Login"
                            ValidationGroup="Login" Text="Ok" OnClick="LoginButton_Click" Height="19px" Width="24px" /></div>
                </div>
            </asp:Panel>
        </div>
    </div>
    </form>
</body>
</html>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The GNU General Public License (GPLv3)


Written By
CEO
Brazil Brazil
"A well written code is self explanatory" - Anonymous Programmer
"The number of meetings is directly proportional to the bad management" - Another Anonymous Programmer
Founder @TIHUNTER.COM.BR
Linkedin Profile

Comments and Discussions