[Dnsmail-cvs] projeler/sozluk-no Default.aspx,NONE,1.1 Default.aspx.cs,NONE,1.1 Sozluk.mdb,NONE,1.1
Brought to you by:
ethem
From: kapdan <ka...@us...> - 2006-05-26 10:37:47
|
Update of /cvsroot/dnsmail/projeler/sozluk-no In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv19239 Added Files: Default.aspx Default.aspx.cs Sozluk.mdb Web.Config Log Message: Ýlk defa dosyalarý ekliyorum. --- 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="SozlukConnectionString" connectionString="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Inetpub\wwwroot\WebSite41\Sozluk.mdb" providerName="System.Data.OleDb" /> <add name="SozlukConnectionString2" connectionString="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Inetpub\wwwroot\WebSite41\Sozluk.mdb" providerName="System.Data.OleDb" /> <add name="SozlukConnectionString3" connectionString="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Inetpub\wwwroot\WebSite41\Sozluk.mdb" providerName="System.Data.OleDb" /> <add name="SozlukConnectionString4" connectionString="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Inetpub\wwwroot\WebSite41\Sozluk.mdb" providerName="System.Data.OleDb" /> </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: Sozluk.mdb --- (This appears to be a binary file; contents omitted.) --- NEW FILE: Default.aspx.cs --- using System; using System.Data; using System.Data.OleDb; 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.Collections; public partial class _Default : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { } protected void Button1_Click(object sender, EventArgs e) { OleDbConnection baglanti; string strselect; OleDbCommand cmdselect; baglanti = new OleDbConnection(@"Provider=Microsoft.Jet.Oledb.4.0;data source=" + Server.MapPath("sozluk.mdb")); strselect = "select * from sozluk where kelime = '" + TextBox1.Text + "'"; cmdselect = new OleDbCommand(strselect, baglanti); baglanti.Open(); OleDbDataReader rd= cmdselect.ExecuteReader(); ArrayList liste = new ArrayList(); while (rd.Read()) { liste.Add(rd["deger"]); } foreach (string kelime in liste) { Label1.Text += kelime + "<br>"; } baglanti.Close(); } } --- NEW FILE: Default.aspx --- (This appears to be a binary file; contents omitted.) |