|
From: <sv...@de...> - 2005-06-24 16:13:00
|
Author: marcelo Date: 2005-06-24 12:13:05 -0400 (Fri, 24 Jun 2005) New Revision: 1413 Added: humano2/trunk/web/builder/site/dataTable.aspx humano2/trunk/web/builder/site/dataTable.aspx.cs Log: * Temporary files to prove/disprove bug in mono. Added: humano2/trunk/web/builder/site/dataTable.aspx =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- humano2/trunk/web/builder/site/dataTable.aspx 2005-06-24 03:48:05 UTC= (rev 1412) +++ humano2/trunk/web/builder/site/dataTable.aspx 2005-06-24 16:13:05 UTC= (rev 1413) @@ -0,0 +1,21 @@ +<%@ Page language=3D"c#" Codebehind=3D"dataTable.aspx.cs" AutoEventWireu= p=3D"false" Inherits=3D"Builder.site.dataTable" %> +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >=20 + +<html> + <head> + <title>dataTable</title> + <meta name=3D"GENERATOR" Content=3D"Microsoft Visual Studio .NET 7.1= "> + <meta name=3D"CODE_LANGUAGE" Content=3D"C#"> + <meta name=3Dvs_defaultClientScript content=3D"JavaScript"> + <meta name=3Dvs_targetSchema content=3D"http://schemas.microsoft.com= /intellisense/ie5"> + </head> + + <body MS_POSITIONING=3D"GridLayout"> +=09 + <form id=3D"Form1" method=3D"post" runat=3D"server"> + <asp:TextBox ID=3D"text1" Runat=3D"server" Width=3D"200px" Height=3D"2= 00" Rows=3D"10" Columns=3D"50" TextMode=3D"MultiLine"></asp:TextBox> + =09 + </form> +=09 + </body> +</html> Added: humano2/trunk/web/builder/site/dataTable.aspx.cs =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- humano2/trunk/web/builder/site/dataTable.aspx.cs 2005-06-24 03:48:05 = UTC (rev 1412) +++ humano2/trunk/web/builder/site/dataTable.aspx.cs 2005-06-24 16:13:05 = UTC (rev 1413) @@ -0,0 +1,76 @@ +using System; +using System.Collections; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Web; +using System.Web.SessionState; +using System.Web.UI; +using System.Web.UI.WebControls; +using System.Web.UI.HtmlControls; + +namespace Builder.site +{ + /// <summary> + /// Summary description for dataTable. + /// </summary> + public class dataTable : System.Web.UI.Page + { + protected System.Web.UI.WebControls.TextBox text1; + private void Page_Load(object sender, System.EventArgs e) + { + DataTable dt =3D new DataTable(); + DataRow dr; + dt.Columns.Add("column1",System.Type.GetType("System.Int32")); + dt.Columns.Add("column2",System.Type.GetType("System.Int32")); + dt.Columns.Add("result",System.Type.GetType("System.Int32")); + =09 + dr =3D dt.NewRow(); + dr["column1"] =3D 80; + dr["column2"] =3D 10; + dt.Rows.Add(dr); + + dr =3D dt.NewRow(); + dr["column1"] =3D 6; + dt.Rows.Add(dr); + =09 + dr =3D dt.NewRow(); + dr["column2"] =3D 4; + dt.Rows.Add(dr); + + dt.Columns["result"].Expression =3D "column1*column2/100"; + =09 + foreach(DataRow dr2 in dt.Rows) + { + text1.Text +=3D "Col1 \"" + dr2["column1"].ToString() + "\"\n"; + text1.Text +=3D "Col2 \"" + dr2["column2"].ToString() + "\"\n"; + text1.Text +=3D "Result \"" + dr2["result"].ToString() + "\"\n"; + Console.WriteLine("Col1 \"" + dr2["column1"].ToString() + "\""); + Console.WriteLine("Col2 \"" + dr2["column2"].ToString() + "\""); + Console.WriteLine("result \"" + dr2["result"].ToString() + "\""); + } + + =09 + } + + #region Web Form Designer generated code + override protected void OnInit(EventArgs e) + { + // + // CODEGEN: This call is required by the ASP.NET Web Form Designer. + // + InitializeComponent(); + base.OnInit(e); + } + =09 + /// <summary> + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// </summary> + private void InitializeComponent() + { =20 + this.Load +=3D new System.EventHandler(this.Page_Load); + } + #endregion + } +} |