[Dnsmail-cvs] projeler/ziyaretci-no Default.aspx,NONE,1.1 Default.aspx.cs,NONE,1.1 Web.Config,NONE,1
Brought to you by:
ethem
Update of /cvsroot/dnsmail/projeler/ziyaretci-no In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv11988/ziyaretci-no Added Files: Default.aspx Default.aspx.cs Web.Config defter_data.ldb defter_data.mdb kayit.aspx kayit.aspx.cs Log Message: Ziyaretci Defterinin ilk dosyalarý -Kayýt gösterme -Kayýt ekleme --- NEW FILE: kayit.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; using System.Data.OleDb; public partial class _Default : System.Web.UI.Page { protected void Button1_Click(object sender, EventArgs e) { OleDbConnection baglanti; OleDbCommand sorgu; baglanti = new OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0; Data Source=/Yedek/Belgelerim/Visual Studio 2005/WebSites/WebSite5/defter_data.mdb"); baglanti.Open(); string adi, nere, meslek, mesaj; adi = TextBox1.Text; nere = TextBox2.Text; meslek = TextBox3.Text; mesaj = TextBox4.Text; sorgu = new OleDbCommand("INSERT INTO defter (ad, nereden, meslek, mesaj) values ('" + adi + "' ,'" + nere + "', '" + meslek + "', '" + mesaj + "')", baglanti); OleDbDataReader veri; veri = sorgu.ExecuteReader(); // datagrid.DataSource = veri; // datagrid.DataBind(); baglanti.Close(); Panel1.Visible = false; Label1.Visible = true; HyperLink1.Visible = true; } } --- NEW FILE: defter_data.ldb --- (This appears to be a binary file; contents omitted.) --- NEW FILE: Default.aspx --- (This appears to be a binary file; contents omitted.) --- NEW FILE: kayit.aspx --- (This appears to be a binary file; contents omitted.) --- 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; using System.Data.OleDb; public partial class _Default : System.Web.UI.Page { } --- NEW FILE: defter_data.mdb --- (This appears to be a binary file; contents omitted.) --- 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/> <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> |