diff --git a/oop/first_webform/first_webform.sln b/oop/first_webform/first_webform.sln new file mode 100644 index 0000000..37ad926 --- /dev/null +++ b/oop/first_webform/first_webform.sln @@ -0,0 +1,22 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 15 +VisualStudioVersion = 15.0.26430.12 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "first_webform", "first_webform\first_webform.csproj", "{3C4BDC47-59AB-4EDA-90AC-4F71E76D7810}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {3C4BDC47-59AB-4EDA-90AC-4F71E76D7810}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {3C4BDC47-59AB-4EDA-90AC-4F71E76D7810}.Debug|Any CPU.Build.0 = Debug|Any CPU + {3C4BDC47-59AB-4EDA-90AC-4F71E76D7810}.Release|Any CPU.ActiveCfg = Release|Any CPU + {3C4BDC47-59AB-4EDA-90AC-4F71E76D7810}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/oop/first_webform/first_webform/Default.aspx b/oop/first_webform/first_webform/Default.aspx new file mode 100644 index 0000000..4568231 --- /dev/null +++ b/oop/first_webform/first_webform/Default.aspx @@ -0,0 +1,46 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="first_webform.Default" %> + + + + + + + + +
+
+

+ Dies ist ein Test. +

+ + + + + + +
+

+ +

+ +

+ Wählen Sie ihre Upgrade Optionen +

+

+ + +

+ +

+ + + + +

+

+ + +

+
+ + diff --git a/oop/first_webform/first_webform/Default.aspx.cs b/oop/first_webform/first_webform/Default.aspx.cs new file mode 100644 index 0000000..94ef125 --- /dev/null +++ b/oop/first_webform/first_webform/Default.aspx.cs @@ -0,0 +1,41 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; + +namespace first_webform +{ + public partial class Default : System.Web.UI.Page + { + protected void Page_Load(object sender, EventArgs e) + { + if (!Page.IsPostBack) + { + CheckBoxList1.Items.Add(new ListItem("Mehr RAM", "mehr RAM")); + CheckBoxList1.Items.Add(new ListItem("Mehr CPU", "Mehr CPU")); + CheckBoxList1.Items.Add(new ListItem("Mehr SSD", "Mehr SSD")); + CheckBoxList1.Items.Add(new ListItem("Schnelleres Internet", "Schnelleres Internet")); + } + } + + protected void Button1_Click(object sender, EventArgs e) + { + TextBox2.Text = DateTime.Now.ToString(); + } + + protected void Button2_Click(object sender, EventArgs e) + { + string LabelString = string.Empty; + foreach (ListItem li in CheckBoxList1.Items) + { + if (li.Selected) + { + LabelString += li.Text + ","; + Label2.Text = LabelString; + } + } + } + } +} \ No newline at end of file diff --git a/oop/first_webform/first_webform/Default.aspx.designer.cs b/oop/first_webform/first_webform/Default.aspx.designer.cs new file mode 100644 index 0000000..5a3c366 --- /dev/null +++ b/oop/first_webform/first_webform/Default.aspx.designer.cs @@ -0,0 +1,87 @@ +//------------------------------------------------------------------------------ +// +// 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 first_webform { + + + public partial class Default { + + /// + /// 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; + + /// + /// TextBox1 control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.TextBox TextBox1; + + /// + /// Calendar1 control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Calendar Calendar1; + + /// + /// TextBox2 control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.TextBox TextBox2; + + /// + /// Button1 control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Button Button1; + + /// + /// CheckBoxList1 control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.CheckBoxList CheckBoxList1; + + /// + /// Button2 control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Button Button2; + + /// + /// Label2 control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Label Label2; + } +} diff --git a/oop/first_webform/first_webform/Global.asax b/oop/first_webform/first_webform/Global.asax new file mode 100644 index 0000000..76f567c --- /dev/null +++ b/oop/first_webform/first_webform/Global.asax @@ -0,0 +1 @@ +<%@ Application Codebehind="Global.asax.cs" Inherits="first_webform.Global" Language="C#" %> diff --git a/oop/first_webform/first_webform/Global.asax.cs b/oop/first_webform/first_webform/Global.asax.cs new file mode 100644 index 0000000..ed09f57 --- /dev/null +++ b/oop/first_webform/first_webform/Global.asax.cs @@ -0,0 +1,16 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.Security; +using System.Web.SessionState; + +namespace first_webform +{ + public class Global : System.Web.HttpApplication + { + protected void Application_Start(object sender, EventArgs e) + { + } + } +} \ No newline at end of file diff --git a/oop/first_webform/first_webform/Properties/AssemblyInfo.cs b/oop/first_webform/first_webform/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..b02fac6 --- /dev/null +++ b/oop/first_webform/first_webform/Properties/AssemblyInfo.cs @@ -0,0 +1,35 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("first_webform")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("first_webform")] +[assembly: AssemblyCopyright("Copyright © 2017")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("3c4bdc47-59ab-4eda-90ac-4f71e76d7810")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Revision and Build Numbers +// by using the '*' as shown below: +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/oop/first_webform/first_webform/StringConverter.aspx b/oop/first_webform/first_webform/StringConverter.aspx new file mode 100644 index 0000000..ecc2930 --- /dev/null +++ b/oop/first_webform/first_webform/StringConverter.aspx @@ -0,0 +1,29 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="StringConverter.aspx.cs" Inherits="first_webform.WebForm1" %> + + + + + + + + +
+
+

+ String Converter +

+
+ +

+ +

+

+ +

+ + + + +
+ + diff --git a/oop/first_webform/first_webform/StringConverter.aspx.cs b/oop/first_webform/first_webform/StringConverter.aspx.cs new file mode 100644 index 0000000..a97ff82 --- /dev/null +++ b/oop/first_webform/first_webform/StringConverter.aspx.cs @@ -0,0 +1,22 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; + +namespace first_webform +{ + public partial class WebForm1 : System.Web.UI.Page + { + protected void Page_Load(object sender, EventArgs e) + { + + } + + protected void Button1_Click(object sender, EventArgs e) + { + Label1.Text = StringConverter.ConStr(TextBox1.Text); + } + } +} \ No newline at end of file diff --git a/oop/first_webform/first_webform/StringConverter.aspx.designer.cs b/oop/first_webform/first_webform/StringConverter.aspx.designer.cs new file mode 100644 index 0000000..5f2223f --- /dev/null +++ b/oop/first_webform/first_webform/StringConverter.aspx.designer.cs @@ -0,0 +1,51 @@ +//------------------------------------------------------------------------------ +// +// 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 first_webform { + + + 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; + + /// + /// TextBox1 control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.TextBox TextBox1; + + /// + /// Button1 control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Button Button1; + + /// + /// Label1 control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Label Label1; + } +} diff --git a/oop/first_webform/first_webform/StringConverter.cs b/oop/first_webform/first_webform/StringConverter.cs new file mode 100644 index 0000000..a348ac6 --- /dev/null +++ b/oop/first_webform/first_webform/StringConverter.cs @@ -0,0 +1,16 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; + +namespace first_webform +{ + static class StringConverter + { + public static string ConStr(string _input) + { + string date = DateTime.Now.ToString(); + return _input.ToUpper() + " " + date; + } + } +} \ No newline at end of file diff --git a/oop/first_webform/first_webform/Web.Debug.config b/oop/first_webform/first_webform/Web.Debug.config new file mode 100644 index 0000000..fae9cfe --- /dev/null +++ b/oop/first_webform/first_webform/Web.Debug.config @@ -0,0 +1,30 @@ + + + + + + + + + + \ No newline at end of file diff --git a/oop/first_webform/first_webform/Web.Release.config b/oop/first_webform/first_webform/Web.Release.config new file mode 100644 index 0000000..da6e960 --- /dev/null +++ b/oop/first_webform/first_webform/Web.Release.config @@ -0,0 +1,31 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/oop/first_webform/first_webform/Web.config b/oop/first_webform/first_webform/Web.config new file mode 100644 index 0000000..855dd25 --- /dev/null +++ b/oop/first_webform/first_webform/Web.config @@ -0,0 +1,21 @@ + + + + + + + + + + + + + + \ No newline at end of file diff --git a/oop/first_webform/first_webform/first_webform.csproj b/oop/first_webform/first_webform/first_webform.csproj new file mode 100644 index 0000000..6b8374d --- /dev/null +++ b/oop/first_webform/first_webform/first_webform.csproj @@ -0,0 +1,146 @@ + + + + + + Debug + AnyCPU + + + 2.0 + {3C4BDC47-59AB-4EDA-90AC-4F71E76D7810} + {349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc} + Library + Properties + first_webform + first_webform + v4.5.2 + true + + + + + + + + + + true + full + false + bin\ + DEBUG;TRACE + prompt + 4 + + + true + pdbonly + true + bin\ + TRACE + prompt + 4 + + + + ..\packages\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.1.0.3\lib\net45\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.dll + + + + + + + + + + + + + + + + + + + + + + + + Web.config + + + Web.config + + + + + + + + + + + Default.aspx + ASPXCodeBehind + + + Default.aspx + + + Global.asax + + + + StringConverter.aspx + ASPXCodeBehind + + + StringConverter.aspx + + + + + + + + 10.0 + $(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion) + + + + + + + + + True + True + 61958 + / + http://localhost:61958/ + False + False + + + False + + + + + + + This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}. + + + + + + \ No newline at end of file diff --git a/oop/first_webform/first_webform/packages.config b/oop/first_webform/first_webform/packages.config new file mode 100644 index 0000000..b23732c --- /dev/null +++ b/oop/first_webform/first_webform/packages.config @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file