diff --git a/Practice/ValidWeb/Forma1-clear.aspx.cs b/Practice/ValidWeb/Forma1-clear.aspx.cs index 10fc124..4e536d9 100644 --- a/Practice/ValidWeb/Forma1-clear.aspx.cs +++ b/Practice/ValidWeb/Forma1-clear.aspx.cs @@ -13,6 +13,7 @@ namespace ValidWeb protected void Button2_Click(object sender, EventArgs e) { Session.Clear(); + Label8.Text = "Dalyvių kiekis: 0"; for (int i = Table1.Rows.Count-1; i > 0; i--) { Table1.Rows.RemoveAt(i); diff --git a/Practice/ValidWeb/Forma1.aspx b/Practice/ValidWeb/Forma1.aspx index 4b3ad5d..1d056f8 100644 --- a/Practice/ValidWeb/Forma1.aspx +++ b/Practice/ValidWeb/Forma1.aspx @@ -44,6 +44,8 @@

+
+
diff --git a/Practice/ValidWeb/Forma1.aspx.cs b/Practice/ValidWeb/Forma1.aspx.cs index 4905b00..2752290 100644 --- a/Practice/ValidWeb/Forma1.aspx.cs +++ b/Practice/ValidWeb/Forma1.aspx.cs @@ -24,6 +24,7 @@ namespace ValidWeb TableRow header = new TableRow(); + header.Cells.Add(new TableCell { Text = "Nr" }); header.Cells.Add(new TableCell { Text = "Vardas" }); header.Cells.Add(new TableCell { Text = "Pavardė" }); header.Cells.Add(new TableCell { Text = "Mokykla" }); @@ -68,15 +69,15 @@ namespace ValidWeb { TableRow row = new TableRow(); + row.Cells.Add(new TableCell { Text = Table1.Rows.Count.ToString() }); row.Cells.Add(new TableCell { Text = name }); row.Cells.Add(new TableCell { Text = surname }); row.Cells.Add(new TableCell { Text = school }); row.Cells.Add(new TableCell { Text = age }); row.Cells.Add(new TableCell { Text = language }); + Label8.Text = String.Format("Dalyvių kiekis: {0}", Table1.Rows.Count); Table1.Rows.Add(row); } - - } } diff --git a/Practice/ValidWeb/Forma1.aspx.designer.cs b/Practice/ValidWeb/Forma1.aspx.designer.cs index 2861f5e..65e31f5 100644 --- a/Practice/ValidWeb/Forma1.aspx.designer.cs +++ b/Practice/ValidWeb/Forma1.aspx.designer.cs @@ -194,6 +194,15 @@ namespace ValidWeb /// protected global::System.Web.UI.WebControls.Button Button2; + /// + /// Label8 control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Label Label8; + /// /// Table1 control. /// diff --git a/Practice/ValidWeb/Properties/AssemblyInfo.cs b/Practice/ValidWeb/Properties/AssemblyInfo.cs index c51bb74..7ec1a81 100644 --- a/Practice/ValidWeb/Properties/AssemblyInfo.cs +++ b/Practice/ValidWeb/Properties/AssemblyInfo.cs @@ -1,4 +1,4 @@ -using System.Reflection; +using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/Practice/ValidWeb/ValidWeb.csproj b/Practice/ValidWeb/ValidWeb.csproj index 0805414..d46f7d4 100644 --- a/Practice/ValidWeb/ValidWeb.csproj +++ b/Practice/ValidWeb/ValidWeb.csproj @@ -72,8 +72,12 @@ Designer + + + ASPXCodeBehind + Forma1.aspx ASPXCodeBehind @@ -82,6 +86,13 @@ Forma1.aspx + + WebForm1.aspx + ASPXCodeBehind + + + WebForm1.aspx + diff --git a/Practice/ValidWeb/WebForm1.aspx b/Practice/ValidWeb/WebForm1.aspx new file mode 100644 index 0000000..9e22948 --- /dev/null +++ b/Practice/ValidWeb/WebForm1.aspx @@ -0,0 +1,15 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="ValidWeb.WebForm1" %> + + + + + + + + +
+
+
+
+ + diff --git a/Practice/ValidWeb/WebForm1.aspx.cs b/Practice/ValidWeb/WebForm1.aspx.cs new file mode 100644 index 0000000..2fe1d92 --- /dev/null +++ b/Practice/ValidWeb/WebForm1.aspx.cs @@ -0,0 +1,17 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; + +namespace ValidWeb +{ + public partial class WebForm1 : System.Web.UI.Page + { + protected void Page_Load(object sender, EventArgs e) + { + + } + } +} \ No newline at end of file diff --git a/Practice/ValidWeb/WebForm1.aspx.designer.cs b/Practice/ValidWeb/WebForm1.aspx.designer.cs new file mode 100644 index 0000000..3eed1d4 --- /dev/null +++ b/Practice/ValidWeb/WebForm1.aspx.designer.cs @@ -0,0 +1,26 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace ValidWeb +{ + + + public partial class WebForm1 + { + + /// + /// form1 control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.HtmlControls.HtmlForm form1; + } +}