projeler/validator-no Default.aspx,NONE,1.1 Default.aspx.cs,NONE,1.1 Web.Config,NONE,1.1 hazýrlayanl
Brought to you by:
ethem
From: Ethem E. <et...@us...> - 2006-06-02 11:58:45
|
Update of /cvsroot/dnsmail/projeler/validator-no In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv27997/projeler/validator-no Added Files: Default.aspx Default.aspx.cs Web.Config hazýrlayanlar.txt Log Message: validator --- 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="DatabaseConnectionString1" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\Database.mdf;Integrated Security=True;User Instance=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: Default.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; public partial class _Default : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { lbSonuc.Visible = false; } protected void Button1_Click(object sender, EventArgs e) { string ogradi = tbograd.Text; string ogrsoyad = tbogrsoyad.Text; string bolum = tbbolum.Text; string fakulte = tbfakulte.Text; string ogrid = tbogrid.Text; SqlDataSource ds = new SqlDataSource(); ds.ConnectionString = @"Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\Database.mdf;Integrated Security=True;User Instance=True"; ds.ProviderName = "System.Data.SqlClient"; ds.InsertCommand = "INSERT INTO ogrenciler VALUES('" + ogrid + "','" + ogradi + "','" + ogrsoyad + "','" + bolum + "','" + fakulte + "')"; try { ds.Insert(); lbSonuc.Visible = false; lbSonuc.Text = " "; tbograd.Text = " "; tbogrsoyad.Text = " "; tbbolum.Text = " "; tbfakulte.Text = " "; tbogrid.Text = " "; } catch (Exception hata) { lbSonuc.Visible = true; lbSonuc.Text = "Kayýt sýrasýnda hata oluþtu. Lütfen tekrar deneyiniz ! \n Hata : " + hata.Message; } } } --- NEW FILE: hazýrlayanlar.txt --- (This appears to be a binary file; contents omitted.) |