domingo, março 11, 2012

Código Usando no Formulário Cadastro de Clientes

        Olá amigos, hoje estarei postando o código do Design do nosso formulário em ASP.NET, lembrando ele foi usado no post . Conectando Aplicação em C#, ASP, Com o Banco de Dados MySql.

        Foi o formulário que usamos para fazer a conexão com o banco de dados, você que acompanhou o post e por algum motivo não conseguiu desenvolver o formulário, esta ai o código do design.


Código Usado no Formulário de Cadastro de Clientes

================================================================
================================================================

Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="SistemaDeCadastro.WebForm1" %>

<!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>
    <style type="text/css">
        .style1
        {
            width: 100%;
        }
        .style2
        {
            width: 44px;
            font-style: italic;
        }
        .style3
        {
            text-align: center;
        }
        .style4
        {
            width: 100px;
        }
        .style5
        {
            width: 44px;
            font-style: italic;
            height: 27px;
        }
        .style6
        {
            width: 100px;
            height: 27px;
            font-style: italic;
        }
        .style7
        {
            height: 27px;
        }
        .style8
        {
            text-decoration: underline;
        }
        .style9
        {
            width: 100px;
            font-style: italic;
        }
        .style10
        {
            text-decoration: underline;
            color: #FF3300;
        }
    </style>
</head>
<body background="fundo1.jpg">
    <form id="form1" runat="server">
    <div>
   
        <div class="style3">
            <h1 class="style8">
                <em>Cadastro de Clientes</em></h1>
        </div>
        <table class="style1">
            <tr>
                <td class="style2">
                    &nbsp;</td>
                <td class="style9">
                    <h3>
                        Nome:</h3>
                </td>
                <td>
                    <asp:TextBox ID="nome" runat="server" Width="252px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="style2">
                    &nbsp;</td>
                <td class="style9">
                    <h3>
                        Endereço:</h3>
                </td>
                <td>
                    <asp:TextBox ID="endereco" runat="server" Width="252px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="style2">
                    &nbsp;</td>
                <td class="style9">
                    <h3>
                        Cidade:</h3>
                </td>
                <td>
                    <asp:TextBox ID="cidade" runat="server" Width="145px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="style5">
                </td>
                <td class="style6">
                    <h3>
                        Estado:
                    </h3>
                </td>
                <td class="style7">
                    <asp:DropDownList ID="estado" runat="server" Height="16px" Width="59px">
                        <asp:ListItem>GO</asp:ListItem>
                        <asp:ListItem>SP</asp:ListItem>
                        <asp:ListItem>RJ</asp:ListItem>
                        <asp:ListItem>SC</asp:ListItem>
                        <asp:ListItem>PR</asp:ListItem>
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td class="style2">
                    &nbsp;</td>
                <td class="style9">
                    <h3>
                        RG:
                    </h3>
                </td>
                <td>
                    <asp:TextBox ID="rg" runat="server" Width="145px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="style2">
                    &nbsp;</td>
                <td class="style9">
                    <h3>
                        CPF:
                    </h3>
                </td>
                <td>
                    <asp:TextBox ID="cpf" runat="server" Width="145px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="style2">
                    <h3>
                    </h3>
                </td>
                <td class="style4">
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="style2">
                    <h3>
                    </h3>
                </td>
                <td class="style4">
                    &nbsp;</td>
                <td>
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <asp:Button ID="Salvar" runat="server" onclick="Salvar_Click" Text="Salvar" />
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <asp:Button ID="limpar" runat="server" Text="Limpar" />
                </td>
            </tr>
            <tr>
                <td class="style2">
                    <h3>
                    </h3>
                </td>
                <td class="style4">
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="style2">
                    <h3>
                    </h3>
                </td>
                <td class="style4">
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="style2">
                    <h3>
                    </h3>
                </td>
                <td class="style4">
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="style2">
                    <h3>
                    </h3>
                </td>
                <td class="style4">
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="style2">
                    <h3>
                    </h3>
                </td>
                <td class="style4">
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="style2">
                    <h3>
                    </h3>
                </td>
                <td class="style4">
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="style2">
                    <h3>
                    </h3>
                </td>
                <td class="style4">
                    &nbsp;</td>
                <td class="style3">
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <span class="style10"><em>&nbsp;www.programacaoelogica.blogspot.com</em></span>&nbsp;</td>
            </tr>
        </table>
   
    </div>
    </form>
</body>
</html>

================================================================
================================================================


Nenhum comentário:

Postar um comentário