[Dnsmail-cvs] projeler/veritabani-no Default.aspx,NONE,1.1 Default.aspx.cs,NONE,1.1 Default2.aspx,NO
Brought to you by:
ethem
From: Ethem E. <et...@us...> - 2006-05-03 12:41:55
|
Update of /cvsroot/dnsmail/projeler/veritabani-no In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16134/veritabani-no Added Files: Default.aspx Default.aspx.cs Default2.aspx Default2.aspx.cs MyDatabase#1.sdf Web.Config Log Message: Ilk defa dosyalarimizi ekliyorsunuz. --- NEW FILE: Default2.aspx --- <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default2.aspx.cs" Inherits="Default2" %> <%@ Register TagPrefix="mobile" Namespace="System.Web.UI.MobileControls" Assembly="System.Web.Mobile" %> <html xmlns="http://www.w3.org/1999/xhtml" > <body> <mobile:Form id="Form1" runat="server"> </mobile:Form> </body> </html> --- NEW FILE: Default.aspx --- <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> <%@ Register TagPrefix="mobile" Namespace="System.Web.UI.MobileControls" Assembly="System.Web.Mobile" %> <html xmlns="http://www.w3.org/1999/xhtml" > <body> <mobile:Form id="Form1" runat="server">kullanýcý adý<br /><mobile:TextBox ID="TextBox1" Runat="server" OnTextChanged="TextBox1_TextChanged"> </mobile:TextBox><br />þifre <mobile:TextBox ID="TextBox2" Runat="server"> </mobile:TextBox> <mobile:Link ID="Link1" Runat="server" NavigateUrl="#Form2">giriþ</mobile:Link></mobile:Form><br> </br> <mobile:Form ID="Form2" Runat="server" OnActivate="Form2_Activate" Paginate="True"> <mobile:ObjectList ID="ObjectList1" Runat="server" BackCommandText="geri" CommandStyle-StyleReference="subcommand" DefaultCommand="Bak" DetailsCommandText="ayrýntýlar" ItemsPerPage="5" LabelStyle-StyleReference="title" MoreText="dahasý" OnItemCommand="ObjectList1_ItemCommand4"> <Command Name="Al" Text="Satýn Al" /> <Command Name="Sil" Text="Sil" /> <Command Name="Bak" Text="Bak" /> </mobile:ObjectList> </mobile:Form> </body> </html> --- NEW FILE: MyDatabase#1.sdf --- (This appears to be a binary file; contents omitted.) --- NEW FILE: Default.aspx.cs --- using System; using System.Collections; using System.ComponentModel; using System.Data; using System.Data.Sql; using System.Data.SqlClient; using System.Drawing; using System.Web; using System.Web.Mobile; using System.Web.SessionState; using System.Web.UI; using System.Web.UI.MobileControls; using System.Web.UI.WebControls; using System.Web.UI.HtmlControls; public partial class _Default : System.Web.UI.MobileControls.MobilePage { protected void Page_Load(object sender, EventArgs e) { } protected void TextBox1_TextChanged(object sender, EventArgs e) { } protected void Form2_Activate(object sender, EventArgs e) { SqlConnection baglan = new SqlConnection("server=localhost; database=tamer; uid=tamer; pwd=sifre"); SqlCommand cmd = new SqlCommand("select * from tamer ", baglan); //SqlCommand cmd = new SqlCommand("select * from tamer where adý='"+TextBox1.Text+"'", baglan); SqlDataAdapter da = new SqlDataAdapter(cmd); DataTable dt = new DataTable(); da.Fill(dt); { ObjectList1.DataSource = dt; ObjectList1.DataBind(); } } protected void ObjectList1_ItemCommand(object sender, ObjectListCommandEventArgs e) { } protected void ObjectList1_ItemCommand1(object sender, ObjectListCommandEventArgs e) { } protected void ObjectList1_ItemCommand2(object sender, ObjectListCommandEventArgs e) { if (e.CommandName == "Al") { Response.Redirect("alindi.aspx"); } else if (e.CommandName == "sil") { } else { } } protected void ObjectList1_ItemCommand3(object sender, ObjectListCommandEventArgs e) { if (e.CommandName == "Al") { Response.Redirect("alindi.aspx"); } else if (e.CommandName == "sil") { } else { } } protected void ObjectList1_ItemCommand4(object sender, ObjectListCommandEventArgs e) { if (e.CommandName == "Al") { Response.Redirect("default2.aspx"); } else if (e.CommandName == "Sil") { } else { } } } --- 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. --> <httpHandlers> <add path="Reserved.ReportViewerWebControl.axd" verb="*" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" validate="false"/> </httpHandlers> <compilation debug="true"> <buildProviders> <add extension=".rdlc" type="Microsoft.Reporting.RdlBuildProvider, Microsoft.ReportViewer.Common, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/> </buildProviders> </compilation> <!-- 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: Default2.aspx.cs --- using System; using System.Collections; using System.ComponentModel; using System.Data; using System.Drawing; using System.Web; using System.Web.Mobile; using System.Web.SessionState; using System.Web.UI; using System.Web.UI.MobileControls; using System.Web.UI.WebControls; using System.Web.UI.HtmlControls; public partial class Default2 : System.Web.UI.MobileControls.MobilePage { protected void Page_Load(object sender, EventArgs e) { } } |