[Dnsmail-cvs] projeler/telreh-no Default.aspx,NONE,1.1 Default.aspx.cs,NONE,1.1 Web.Config,NONE,1.1
Brought to you by:
ethem
From: mavi_yildiz <evr...@us...> - 2006-05-29 15:08:08
|
Update of /cvsroot/dnsmail/projeler/telreh-no In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv6707/telreh-no Added Files: Default.aspx Default.aspx.cs Web.Config ekle.aspx ekle.aspx.cs eklendi.aspx eklendi.aspx.cs Log Message: Projeyi ilk defa gönderiyorum --- NEW FILE: Default.aspx --- (This appears to be a binary file; contents omitted.) --- NEW FILE: eklendi.aspx --- <%@ Page Language="C#" AutoEventWireup="true" CodeFile="eklendi.aspx.cs" Inherits="eklendi" %> <!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>Untitled Page</title> </head> <body bgcolor="#6699ff"> <form id="form1" runat="server"> <div style="text-align: center"> <br /> <br /> <br /> <br /> <strong><span style="font-size: 14pt">Kaydýnýz baþarýyla eklenmiþtir!!!!!<br /> <br /> <br /> <asp:HyperLink ID="HyperLink1" runat="server" Font-Underline="True" NavigateUrl="~/Default.aspx">anasayfa</asp:HyperLink></span></strong></div> </form> </body> </html> --- NEW FILE: ekle.aspx.cs --- using System; using System.Data; using System.Data.SqlClient; using System.Configuration; using System.Collections; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; public partial class ekle : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { } protected void Button1_Click(object sender, EventArgs e) { SqlConnection ac; string ekle; SqlCommand eklekomutu; ac = new SqlConnection(@"Server=localhost;Integrated Security=SSPI;database=rehber"); ekle = "Insert rehber ( adý,soyadý,telefon,sehir) Values (@adý,@soyadý,@telefon,@sehir)"; eklekomutu = new SqlCommand(ekle, ac); eklekomutu.Parameters.Add("@adý", TextBox2.Text); eklekomutu.Parameters.Add("@soyadý", TextBox3.Text); eklekomutu.Parameters.Add("@telefon", TextBox1.Text); eklekomutu.Parameters.Add("@sehir", TextBox4.Text); ac.Open(); eklekomutu.ExecuteNonQuery(); ac.Close(); Response.Redirect("eklendi.aspx"); } } --- NEW FILE: Default.aspx.cs --- using System; using System.Data; using System.Configuration; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; public partial class _Default : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { } } --- NEW FILE: Web.Config --- <?xml version="1.0"?> <!-- Note: As an alternative to hand editing this file you can use the web admin tool to configure settings for your application. Use the Website->Asp.Net Configuration option in Visual Studio. A full list of settings and comments can be found in machine.config.comments usually located in \Windows\Microsoft.Net\Framework\v2.x\Config --> <configuration> <appSettings/> <connectionStrings> <add name="rehberConnectionString" connectionString="Data Source=TARAKCI;Initial Catalog=rehber;Integrated Security=True" providerName="System.Data.SqlClient"/> </connectionStrings> <system.web> <!-- Set compilation debug="true" to insert debugging symbols into the compiled page. Because this affects performance, set this value to true only during development. --> <compilation debug="true"/> <!-- The <authentication> section enables configuration of the security authentication mode used by ASP.NET to identify an incoming user. --> <authentication mode="Windows"/> <!-- The <customErrors> section enables configuration of what to do if/when an unhandled error occurs during the execution of a request. Specifically, it enables developers to configure html error pages to be displayed in place of a error stack trace. <customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm"> <error statusCode="403" redirect="NoAccess.htm" /> <error statusCode="404" redirect="FileNotFound.htm" /> </customErrors> --> </system.web> </configuration> --- NEW FILE: eklendi.aspx.cs --- using System; using System.Data; using System.Configuration; using System.Collections; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; public partial class eklendi : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { } } --- NEW FILE: ekle.aspx --- <%@ Page Language="C#" AutoEventWireup="true" CodeFile="ekle.aspx.cs" Inherits="ekle" %> <!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>Untitled Page</title> </head> <body bgcolor="#6699ff"> <form id="form1" runat="server"> <div style="text-align: center"> <br /> <span style="font-size: 14pt; font-family: Monotype Corsiva"><strong>EKLEME SAYFASI</strong></span><br /> <br /> <br /> <asp:Label ID="Label1" runat="server" Text="ADI" Width="102px"></asp:Label> <asp:TextBox ID="TextBox2" runat="server"></asp:TextBox><br /> <br /> <asp:Label ID="Label2" runat="server" Text="SOYADI" Width="102px"></asp:Label> <asp:TextBox ID="TextBox3" runat="server"></asp:TextBox><br /> <br /> <asp:Label ID="Label3" runat="server" Text="TELEFON NO" Width="100px"></asp:Label> <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox> <br /> <br /> <asp:Label ID="Label4" runat="server" Text="SEHÝR" Width="102px"></asp:Label> <asp:TextBox ID="TextBox4" runat="server"></asp:TextBox><br /> <br /> <br /> <asp:Button ID="Button1" runat="server" Text="EKLE" OnClick="Button1_Click" /></div> </form> </body> </html> |