TrabalhosGratuitos.com - Trabalhos, Monografias, Artigos, Exames, Resumos de livros, Dissertações
Pesquisar

TABELA CLIENTES

Casos: TABELA CLIENTES. Pesquise 860.000+ trabalhos acadêmicos

Por:   •  14/5/2014  •  294 Palavras (2 Páginas)  •  210 Visualizações

Página 1 de 2

<%@ Page Language="C#" Debug="true" %>

<%@ import Namespace="System.Data" %>

<%@ import Namespace="System.Data.SqlClient" %>

<script runat="server" language="c#">

protected SqlConnection conexao;

protected SqlCommand comando;

protected string strsql,strconex;

protected void btCadastrar_click(Object Sender ,EventArgs E )

{

strconex= "workstation id=bibliotecarakell.mssql.somee.com;packet size=4096;user id=rakell_SQLLogin_1;pwd=v6ppx24ro2;data source=bibliotecarakell.mssql.somee.com;persist security info=False;initial catalog=bibliotecarakell";

conexao = new SqlConnection (strconex);

conexao.Open(); ('xxx','xxx','xxx','xxx','xxx')";

strsql="insert into clientes

(nome,bairro,cidade,usuario,senha)

values

comando= new SqlCommand(strsql,conexao);

comando.ExecuteNonQuery();

conexao.Close();

}

</script>

<html>

<body bgcolor="pink">

<form runat="server" >

<h1> Cadastro de Clientes <h1>

<br>

<asp:Label id="lblnome" runat="server" text="Nome : "/>

<asp:Textbox id="txtnome" runat="server" text=""/>

<br>

<asp:Label id="lblbairro" runat="server" text="Bairro: "/>

<asp:Textbox id="txtbairro" runat="server" text=""/>

<br>

<asp:Label id="lblcidade" runat="server" text="Cidade : "/>

<asp:Textbox id="txtcidade" runat="server" text=""/>

<br>

<asp:Label id="lblusuario" runat="server" text="Usuario : "/>

<asp:Textbox

...

Baixar como (para membros premium)  txt (1.9 Kb)  
Continuar por mais 1 página »
Disponível apenas no TrabalhosGratuitos.com