From 8b5ba78954eae1747802a98bacf2cb40bd14dd3f Mon Sep 17 00:00:00 2001 From: nikhil-ddu Date: Tue, 13 Sep 2016 20:18:14 +0530 Subject: [PATCH 1/9] version1 with limited features is completed.. --- .../GreetingCardWebApp/78_nikhil/default.jpg | Bin 0 -> 12680 bytes .../78_nikhil/version1_ce_78.aspx | 47 ++++++++ .../78_nikhil/version1_ce_78.aspx.cs | 89 ++++++++++++++ .../78_nikhil/version1_ce_78.aspx.designer.cs | 114 ++++++++++++++++++ 4 files changed, 250 insertions(+) create mode 100644 GreetingCardWebApp/GreetingCardWebApp/78_nikhil/default.jpg create mode 100644 GreetingCardWebApp/GreetingCardWebApp/78_nikhil/version1_ce_78.aspx create mode 100644 GreetingCardWebApp/GreetingCardWebApp/78_nikhil/version1_ce_78.aspx.cs create mode 100644 GreetingCardWebApp/GreetingCardWebApp/78_nikhil/version1_ce_78.aspx.designer.cs diff --git a/GreetingCardWebApp/GreetingCardWebApp/78_nikhil/default.jpg b/GreetingCardWebApp/GreetingCardWebApp/78_nikhil/default.jpg new file mode 100644 index 0000000000000000000000000000000000000000..60079592937a40106dcfb22fb10598039a67a9a8 GIT binary patch literal 12680 zcmcI~WmFtZx9;E}1QOgWxD(t7Ap{GMVX$G41b25$LU0QVu3>-y1`7=C?(R--C%DVy z{mwbxx##@3ziwA|t&(1Q@9M5ytLoX$K>iXQ+dC;$M;Qvy8B1AYLoF|h~< z@relu35baaNJ+^^iJu-aGEx$95(-k1ry4N@H7gw%B@-Uk9&R#Pei42y zVOB0~4wUE5pX1@;QNDUb$;C{^%q7gl!^6eL#l`cK{<;1m|5x$fm8Z7P@P2vs+x0~~?WM8ks1J8B7z-(sMnywj z?ke~S9ThpJtCB`F81ogNH!rMg>&#i<6wS?B-qiV$I1ibL-dr40;^4_@pIw?9>1uqRl@#_x)rgZ)uyexTuJ#+(Zj+Eu_DoFiN}|OI zHYD0xoa;Ek^)8=adGQ>q?AT?-rc{I9ShnfqDrOVLW@dR!{xz(q)v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*47pM=?pRyCiP+n#7_td>%#mvqUt7V8v*y)5n-(`r^ET^R5g%Pk*FsM%r;YC zu9jzIHn(h*LE0o?v&k^%WlW6d?F;gYDw?L$8oN0HS0};&l%UF1v?XoL&WeQIcYKRy zv!y+uxW0sm>@nPMRTJn8x~(6E+)SA|wy=;9N^>xeBI*!nZn@rA&_gjkOBT#&)A2S| zsfvUWmvQ~~?@&u)}nCiM2vrcr5|pJ# zd&(sUIz<1IMRXFwJ}8IOD~DPSB7Jp*(XI0tRPY*KvP~*ers?*z8n(Leg=uIHf7+n` z%Jd-{=!CI8Uz0u_5H!E9G1*#iK2xMpmEn~jpYx3FtISA1K0|JhW?)M)O=XN&@8%qmsU-P=#3U5QgRG%0Q<%a^(xBM6qWO! zL>En>R+6A4_w`{FTA12F!NuumRg-~hdrv1UhKaZo-Bp;|&+yy*H#0#HX@zCa_x`rR4{kC-@n*3!B| zC?fQ3ocVq4H-Iim=qsCugctlAG6DUvd|u4>-ztk`*WxPYOT(C+PccoBxxC_>TyZuipRV Ow&?#;3p(24?Ee9Zmr54^ literal 0 HcmV?d00001 diff --git a/GreetingCardWebApp/GreetingCardWebApp/78_nikhil/version1_ce_78.aspx b/GreetingCardWebApp/GreetingCardWebApp/78_nikhil/version1_ce_78.aspx new file mode 100644 index 0000000..d54700a --- /dev/null +++ b/GreetingCardWebApp/GreetingCardWebApp/78_nikhil/version1_ce_78.aspx @@ -0,0 +1,47 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="version1_ce_78.aspx.cs" Inherits="GreetingCardWebApp._78_nikhil.version1_ce_78" %> + + + + + + + + +
+
+ + Choose a background color:
+

+ Choose a font:
+

+ Specify a numeric font size:
+

+ Choose a border style:
+

+

+ Enter the greeting text below:
+

+ +
+ + +
  +


+ +
+ + + +
+ + diff --git a/GreetingCardWebApp/GreetingCardWebApp/78_nikhil/version1_ce_78.aspx.cs b/GreetingCardWebApp/GreetingCardWebApp/78_nikhil/version1_ce_78.aspx.cs new file mode 100644 index 0000000..35c22f4 --- /dev/null +++ b/GreetingCardWebApp/GreetingCardWebApp/78_nikhil/version1_ce_78.aspx.cs @@ -0,0 +1,89 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; +using System.Drawing; + + +namespace GreetingCardWebApp._78_nikhil +{ + public partial class version1_ce_78 : System.Web.UI.Page + { + protected void Page_Load(object sender, EventArgs e) + { + if (!this.IsPostBack) + { + // Set color options. + lstBackColor.Items.Add("White"); + lstBackColor.Items.Add("Red"); + lstBackColor.Items.Add("Green"); + lstBackColor.Items.Add("Blue"); + lstBackColor.Items.Add("Yellow"); + // Set font options. + lstFontName.Items.Add("Times New Roman"); + lstFontName.Items.Add("Arial"); + lstFontName.Items.Add("Verdana"); + lstFontName.Items.Add("Tahoma"); + // Set border style options by adding a series of + // ListItem objects. + ListItem item = new ListItem(); + // The item text indicates the name of the option. + item.Text = BorderStyle.None.ToString(); + // The item value records the corresponding integer + // from the enumeration. To obtain this value, you + // must cast the enumeration value to an integer, + // and then convert the number to a string so it + // can be placed in the HTML page. + item.Value = ((int)BorderStyle.None).ToString(); + // Add the item. + lstBorder.Items.Add(item); + // Now repeat the process for two other border styles. + item = new ListItem(); + item.Text = BorderStyle.Double.ToString(); + item.Value = ((int)BorderStyle.Double).ToString(); + lstBorder.Items.Add(item); + item = new ListItem(); + item.Text = BorderStyle.Solid.ToString(); + item.Value = ((int)BorderStyle.Solid).ToString(); + lstBorder.Items.Add(item); + // Select the first border option. + lstBorder.SelectedIndex = 0; + // Set the picture. + imgDefault.ImageUrl = "default.jpg"; + } + } + + protected void cmdUpdate_Click(object sender, EventArgs e) + { + // Update the color. + pnlCard.BackColor = Color.FromName(lstBackColor.SelectedItem.Text); + + // Update the font. + lblGreeting.Font.Name = lstFontName.SelectedItem.Text; + if (Int32.Parse(txtFontSize.Text) > 0) + { + lblGreeting.Font.Size = + FontUnit.Point(Int32.Parse(txtFontSize.Text)); + } + // Update the border style. This requires two conversion steps. + // First, the value of the list item is converted from a string + // into an integer. Next, the integer is converted to a value in + // the BorderStyle enumeration. + int borderValue = Int32.Parse(lstBorder.SelectedItem.Value); + pnlCard.BorderStyle = (BorderStyle)borderValue; + // Update the picture. + if (chkPicture.Checked) + { + imgDefault.Visible = true; + } + else + { + imgDefault.Visible = false; + } + // Set the text. + lblGreeting.Text = txtGreeting.Text; + } + } +} \ No newline at end of file diff --git a/GreetingCardWebApp/GreetingCardWebApp/78_nikhil/version1_ce_78.aspx.designer.cs b/GreetingCardWebApp/GreetingCardWebApp/78_nikhil/version1_ce_78.aspx.designer.cs new file mode 100644 index 0000000..2efec29 --- /dev/null +++ b/GreetingCardWebApp/GreetingCardWebApp/78_nikhil/version1_ce_78.aspx.designer.cs @@ -0,0 +1,114 @@ +//------------------------------------------------------------------------------ +// +// 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 GreetingCardWebApp._78_nikhil { + + + public partial class version1_ce_78 { + + /// + /// 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; + + /// + /// lstBackColor control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.DropDownList lstBackColor; + + /// + /// lstFontName control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.DropDownList lstFontName; + + /// + /// txtFontSize control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.TextBox txtFontSize; + + /// + /// lstBorder control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.RadioButtonList lstBorder; + + /// + /// chkPicture control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.CheckBox chkPicture; + + /// + /// txtGreeting control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.TextBox txtGreeting; + + /// + /// cmdUpdate control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Button cmdUpdate; + + /// + /// pnlCard control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Panel pnlCard; + + /// + /// lblGreeting control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Label lblGreeting; + + /// + /// imgDefault control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Image imgDefault; + } +} From 51445a5f2f551c0f5e9df4e5d6075b1e8a3a8a6d Mon Sep 17 00:00:00 2001 From: nikhil-ddu Date: Tue, 13 Sep 2016 21:08:38 +0530 Subject: [PATCH 2/9] version2 with full features is completed --- .../78_nikhil/version2_ce_78.aspx | 45 +++++++ .../78_nikhil/version2_ce_78.aspx.cs | 70 +++++++++++ .../78_nikhil/version2_ce_78.aspx.designer.cs | 114 ++++++++++++++++++ 3 files changed, 229 insertions(+) create mode 100644 GreetingCardWebApp/GreetingCardWebApp/78_nikhil/version2_ce_78.aspx create mode 100644 GreetingCardWebApp/GreetingCardWebApp/78_nikhil/version2_ce_78.aspx.cs create mode 100644 GreetingCardWebApp/GreetingCardWebApp/78_nikhil/version2_ce_78.aspx.designer.cs diff --git a/GreetingCardWebApp/GreetingCardWebApp/78_nikhil/version2_ce_78.aspx b/GreetingCardWebApp/GreetingCardWebApp/78_nikhil/version2_ce_78.aspx new file mode 100644 index 0000000..882972a --- /dev/null +++ b/GreetingCardWebApp/GreetingCardWebApp/78_nikhil/version2_ce_78.aspx @@ -0,0 +1,45 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="version2_ce_78.aspx.cs" Inherits="GreetingCardWebApp._78_nikhil.version2_ce_78" %> + + + + + + + + +
+
+ + Choose a background color:
+

+ Choose a font:
+

+ Specify a numeric font size:
+

+ Choose a border style:
+

+

+ Enter the greeting text below:
+

+ +
+ + +
  +


+ +
+ +
+ + diff --git a/GreetingCardWebApp/GreetingCardWebApp/78_nikhil/version2_ce_78.aspx.cs b/GreetingCardWebApp/GreetingCardWebApp/78_nikhil/version2_ce_78.aspx.cs new file mode 100644 index 0000000..b89ad15 --- /dev/null +++ b/GreetingCardWebApp/GreetingCardWebApp/78_nikhil/version2_ce_78.aspx.cs @@ -0,0 +1,70 @@ +using System; +using System.Web.UI.WebControls; +using System.Drawing; +using System.Drawing.Text; +using System.ComponentModel; +namespace GreetingCardWebApp._78_nikhil +{ + public partial class version2_ce_78 : System.Web.UI.Page + { + protected void Page_Load(object sender, EventArgs e) + { + InstalledFontCollection fonts = new InstalledFontCollection(); + if (!this.IsPostBack) + { + // Set color options. + string[] colorArray = Enum.GetNames(typeof(KnownColor)); + lstBackColor.DataSource = colorArray; + lstBackColor.DataBind(); + // Set font options. + foreach (FontFamily family in fonts.Families) + { + lstFontName.Items.Add(family.Name); + } + + // Set border style options + string[] borderStyleArray = Enum.GetNames(typeof(BorderStyle)); + lstBorder.DataSource = borderStyleArray; + lstBorder.DataBind(); + // Select the first border option. + lstBorder.SelectedIndex = 0; + // Set the picture. + imgDefault.ImageUrl = "default.jpg"; + } + } + protected void cmdUpdate_Click(object sender, EventArgs e) + { + // Update the color. + pnlCard.BackColor = Color.FromName(lstBackColor.SelectedItem.Text); + + // Update the font. + lblGreeting.Font.Name = lstFontName.SelectedItem.Text; + if (Int32.Parse(txtFontSize.Text) > 0) + { + lblGreeting.Font.Size = + FontUnit.Point(Int32.Parse(txtFontSize.Text)); + } + // Update the border style. This requires two conversion steps. + // First, the value of the list item is converted from a string + // into an integer. Next, the integer is converted to a value in + // the BorderStyle enumeration. + // Find the appropriate TypeConverter for the BorderStyle enumeration. + TypeConverter converter = + TypeDescriptor.GetConverter(typeof(BorderStyle)); + // Update the border style using the value from the converter. + pnlCard.BorderStyle = (BorderStyle)converter.ConvertFromString( + lstBorder.SelectedItem.Text); + // Update the picture. + if (chkPicture.Checked) + { + imgDefault.Visible = true; + } + else + { + imgDefault.Visible = false; + } + // Set the text. + lblGreeting.Text = txtGreeting.Text; + } + } +} \ No newline at end of file diff --git a/GreetingCardWebApp/GreetingCardWebApp/78_nikhil/version2_ce_78.aspx.designer.cs b/GreetingCardWebApp/GreetingCardWebApp/78_nikhil/version2_ce_78.aspx.designer.cs new file mode 100644 index 0000000..1f4cc9b --- /dev/null +++ b/GreetingCardWebApp/GreetingCardWebApp/78_nikhil/version2_ce_78.aspx.designer.cs @@ -0,0 +1,114 @@ +//------------------------------------------------------------------------------ +// +// 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 GreetingCardWebApp._78_nikhil { + + + public partial class version2_ce_78 { + + /// + /// 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; + + /// + /// lstBackColor control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.DropDownList lstBackColor; + + /// + /// lstFontName control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.DropDownList lstFontName; + + /// + /// txtFontSize control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.TextBox txtFontSize; + + /// + /// lstBorder control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.RadioButtonList lstBorder; + + /// + /// chkPicture control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.CheckBox chkPicture; + + /// + /// txtGreeting control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.TextBox txtGreeting; + + /// + /// cmdUpdate control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Button cmdUpdate; + + /// + /// pnlCard control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Panel pnlCard; + + /// + /// lblGreeting control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Label lblGreeting; + + /// + /// imgDefault control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Image imgDefault; + } +} From e066d2db084a3e89d1b906bca951829613a2ca3c Mon Sep 17 00:00:00 2001 From: nikhil-ddu Date: Tue, 13 Sep 2016 21:15:08 +0530 Subject: [PATCH 3/9] version3_multiview version is completed --- .../78_nikhil/version3_ce_78.aspx | 65 ++++++ .../78_nikhil/version3_ce_78.aspx.cs | 122 +++++++++++ .../78_nikhil/version3_ce_78.aspx.designer.cs | 195 ++++++++++++++++++ 3 files changed, 382 insertions(+) create mode 100644 GreetingCardWebApp/GreetingCardWebApp/78_nikhil/version3_ce_78.aspx create mode 100644 GreetingCardWebApp/GreetingCardWebApp/78_nikhil/version3_ce_78.aspx.cs create mode 100644 GreetingCardWebApp/GreetingCardWebApp/78_nikhil/version3_ce_78.aspx.designer.cs diff --git a/GreetingCardWebApp/GreetingCardWebApp/78_nikhil/version3_ce_78.aspx b/GreetingCardWebApp/GreetingCardWebApp/78_nikhil/version3_ce_78.aspx new file mode 100644 index 0000000..f50842f --- /dev/null +++ b/GreetingCardWebApp/GreetingCardWebApp/78_nikhil/version3_ce_78.aspx @@ -0,0 +1,65 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="version3_ce_78.aspx.cs" Inherits="GreetingCardWebApp._78_nikhil.version3_ce_78" %> + + + + + + + + +
+
+ +
  + + + Choose a foreground (text) color:
+ +

+ Choose a background color:
+ +
+ +
+ + Choose a border style:
+ +
+ +
+ + +
+ + Choose a font name:
+ +

+ Specify a font size:
+ +

+ Enter the greeting text below:
+ +
+ + +
+
+
+
+ +
  +


+ +
+ + +
+ + diff --git a/GreetingCardWebApp/GreetingCardWebApp/78_nikhil/version3_ce_78.aspx.cs b/GreetingCardWebApp/GreetingCardWebApp/78_nikhil/version3_ce_78.aspx.cs new file mode 100644 index 0000000..030e6b5 --- /dev/null +++ b/GreetingCardWebApp/GreetingCardWebApp/78_nikhil/version3_ce_78.aspx.cs @@ -0,0 +1,122 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; + +using System.Drawing; +using System.Drawing.Text; +using System.ComponentModel; + +namespace GreetingCardWebApp._78_nikhil +{ + public partial class version3_ce_78 : System.Web.UI.Page + { + protected void Page_Load(object sender, EventArgs e) + { + InstalledFontCollection fonts = new InstalledFontCollection(); + if (!this.IsPostBack) + { + MultiView1.ActiveViewIndex = 0; + // Set color options. + string[] colorArray = Enum.GetNames(typeof(KnownColor)); + lstForeColor.DataSource = colorArray; + lstForeColor.DataBind(); + + string[] colorArray1 = Enum.GetNames(typeof(KnownColor)); + lstBackColor.DataSource = colorArray1; + lstBackColor.DataBind(); + // Set font options. + foreach (FontFamily family in fonts.Families) + { + lstFontName.Items.Add(family.Name); + } + + // Set border style options + string[] borderStyleArray = Enum.GetNames(typeof(BorderStyle)); + lstBorder.DataSource = borderStyleArray; + lstBorder.DataBind(); + // Select the first border option. + lstBorder.SelectedIndex = 0; + // Set the picture. + imgDefault.ImageUrl = "default.jpg"; + } + } + + protected void Button1_Click(object sender, EventArgs e) + { + MultiView1.SetActiveView(View2); + } + + protected void ControlChangedfore(object sender, EventArgs e) + { + pnlCard2.ForeColor = Color.FromName(lstForeColor.SelectedItem.Text); + + } + + protected void ControlChangedBack(object sender, EventArgs e) + { + pnlCard2.BackColor = Color.FromName(lstBackColor.SelectedItem.Text); + + } + + protected void ControlChangedBorder(object sender, EventArgs e) + { + TypeConverter converter = TypeDescriptor.GetConverter(typeof(BorderStyle)); + pnlCard2.BorderStyle = (BorderStyle)converter.ConvertFromString( + lstBorder.SelectedItem.Text); + + } + + protected void ControlChangedPicture(object sender, EventArgs e) + { + if (chkPicture.Checked) + { + imgDefault.Visible = true; + } + else + { + imgDefault.Visible = false; + } + + } + + protected void ControlChangedFontName(object sender, EventArgs e) + { + lblGreeting.Font.Name = lstFontName.SelectedItem.Text; + + } + + protected void ControlChangedFontSize(object sender, EventArgs e) + { + + if (Int32.Parse(txtFontSize.Text) > 0) + { + lblGreeting.Font.Size = + FontUnit.Point(Int32.Parse(txtFontSize.Text)); + } + } + + protected void ControlChangedTxtGreeting(object sender, EventArgs e) + { + lblGreeting.Text = txtGreeting.Text; + + } + + protected void Button2_Click(object sender, EventArgs e) + { + MultiView1.SetActiveView(View1); + } + + protected void Button3_Click(object sender, EventArgs e) + { + MultiView1.SetActiveView(View3); + } + + protected void Button4_Click(object sender, EventArgs e) + { + MultiView1.SetActiveView(View2); + } + } +} \ No newline at end of file diff --git a/GreetingCardWebApp/GreetingCardWebApp/78_nikhil/version3_ce_78.aspx.designer.cs b/GreetingCardWebApp/GreetingCardWebApp/78_nikhil/version3_ce_78.aspx.designer.cs new file mode 100644 index 0000000..42fd442 --- /dev/null +++ b/GreetingCardWebApp/GreetingCardWebApp/78_nikhil/version3_ce_78.aspx.designer.cs @@ -0,0 +1,195 @@ +//------------------------------------------------------------------------------ +// +// 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 GreetingCardWebApp._78_nikhil { + + + public partial class version3_ce_78 { + + /// + /// 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; + + /// + /// PnlCard1 control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Panel PnlCard1; + + /// + /// MultiView1 control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.MultiView MultiView1; + + /// + /// View1 control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.View View1; + + /// + /// lstForeColor control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.DropDownList lstForeColor; + + /// + /// lstBackColor control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.DropDownList lstBackColor; + + /// + /// 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; + + /// + /// View2 control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.View View2; + + /// + /// lstBorder control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.RadioButtonList lstBorder; + + /// + /// chkPicture control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.CheckBox chkPicture; + + /// + /// 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; + + /// + /// Button3 control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Button Button3; + + /// + /// View3 control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.View View3; + + /// + /// lstFontName control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.DropDownList lstFontName; + + /// + /// txtFontSize control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.TextBox txtFontSize; + + /// + /// txtGreeting control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.TextBox txtGreeting; + + /// + /// Button4 control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Button Button4; + + /// + /// pnlCard2 control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Panel pnlCard2; + + /// + /// lblGreeting control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Label lblGreeting; + + /// + /// imgDefault control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Image imgDefault; + } +} From 4c98643fd4d4c6f411628853d5d0195c68cd3c39 Mon Sep 17 00:00:00 2001 From: nikhil-ddu Date: Tue, 13 Sep 2016 21:25:40 +0530 Subject: [PATCH 4/9] version4_wizard is completed --- .../78_nikhil/version4_ce_78.aspx | 57 ++++++++ .../78_nikhil/version4_ce_78.aspx.cs | 80 ++++++++++++ .../78_nikhil/version4_ce_78.aspx.designer.cs | 123 ++++++++++++++++++ 3 files changed, 260 insertions(+) create mode 100644 GreetingCardWebApp/GreetingCardWebApp/78_nikhil/version4_ce_78.aspx create mode 100644 GreetingCardWebApp/GreetingCardWebApp/78_nikhil/version4_ce_78.aspx.cs create mode 100644 GreetingCardWebApp/GreetingCardWebApp/78_nikhil/version4_ce_78.aspx.designer.cs diff --git a/GreetingCardWebApp/GreetingCardWebApp/78_nikhil/version4_ce_78.aspx b/GreetingCardWebApp/GreetingCardWebApp/78_nikhil/version4_ce_78.aspx new file mode 100644 index 0000000..3ee6205 --- /dev/null +++ b/GreetingCardWebApp/GreetingCardWebApp/78_nikhil/version4_ce_78.aspx @@ -0,0 +1,57 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="version4_ce_78.aspx.cs" Inherits="GreetingCardWebApp._78_nikhil.version4_ce_78" %> + + + + + + + + +
+
+ + + + Choose a foreground (text) color:
+ +
+ Choose a background color:
+ +
+ + Choose a border style:
+ + +

+ +
+ + Choose a font name:
+ +

+ Specify a font size:
+ +

+ Enter the greeting text below:
+ +
+ + +
  +


+ +
+
+
+
+ +
+
+ + diff --git a/GreetingCardWebApp/GreetingCardWebApp/78_nikhil/version4_ce_78.aspx.cs b/GreetingCardWebApp/GreetingCardWebApp/78_nikhil/version4_ce_78.aspx.cs new file mode 100644 index 0000000..089765b --- /dev/null +++ b/GreetingCardWebApp/GreetingCardWebApp/78_nikhil/version4_ce_78.aspx.cs @@ -0,0 +1,80 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; + +using System.Drawing; +using System.Drawing.Text; +using System.ComponentModel; + + +namespace GreetingCardWebApp._78_nikhil +{ + public partial class version4_ce_78 : System.Web.UI.Page + { + protected void Page_Load(object sender, EventArgs e) + { + InstalledFontCollection fonts = new InstalledFontCollection(); + if (!this.IsPostBack) + { + string[] colorArray = Enum.GetNames(typeof(KnownColor)); + lstForeColor.DataSource = colorArray; + lstForeColor.DataBind(); + // Set color options. + string[] colorArray1 = Enum.GetNames(typeof(KnownColor)); + lstBackColor.DataSource = colorArray1; + lstBackColor.DataBind(); + // Set font options. + foreach (FontFamily family in fonts.Families) + { + lstFontName.Items.Add(family.Name); + } + + // Set border style options + string[] borderStyleArray = Enum.GetNames(typeof(BorderStyle)); + lstBorder.DataSource = borderStyleArray; + lstBorder.DataBind(); + // Select the first border option. + lstBorder.SelectedIndex = 0; + // Set the picture. + imgDefault.ImageUrl = "default.jpg"; + } + } + protected void Wizard1_FinishButtonClick(object sender, WizardNavigationEventArgs e) + { + pnlCard.BackColor = Color.FromName(lstBackColor.SelectedItem.Text); + + pnlCard.ForeColor = Color.FromName(lstForeColor.SelectedItem.Text); + // Update the font. + lblGreeting.Font.Name = lstFontName.SelectedItem.Text; + if (Int32.Parse(txtFontSize.Text) > 0) + { + lblGreeting.Font.Size = + FontUnit.Point(Int32.Parse(txtFontSize.Text)); + } + // Update the border style. This requires two conversion steps. + // First, the value of the list item is converted from a string + // into an integer. Next, the integer is converted to a value in + // the BorderStyle enumeration. + // Find the appropriate TypeConverter for the BorderStyle enumeration. + TypeConverter converter = + TypeDescriptor.GetConverter(typeof(BorderStyle)); + // Update the border style using the value from the converter. + pnlCard.BorderStyle = (BorderStyle)converter.ConvertFromString( + lstBorder.SelectedItem.Text); + // Update the picture. + if (chkPicture.Checked) + { + imgDefault.Visible = true; + } + else + { + imgDefault.Visible = false; + } + // Set the text. + lblGreeting.Text = txtGreeting.Text; + } + } +} \ No newline at end of file diff --git a/GreetingCardWebApp/GreetingCardWebApp/78_nikhil/version4_ce_78.aspx.designer.cs b/GreetingCardWebApp/GreetingCardWebApp/78_nikhil/version4_ce_78.aspx.designer.cs new file mode 100644 index 0000000..883399c --- /dev/null +++ b/GreetingCardWebApp/GreetingCardWebApp/78_nikhil/version4_ce_78.aspx.designer.cs @@ -0,0 +1,123 @@ +//------------------------------------------------------------------------------ +// +// 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 GreetingCardWebApp._78_nikhil { + + + public partial class version4_ce_78 { + + /// + /// 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; + + /// + /// Wizard1 control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Wizard Wizard1; + + /// + /// lstForeColor control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.DropDownList lstForeColor; + + /// + /// lstBackColor control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.DropDownList lstBackColor; + + /// + /// lstBorder control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.RadioButtonList lstBorder; + + /// + /// chkPicture control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.CheckBox chkPicture; + + /// + /// lstFontName control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.DropDownList lstFontName; + + /// + /// txtFontSize control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.TextBox txtFontSize; + + /// + /// txtGreeting control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.TextBox txtGreeting; + + /// + /// pnlCard control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Panel pnlCard; + + /// + /// lblGreeting control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Label lblGreeting; + + /// + /// imgDefault control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Image imgDefault; + } +} From 7fc816910b1b51f9087ce1b2e94cb3fe212ce6ba Mon Sep 17 00:00:00 2001 From: nikhil-ddu Date: Tue, 13 Sep 2016 21:39:07 +0530 Subject: [PATCH 5/9] version5_viewstate is completed --- .../78_nikhil/version5_ce_78.aspx | 48 +++++++ .../78_nikhil/version5_ce_78.aspx.cs | 103 +++++++++++++++ .../78_nikhil/version5_ce_78.aspx.designer.cs | 123 ++++++++++++++++++ 3 files changed, 274 insertions(+) create mode 100644 GreetingCardWebApp/GreetingCardWebApp/78_nikhil/version5_ce_78.aspx create mode 100644 GreetingCardWebApp/GreetingCardWebApp/78_nikhil/version5_ce_78.aspx.cs create mode 100644 GreetingCardWebApp/GreetingCardWebApp/78_nikhil/version5_ce_78.aspx.designer.cs diff --git a/GreetingCardWebApp/GreetingCardWebApp/78_nikhil/version5_ce_78.aspx b/GreetingCardWebApp/GreetingCardWebApp/78_nikhil/version5_ce_78.aspx new file mode 100644 index 0000000..ba8c523 --- /dev/null +++ b/GreetingCardWebApp/GreetingCardWebApp/78_nikhil/version5_ce_78.aspx @@ -0,0 +1,48 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="version5_ce_78.aspx.cs" Inherits="GreetingCardWebApp._78_nikhil.version5_ce_78" %> + + + + + + + + +
+
+ + Choose a background color:
+

+ Choose a font:
+

+ Specify a numeric font size:
+

+ Choose a border style:
+

+

+ Enter the greeting text below:
+

+   + +
+ + +
  +


+ +
+ + +
+ + diff --git a/GreetingCardWebApp/GreetingCardWebApp/78_nikhil/version5_ce_78.aspx.cs b/GreetingCardWebApp/GreetingCardWebApp/78_nikhil/version5_ce_78.aspx.cs new file mode 100644 index 0000000..2fa1440 --- /dev/null +++ b/GreetingCardWebApp/GreetingCardWebApp/78_nikhil/version5_ce_78.aspx.cs @@ -0,0 +1,103 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; +using System.Drawing; +using System.Drawing.Text; +using System.ComponentModel; + +namespace GreetingCardWebApp._78_nikhil +{ + public partial class version5_ce_78 : System.Web.UI.Page + { + private string backcolor, fontname, borderstyle, greetingtext; + private Int32 fontsize; + protected void cmdSave_Click(object sender, EventArgs e) + { + backcolor = lstBackColor.SelectedItem.Text; + fontname = lstFontName.SelectedItem.Text; + fontsize = Int32.Parse(txtFontSize.Text); + borderstyle = lstBorder.SelectedItem.Text; + greetingtext = txtGreeting.Text; + + } + protected void Page_Load(object sender, EventArgs e) + { + InstalledFontCollection fonts = new InstalledFontCollection(); + if (!this.IsPostBack) + { + + // Set color options. + string[] colorArray = Enum.GetNames(typeof(KnownColor)); + lstBackColor.DataSource = colorArray; + lstBackColor.DataBind(); + // Set font options. + foreach (FontFamily family in fonts.Families) + { + lstFontName.Items.Add(family.Name); + } + + // Set border style options + string[] borderStyleArray = Enum.GetNames(typeof(BorderStyle)); + lstBorder.DataSource = borderStyleArray; + lstBorder.DataBind(); + // Select the first border option. + lstBorder.SelectedIndex = 0; + // Set the picture. + imgDefault.ImageUrl = "default.jpg"; + } + else + { + backcolor = (string)ViewState["backcolor"]; + fontname = (string)ViewState["fontname"]; + fontsize = (Int32)ViewState["fontsize"]; + borderstyle = (string)ViewState["borderstyle"]; + greetingtext = (string)ViewState["greetingtext"]; + } + } + protected void Page_PreRender(object sender, EventArgs e) + { + ViewState["backcolor"] = backcolor; + ViewState["fontname"] = fontname; + ViewState["fontsize"] = fontsize; + ViewState["borderstyle"] = borderstyle; + ViewState["greetingtext"] = greetingtext; + + } + + protected void cmdUpdate_Click(object sender, EventArgs e) + { + pnlCard.BackColor = Color.FromName(backcolor); + + // Update the font. + lblGreeting.Font.Name = fontname; + if (Int32.Parse(txtFontSize.Text) > 0) + { + lblGreeting.Font.Size = + FontUnit.Point(fontsize); + } + // Update the border style. This requires two conversion steps. + // First, the value of the list item is converted from a string + // into an integer. Next, the integer is converted to a value in + // the BorderStyle enumeration. + // Find the appropriate TypeConverter for the BorderStyle enumeration. + TypeConverter converter = + TypeDescriptor.GetConverter(typeof(BorderStyle)); + // Update the border style using the value from the converter. + pnlCard.BorderStyle = (BorderStyle)converter.ConvertFromString(borderstyle); + // Update the picture. + if (chkPicture.Checked) + { + imgDefault.Visible = true; + } + else + { + imgDefault.Visible = false; + } + // Set the text. + lblGreeting.Text = greetingtext; + } + } +} \ No newline at end of file diff --git a/GreetingCardWebApp/GreetingCardWebApp/78_nikhil/version5_ce_78.aspx.designer.cs b/GreetingCardWebApp/GreetingCardWebApp/78_nikhil/version5_ce_78.aspx.designer.cs new file mode 100644 index 0000000..1be6fff --- /dev/null +++ b/GreetingCardWebApp/GreetingCardWebApp/78_nikhil/version5_ce_78.aspx.designer.cs @@ -0,0 +1,123 @@ +//------------------------------------------------------------------------------ +// +// 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 GreetingCardWebApp._78_nikhil { + + + public partial class version5_ce_78 { + + /// + /// 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; + + /// + /// lstBackColor control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.DropDownList lstBackColor; + + /// + /// lstFontName control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.DropDownList lstFontName; + + /// + /// txtFontSize control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.TextBox txtFontSize; + + /// + /// lstBorder control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.RadioButtonList lstBorder; + + /// + /// chkPicture control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.CheckBox chkPicture; + + /// + /// txtGreeting control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.TextBox txtGreeting; + + /// + /// cmdSave control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Button cmdSave; + + /// + /// cmdUpdate control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Button cmdUpdate; + + /// + /// pnlCard control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Panel pnlCard; + + /// + /// lblGreeting control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Label lblGreeting; + + /// + /// imgDefault control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Image imgDefault; + } +} From e781372877309f3ef5598647bfa7280082803821 Mon Sep 17 00:00:00 2001 From: nikhil-ddu Date: Tue, 13 Sep 2016 21:48:35 +0530 Subject: [PATCH 6/9] version6 using cross page posting is completed --- .../78_nikhil/version61_ce_78.aspx | 34 ++++++++ .../78_nikhil/version61_ce_78.aspx.cs | 40 +++++++++ .../version61_ce_78.aspx.designer.cs | 87 +++++++++++++++++++ .../78_nikhil/version62_ce_78.aspx | 26 ++++++ .../78_nikhil/version62_ce_78.aspx.cs | 69 +++++++++++++++ .../version62_ce_78.aspx.designer.cs | 51 +++++++++++ 6 files changed, 307 insertions(+) create mode 100644 GreetingCardWebApp/GreetingCardWebApp/78_nikhil/version61_ce_78.aspx create mode 100644 GreetingCardWebApp/GreetingCardWebApp/78_nikhil/version61_ce_78.aspx.cs create mode 100644 GreetingCardWebApp/GreetingCardWebApp/78_nikhil/version61_ce_78.aspx.designer.cs create mode 100644 GreetingCardWebApp/GreetingCardWebApp/78_nikhil/version62_ce_78.aspx create mode 100644 GreetingCardWebApp/GreetingCardWebApp/78_nikhil/version62_ce_78.aspx.cs create mode 100644 GreetingCardWebApp/GreetingCardWebApp/78_nikhil/version62_ce_78.aspx.designer.cs diff --git a/GreetingCardWebApp/GreetingCardWebApp/78_nikhil/version61_ce_78.aspx b/GreetingCardWebApp/GreetingCardWebApp/78_nikhil/version61_ce_78.aspx new file mode 100644 index 0000000..149f04a --- /dev/null +++ b/GreetingCardWebApp/GreetingCardWebApp/78_nikhil/version61_ce_78.aspx @@ -0,0 +1,34 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="version61_ce_78.aspx.cs" Inherits="GreetingCardWebApp._78_nikhil.version61_ce_78" %> + + + + + + + + +
+
+ + Choose a background color:
+

+ Choose a font:
+

+ Specify a numeric font size:
+

+ Choose a border style:
+

+

+ Enter the greeting text below:
+

+ + +
+
+ + diff --git a/GreetingCardWebApp/GreetingCardWebApp/78_nikhil/version61_ce_78.aspx.cs b/GreetingCardWebApp/GreetingCardWebApp/78_nikhil/version61_ce_78.aspx.cs new file mode 100644 index 0000000..5fbdcf1 --- /dev/null +++ b/GreetingCardWebApp/GreetingCardWebApp/78_nikhil/version61_ce_78.aspx.cs @@ -0,0 +1,40 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; +using System.Drawing; +using System.Drawing.Text; +using System.ComponentModel; +namespace GreetingCardWebApp._78_nikhil +{ + public partial class version61_ce_78 : System.Web.UI.Page + { + protected void Page_Load(object sender, EventArgs e) + { + InstalledFontCollection fonts = new InstalledFontCollection(); + if (!this.IsPostBack) + { + // Set color options. + string[] colorArray = Enum.GetNames(typeof(KnownColor)); + lstBackColor.DataSource = colorArray; + lstBackColor.DataBind(); + // Set font options. + foreach (FontFamily family in fonts.Families) + { + lstFontName.Items.Add(family.Name); + } + + // Set border style options + string[] borderStyleArray = Enum.GetNames(typeof(BorderStyle)); + lstBorder.DataSource = borderStyleArray; + lstBorder.DataBind(); + // Select the first border option. + lstBorder.SelectedIndex = 0; + // Set the picture. + + } + } + } +} \ No newline at end of file diff --git a/GreetingCardWebApp/GreetingCardWebApp/78_nikhil/version61_ce_78.aspx.designer.cs b/GreetingCardWebApp/GreetingCardWebApp/78_nikhil/version61_ce_78.aspx.designer.cs new file mode 100644 index 0000000..a303249 --- /dev/null +++ b/GreetingCardWebApp/GreetingCardWebApp/78_nikhil/version61_ce_78.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 GreetingCardWebApp._78_nikhil { + + + public partial class version61_ce_78 { + + /// + /// 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; + + /// + /// lstBackColor control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.DropDownList lstBackColor; + + /// + /// lstFontName control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.DropDownList lstFontName; + + /// + /// txtFontSize control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.TextBox txtFontSize; + + /// + /// lstBorder control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.RadioButtonList lstBorder; + + /// + /// chkPicture control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.CheckBox chkPicture; + + /// + /// txtGreeting control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.TextBox txtGreeting; + + /// + /// cmdUpdate control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Button cmdUpdate; + } +} diff --git a/GreetingCardWebApp/GreetingCardWebApp/78_nikhil/version62_ce_78.aspx b/GreetingCardWebApp/GreetingCardWebApp/78_nikhil/version62_ce_78.aspx new file mode 100644 index 0000000..a507b2f --- /dev/null +++ b/GreetingCardWebApp/GreetingCardWebApp/78_nikhil/version62_ce_78.aspx @@ -0,0 +1,26 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="version62_ce_78.aspx.cs" Inherits="GreetingCardWebApp._78_nikhil.version62_ce_78" %> + + + + + + + + +
+
+ + +
  +


+ +
+ +
+
+ + diff --git a/GreetingCardWebApp/GreetingCardWebApp/78_nikhil/version62_ce_78.aspx.cs b/GreetingCardWebApp/GreetingCardWebApp/78_nikhil/version62_ce_78.aspx.cs new file mode 100644 index 0000000..e19c0ce --- /dev/null +++ b/GreetingCardWebApp/GreetingCardWebApp/78_nikhil/version62_ce_78.aspx.cs @@ -0,0 +1,69 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; +using System.Drawing; +using System.Drawing.Text; +using System.ComponentModel; + +namespace GreetingCardWebApp._78_nikhil +{ + public partial class version62_ce_78 : System.Web.UI.Page + { + protected void Page_Load(object sender, EventArgs e) + { + TextBox t1, t2; + RadioButtonList r1; + DropDownList d1, d2; + CheckBox c1; + // if (PreviousPage != null && PreviousPage.IsCrossPagePostBack) + { + d1 = (DropDownList)PreviousPage.FindControl("lstBackColor"); + + d2 = (DropDownList)PreviousPage.FindControl("lstFontName"); + t1 = (TextBox)PreviousPage.FindControl("txtFontSize"); + + t2 = (TextBox)PreviousPage.FindControl("txtGreeting"); + r1 = (RadioButtonList)PreviousPage.FindControl("lstBorder"); + c1 = (CheckBox)PreviousPage.FindControl("chkPicture"); + + + imgDefault.ImageUrl = "default.jpg"; + pnlCard.BackColor = Color.FromName(d1.SelectedItem.Text); + + // Update the font. + lblGreeting.Font.Name = d2.SelectedItem.Text; + if (Int32.Parse(t1.Text) > 0) + { + lblGreeting.Font.Size = + FontUnit.Point(Int32.Parse(t1.Text)); + } + // Update the border style. This requires two conversion steps. + // First, the value of the list item is converted from a string + // into an integer. Next, the integer is converted to a value in + // the BorderStyle enumeration. + // Find the appropriate TypeConverter for the BorderStyle enumeration. + TypeConverter converter = + TypeDescriptor.GetConverter(typeof(BorderStyle)); + // Update the border style using the value from the converter. + pnlCard.BorderStyle = (BorderStyle)converter.ConvertFromString( + r1.SelectedItem.Text); + // Update the picture. + if (c1.Checked) + { + imgDefault.Visible = true; + } + else + { + imgDefault.Visible = false; + } + // Set the text. + lblGreeting.Text = t2.Text; + + + } + } + } +} \ No newline at end of file diff --git a/GreetingCardWebApp/GreetingCardWebApp/78_nikhil/version62_ce_78.aspx.designer.cs b/GreetingCardWebApp/GreetingCardWebApp/78_nikhil/version62_ce_78.aspx.designer.cs new file mode 100644 index 0000000..09d6f1a --- /dev/null +++ b/GreetingCardWebApp/GreetingCardWebApp/78_nikhil/version62_ce_78.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 GreetingCardWebApp._78_nikhil { + + + public partial class version62_ce_78 { + + /// + /// 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; + + /// + /// pnlCard control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Panel pnlCard; + + /// + /// lblGreeting control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Label lblGreeting; + + /// + /// imgDefault control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Image imgDefault; + } +} From 2a24792758af36577c19a4d58ca105c0f16128ec Mon Sep 17 00:00:00 2001 From: nikhil-ddu Date: Tue, 13 Sep 2016 21:56:30 +0530 Subject: [PATCH 7/9] version7 using query string is completed --- .../78_nikhil/version71_ce_78.aspx | 35 ++++++++ .../78_nikhil/version71_ce_78.aspx.cs | 53 +++++++++++ .../version71_ce_78.aspx.designer.cs | 87 +++++++++++++++++++ .../78_nikhil/version72_ce_78.aspx | 25 ++++++ .../78_nikhil/version72_ce_78.aspx.cs | 60 +++++++++++++ .../version72_ce_78.aspx.designer.cs | 51 +++++++++++ 6 files changed, 311 insertions(+) create mode 100644 GreetingCardWebApp/GreetingCardWebApp/78_nikhil/version71_ce_78.aspx create mode 100644 GreetingCardWebApp/GreetingCardWebApp/78_nikhil/version71_ce_78.aspx.cs create mode 100644 GreetingCardWebApp/GreetingCardWebApp/78_nikhil/version71_ce_78.aspx.designer.cs create mode 100644 GreetingCardWebApp/GreetingCardWebApp/78_nikhil/version72_ce_78.aspx create mode 100644 GreetingCardWebApp/GreetingCardWebApp/78_nikhil/version72_ce_78.aspx.cs create mode 100644 GreetingCardWebApp/GreetingCardWebApp/78_nikhil/version72_ce_78.aspx.designer.cs diff --git a/GreetingCardWebApp/GreetingCardWebApp/78_nikhil/version71_ce_78.aspx b/GreetingCardWebApp/GreetingCardWebApp/78_nikhil/version71_ce_78.aspx new file mode 100644 index 0000000..f8d7b87 --- /dev/null +++ b/GreetingCardWebApp/GreetingCardWebApp/78_nikhil/version71_ce_78.aspx @@ -0,0 +1,35 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="version71_ce_78.aspx.cs" Inherits="GreetingCardWebApp._78_nikhil.version71_ce_78" %> + + + + + + + + +
+
+ + Choose a background color:
+

+ Choose a font:
+

+ Specify a numeric font size:
+

+ Choose a border style:
+

+

+ Enter the greeting text below:
+

+ + +
+
+ + diff --git a/GreetingCardWebApp/GreetingCardWebApp/78_nikhil/version71_ce_78.aspx.cs b/GreetingCardWebApp/GreetingCardWebApp/78_nikhil/version71_ce_78.aspx.cs new file mode 100644 index 0000000..0222310 --- /dev/null +++ b/GreetingCardWebApp/GreetingCardWebApp/78_nikhil/version71_ce_78.aspx.cs @@ -0,0 +1,53 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; +using System.Drawing; +using System.Drawing.Text; +using System.ComponentModel; + +namespace GreetingCardWebApp._78_nikhil +{ + public partial class version71_ce_78 : System.Web.UI.Page + { + protected void Page_Load(object sender, EventArgs e) + { + InstalledFontCollection fonts = new InstalledFontCollection(); + if (!this.IsPostBack) + { + // Set color options. + string[] colorArray = Enum.GetNames(typeof(KnownColor)); + lstBackColor.DataSource = colorArray; + lstBackColor.DataBind(); + // Set font options. + foreach (FontFamily family in fonts.Families) + { + lstFontName.Items.Add(family.Name); + } + + // Set border style options + string[] borderStyleArray = Enum.GetNames(typeof(BorderStyle)); + lstBorder.DataSource = borderStyleArray; + lstBorder.DataBind(); + // Select the first border option. + lstBorder.SelectedIndex = 0; + // Set the picture. + + } + } + protected void cmdUpdate_Click(object sender, EventArgs e) + { + string s1, s2, s3, s4, s5; + bool s6; + s1 = lstBackColor.SelectedItem.Text; + s2 = lstFontName.SelectedItem.Text; + s3 = lstBorder.SelectedItem.Text; + s4 = txtFontSize.Text; + s5 = txtGreeting.Text; + s6 = chkPicture.Checked; + Response.Redirect("~/78_nikhil/version72_ce_78.aspx?val1=" + s1 + "&val2=" + s2 + "&val3=" + s3 + "&val4=" + s4 + "&val5=" + s5 + "&val6=" + s6); + } + } +} \ No newline at end of file diff --git a/GreetingCardWebApp/GreetingCardWebApp/78_nikhil/version71_ce_78.aspx.designer.cs b/GreetingCardWebApp/GreetingCardWebApp/78_nikhil/version71_ce_78.aspx.designer.cs new file mode 100644 index 0000000..e2357e7 --- /dev/null +++ b/GreetingCardWebApp/GreetingCardWebApp/78_nikhil/version71_ce_78.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 GreetingCardWebApp._78_nikhil { + + + public partial class version71_ce_78 { + + /// + /// 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; + + /// + /// lstBackColor control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.DropDownList lstBackColor; + + /// + /// lstFontName control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.DropDownList lstFontName; + + /// + /// txtFontSize control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.TextBox txtFontSize; + + /// + /// lstBorder control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.RadioButtonList lstBorder; + + /// + /// chkPicture control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.CheckBox chkPicture; + + /// + /// txtGreeting control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.TextBox txtGreeting; + + /// + /// cmdUpdate control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Button cmdUpdate; + } +} diff --git a/GreetingCardWebApp/GreetingCardWebApp/78_nikhil/version72_ce_78.aspx b/GreetingCardWebApp/GreetingCardWebApp/78_nikhil/version72_ce_78.aspx new file mode 100644 index 0000000..2cce040 --- /dev/null +++ b/GreetingCardWebApp/GreetingCardWebApp/78_nikhil/version72_ce_78.aspx @@ -0,0 +1,25 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="version72_ce_78.aspx.cs" Inherits="GreetingCardWebApp._78_nikhil.version72_ce_78" %> + + + + + + + + +
+
+ + +
  +


+ +
+
+
+ + diff --git a/GreetingCardWebApp/GreetingCardWebApp/78_nikhil/version72_ce_78.aspx.cs b/GreetingCardWebApp/GreetingCardWebApp/78_nikhil/version72_ce_78.aspx.cs new file mode 100644 index 0000000..eae4d80 --- /dev/null +++ b/GreetingCardWebApp/GreetingCardWebApp/78_nikhil/version72_ce_78.aspx.cs @@ -0,0 +1,60 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; +using System.Drawing; +using System.Drawing.Text; +using System.ComponentModel; + +namespace GreetingCardWebApp._78_nikhil +{ + public partial class version72_ce_78 : System.Web.UI.Page + { + string s1, s2, s3, s4, s5, s6; + protected void Page_Load(object sender, EventArgs e) + { + s1 = Request.QueryString["val1"].ToString(); + + s2 = Request.QueryString["val2"].ToString(); + + s3 = Request.QueryString["val3"].ToString(); + + s4 = Request.QueryString["val4"].ToString(); + + s5 = Request.QueryString["val5"].ToString(); + s6 = Request.QueryString["val6"].ToString(); + pnlCard.BackColor = Color.FromName(s1); + imgDefault.ImageUrl = "default.jpg"; + // Update the font. + lblGreeting.Font.Name = s2; + if (Int32.Parse(s4) > 0) + { + lblGreeting.Font.Size = + FontUnit.Point(Int32.Parse(s4)); + } + // Update the border style. This requires two conversion steps. + // First, the value of the list item is converted from a string + // into an integer. Next, the integer is converted to a value in + // the BorderStyle enumeration. + // Find the appropriate TypeConverter for the BorderStyle enumeration. + TypeConverter converter = + TypeDescriptor.GetConverter(typeof(BorderStyle)); + // Update the border style using the value from the converter. + pnlCard.BorderStyle = (BorderStyle)converter.ConvertFromString( + s3); + // Update the picture. + if (s6 == "True") + { + imgDefault.Visible = true; + } + else + { + imgDefault.Visible = false; + } + // Set the text. + lblGreeting.Text = s5; + } + } +} \ No newline at end of file diff --git a/GreetingCardWebApp/GreetingCardWebApp/78_nikhil/version72_ce_78.aspx.designer.cs b/GreetingCardWebApp/GreetingCardWebApp/78_nikhil/version72_ce_78.aspx.designer.cs new file mode 100644 index 0000000..5435f03 --- /dev/null +++ b/GreetingCardWebApp/GreetingCardWebApp/78_nikhil/version72_ce_78.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 GreetingCardWebApp._78_nikhil { + + + public partial class version72_ce_78 { + + /// + /// 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; + + /// + /// pnlCard control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Panel pnlCard; + + /// + /// lblGreeting control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Label lblGreeting; + + /// + /// imgDefault control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Image imgDefault; + } +} From 444ba6087db769d76bdd54362e4d4e55f5ba4189 Mon Sep 17 00:00:00 2001 From: nikhil-ddu Date: Tue, 13 Sep 2016 22:04:47 +0530 Subject: [PATCH 8/9] version8 using cookies is completed --- .../78_nikhil/version81_ce_78.aspx | 34 ++++++++ .../78_nikhil/version81_ce_78.aspx.cs | 60 +++++++++++++ .../version81_ce_78.aspx.designer.cs | 87 +++++++++++++++++++ .../78_nikhil/version82_ce_78.aspx | 25 ++++++ .../78_nikhil/version82_ce_78.aspx.cs | 61 +++++++++++++ .../version82_ce_78.aspx.designer.cs | 51 +++++++++++ 6 files changed, 318 insertions(+) create mode 100644 GreetingCardWebApp/GreetingCardWebApp/78_nikhil/version81_ce_78.aspx create mode 100644 GreetingCardWebApp/GreetingCardWebApp/78_nikhil/version81_ce_78.aspx.cs create mode 100644 GreetingCardWebApp/GreetingCardWebApp/78_nikhil/version81_ce_78.aspx.designer.cs create mode 100644 GreetingCardWebApp/GreetingCardWebApp/78_nikhil/version82_ce_78.aspx create mode 100644 GreetingCardWebApp/GreetingCardWebApp/78_nikhil/version82_ce_78.aspx.cs create mode 100644 GreetingCardWebApp/GreetingCardWebApp/78_nikhil/version82_ce_78.aspx.designer.cs diff --git a/GreetingCardWebApp/GreetingCardWebApp/78_nikhil/version81_ce_78.aspx b/GreetingCardWebApp/GreetingCardWebApp/78_nikhil/version81_ce_78.aspx new file mode 100644 index 0000000..1b4bf09 --- /dev/null +++ b/GreetingCardWebApp/GreetingCardWebApp/78_nikhil/version81_ce_78.aspx @@ -0,0 +1,34 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="version81_ce_78.aspx.cs" Inherits="GreetingCardWebApp._78_nikhil.version81_ce_78" %> + + + + + + + + +
+
+ + Choose a background color:
+

+ Choose a font:
+

+ Specify a numeric font size:
+

+ Choose a border style:
+

+

+ Enter the greeting text below:
+

+ +
+
+ + diff --git a/GreetingCardWebApp/GreetingCardWebApp/78_nikhil/version81_ce_78.aspx.cs b/GreetingCardWebApp/GreetingCardWebApp/78_nikhil/version81_ce_78.aspx.cs new file mode 100644 index 0000000..adddb49 --- /dev/null +++ b/GreetingCardWebApp/GreetingCardWebApp/78_nikhil/version81_ce_78.aspx.cs @@ -0,0 +1,60 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; + +using System.Drawing; +using System.Drawing.Text; +using System.ComponentModel; + + +namespace GreetingCardWebApp._78_nikhil +{ + public partial class version81_ce_78 : System.Web.UI.Page + { + protected void Page_Load(object sender, EventArgs e) + { + InstalledFontCollection fonts = new InstalledFontCollection(); + if (!this.IsPostBack) + { + // Set color options. + string[] colorArray = Enum.GetNames(typeof(KnownColor)); + lstBackColor.DataSource = colorArray; + lstBackColor.DataBind(); + // Set font options. + foreach (FontFamily family in fonts.Families) + { + lstFontName.Items.Add(family.Name); + } + + // Set border style options + string[] borderStyleArray = Enum.GetNames(typeof(BorderStyle)); + lstBorder.DataSource = borderStyleArray; + lstBorder.DataBind(); + // Select the first border option. + lstBorder.SelectedIndex = 0; + // Set the picture. + + } + } + protected void cmdUpdate_Click(object sender, EventArgs e) + { + HttpCookie Cookie = Request.Cookies["Attributes"]; + if (Cookie == null) + { + Cookie = new HttpCookie("Attributes"); + } + Cookie["backcolor"] = lstBackColor.SelectedItem.Text; + Cookie["fontname"] = lstFontName.SelectedItem.Text; + Cookie["fontsize"] = txtFontSize.Text; + Cookie["borderstyle"] = lstBorder.SelectedItem.Text; + Cookie["greetingtext"] = txtGreeting.Text; + Cookie["chkpic"] = chkPicture.Checked.ToString(); + Cookie.Expires = DateTime.Now.AddYears(1); + Response.Cookies.Add(Cookie); + Response.Redirect("~/78_nikhil/version82_ce_78.aspx"); + } + } +} \ No newline at end of file diff --git a/GreetingCardWebApp/GreetingCardWebApp/78_nikhil/version81_ce_78.aspx.designer.cs b/GreetingCardWebApp/GreetingCardWebApp/78_nikhil/version81_ce_78.aspx.designer.cs new file mode 100644 index 0000000..3f2cb9b --- /dev/null +++ b/GreetingCardWebApp/GreetingCardWebApp/78_nikhil/version81_ce_78.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 GreetingCardWebApp._78_nikhil { + + + public partial class version81_ce_78 { + + /// + /// 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; + + /// + /// lstBackColor control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.DropDownList lstBackColor; + + /// + /// lstFontName control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.DropDownList lstFontName; + + /// + /// txtFontSize control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.TextBox txtFontSize; + + /// + /// lstBorder control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.RadioButtonList lstBorder; + + /// + /// chkPicture control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.CheckBox chkPicture; + + /// + /// txtGreeting control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.TextBox txtGreeting; + + /// + /// cmdUpdate control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Button cmdUpdate; + } +} diff --git a/GreetingCardWebApp/GreetingCardWebApp/78_nikhil/version82_ce_78.aspx b/GreetingCardWebApp/GreetingCardWebApp/78_nikhil/version82_ce_78.aspx new file mode 100644 index 0000000..edc141b --- /dev/null +++ b/GreetingCardWebApp/GreetingCardWebApp/78_nikhil/version82_ce_78.aspx @@ -0,0 +1,25 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="version82_ce_78.aspx.cs" Inherits="GreetingCardWebApp._78_nikhil.version82_ce_78" %> + + + + + + + + +
+
+ + +
  +


+ +
+
+
+ + diff --git a/GreetingCardWebApp/GreetingCardWebApp/78_nikhil/version82_ce_78.aspx.cs b/GreetingCardWebApp/GreetingCardWebApp/78_nikhil/version82_ce_78.aspx.cs new file mode 100644 index 0000000..3a8bee8 --- /dev/null +++ b/GreetingCardWebApp/GreetingCardWebApp/78_nikhil/version82_ce_78.aspx.cs @@ -0,0 +1,61 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; + +using System.Drawing; +using System.Drawing.Text; +using System.ComponentModel; + + +namespace GreetingCardWebApp._78_nikhil +{ + public partial class version82_ce_78 : System.Web.UI.Page + { + protected void Page_Load(object sender, EventArgs e) + { + HttpCookie Cookie = Request.Cookies["Attributes"]; + if (Cookie == null) + { + Response.Redirect("GreetingCardMaker_version8.aspx"); + } + else + { + imgDefault.ImageUrl = "default.jpg"; + pnlCard.BackColor = Color.FromName(Cookie["backcolor"]); + + // Update the font. + lblGreeting.Font.Name = Cookie["fontname"]; + if (Int32.Parse(Cookie["fontsize"]) > 0) + { + lblGreeting.Font.Size = + FontUnit.Point(Int32.Parse(Cookie["fontsize"])); + } + // Update the border style. This requires two conversion steps. + // First, the value of the list item is converted from a string + // into an integer. Next, the integer is converted to a value in + // the BorderStyle enumeration. + // Find the appropriate TypeConverter for the BorderStyle enumeration. + TypeConverter converter = + TypeDescriptor.GetConverter(typeof(BorderStyle)); + // Update the border style using the value from the converter. + pnlCard.BorderStyle = (BorderStyle)converter.ConvertFromString( + Cookie["borderstyle"]); + // Update the picture. + if (Cookie["chkpic"] == "True") + { + imgDefault.Visible = true; + } + else + { + imgDefault.Visible = false; + } + // Set the text. + lblGreeting.Text = Cookie["greetingtext"]; + + } + } + } +} \ No newline at end of file diff --git a/GreetingCardWebApp/GreetingCardWebApp/78_nikhil/version82_ce_78.aspx.designer.cs b/GreetingCardWebApp/GreetingCardWebApp/78_nikhil/version82_ce_78.aspx.designer.cs new file mode 100644 index 0000000..00a074a --- /dev/null +++ b/GreetingCardWebApp/GreetingCardWebApp/78_nikhil/version82_ce_78.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 GreetingCardWebApp._78_nikhil { + + + public partial class version82_ce_78 { + + /// + /// 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; + + /// + /// pnlCard control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Panel pnlCard; + + /// + /// lblGreeting control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Label lblGreeting; + + /// + /// imgDefault control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Image imgDefault; + } +} From 0cf010178967cf18369582aae8e1342c46f0bd86 Mon Sep 17 00:00:00 2001 From: nikhil-ddu Date: Tue, 13 Sep 2016 22:11:35 +0530 Subject: [PATCH 9/9] version9 using sessions is completed!! --- .../78_nikhil/version91_ce_78.aspx | 34 ++++++++ .../78_nikhil/version91_ce_78.aspx.cs | 53 +++++++++++ .../version91_ce_78.aspx.designer.cs | 87 +++++++++++++++++++ .../78_nikhil/version92_ce_78.aspx | 25 ++++++ .../78_nikhil/version92_ce_78.aspx.cs | 53 +++++++++++ .../version92_ce_78.aspx.designer.cs | 51 +++++++++++ 6 files changed, 303 insertions(+) create mode 100644 GreetingCardWebApp/GreetingCardWebApp/78_nikhil/version91_ce_78.aspx create mode 100644 GreetingCardWebApp/GreetingCardWebApp/78_nikhil/version91_ce_78.aspx.cs create mode 100644 GreetingCardWebApp/GreetingCardWebApp/78_nikhil/version91_ce_78.aspx.designer.cs create mode 100644 GreetingCardWebApp/GreetingCardWebApp/78_nikhil/version92_ce_78.aspx create mode 100644 GreetingCardWebApp/GreetingCardWebApp/78_nikhil/version92_ce_78.aspx.cs create mode 100644 GreetingCardWebApp/GreetingCardWebApp/78_nikhil/version92_ce_78.aspx.designer.cs diff --git a/GreetingCardWebApp/GreetingCardWebApp/78_nikhil/version91_ce_78.aspx b/GreetingCardWebApp/GreetingCardWebApp/78_nikhil/version91_ce_78.aspx new file mode 100644 index 0000000..a2bd66e --- /dev/null +++ b/GreetingCardWebApp/GreetingCardWebApp/78_nikhil/version91_ce_78.aspx @@ -0,0 +1,34 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="version91_ce_78.aspx.cs" Inherits="GreetingCardWebApp._78_nikhil.version91_ce_78" %> + + + + + + + + +
+
+ + Choose a background color:
+

+ Choose a font:
+

+ Specify a numeric font size:
+

+ Choose a border style:
+

+

+ Enter the greeting text below:
+

+ +
+
+ + diff --git a/GreetingCardWebApp/GreetingCardWebApp/78_nikhil/version91_ce_78.aspx.cs b/GreetingCardWebApp/GreetingCardWebApp/78_nikhil/version91_ce_78.aspx.cs new file mode 100644 index 0000000..13395cc --- /dev/null +++ b/GreetingCardWebApp/GreetingCardWebApp/78_nikhil/version91_ce_78.aspx.cs @@ -0,0 +1,53 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; +using System.Drawing; +using System.Drawing.Text; +using System.ComponentModel; +using System.Net; + +namespace GreetingCardWebApp._78_nikhil +{ + public partial class version91_ce_78 : System.Web.UI.Page + { + protected void Page_Load(object sender, EventArgs e) + { + InstalledFontCollection fonts = new InstalledFontCollection(); + if (!this.IsPostBack) + { + // Set color options. + string[] colorArray = Enum.GetNames(typeof(KnownColor)); + lstBackColor.DataSource = colorArray; + lstBackColor.DataBind(); + // Set font options. + foreach (FontFamily family in fonts.Families) + { + lstFontName.Items.Add(family.Name); + } + + // Set border style options + string[] borderStyleArray = Enum.GetNames(typeof(BorderStyle)); + lstBorder.DataSource = borderStyleArray; + lstBorder.DataBind(); + // Select the first border option. + lstBorder.SelectedIndex = 0; + // Set the picture. + + } + } + protected void cmdUpdate_Click(object sender, EventArgs e) + { + Session["backcolor"] = lstBackColor.SelectedItem.Text; + Session["fontname"] = lstFontName.SelectedItem.Text; + Session["fontsize"] = txtFontSize.Text; + Session["borderstyle"] = lstBorder.SelectedItem.Text; + Session["greetingtext"] = txtGreeting.Text; + Session["chkpic"] = chkPicture.Checked; + // if(!Session.IsNewSession) + Response.Redirect("~/78_nikhil/version92_ce_78.aspx"); + } + } +} \ No newline at end of file diff --git a/GreetingCardWebApp/GreetingCardWebApp/78_nikhil/version91_ce_78.aspx.designer.cs b/GreetingCardWebApp/GreetingCardWebApp/78_nikhil/version91_ce_78.aspx.designer.cs new file mode 100644 index 0000000..d0b53c6 --- /dev/null +++ b/GreetingCardWebApp/GreetingCardWebApp/78_nikhil/version91_ce_78.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 GreetingCardWebApp._78_nikhil { + + + public partial class version91_ce_78 { + + /// + /// 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; + + /// + /// lstBackColor control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.DropDownList lstBackColor; + + /// + /// lstFontName control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.DropDownList lstFontName; + + /// + /// txtFontSize control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.TextBox txtFontSize; + + /// + /// lstBorder control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.RadioButtonList lstBorder; + + /// + /// chkPicture control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.CheckBox chkPicture; + + /// + /// txtGreeting control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.TextBox txtGreeting; + + /// + /// cmdUpdate control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Button cmdUpdate; + } +} diff --git a/GreetingCardWebApp/GreetingCardWebApp/78_nikhil/version92_ce_78.aspx b/GreetingCardWebApp/GreetingCardWebApp/78_nikhil/version92_ce_78.aspx new file mode 100644 index 0000000..19d7e7a --- /dev/null +++ b/GreetingCardWebApp/GreetingCardWebApp/78_nikhil/version92_ce_78.aspx @@ -0,0 +1,25 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="version92_ce_78.aspx.cs" Inherits="GreetingCardWebApp._78_nikhil.version92_ce_78" %> + + + + + + + + +
+
+ + +
  +


+ +
+
+
+ + diff --git a/GreetingCardWebApp/GreetingCardWebApp/78_nikhil/version92_ce_78.aspx.cs b/GreetingCardWebApp/GreetingCardWebApp/78_nikhil/version92_ce_78.aspx.cs new file mode 100644 index 0000000..2de5b57 --- /dev/null +++ b/GreetingCardWebApp/GreetingCardWebApp/78_nikhil/version92_ce_78.aspx.cs @@ -0,0 +1,53 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; +using System.Drawing; +using System.Drawing.Text; +using System.ComponentModel; +using System.Net; + +namespace GreetingCardWebApp._78_nikhil +{ + public partial class version92_ce_78 : System.Web.UI.Page + { + protected void Page_Load(object sender, EventArgs e) + { + imgDefault.ImageUrl = "default.jpg"; + pnlCard.BackColor = Color.FromName(Session["backcolor"].ToString()); + + // Update the font. + lblGreeting.Font.Name = Session["fontname"].ToString(); + if (Int32.Parse(Session["fontsize"].ToString()) > 0) + { + lblGreeting.Font.Size = + FontUnit.Point(Int32.Parse(Session["fontsize"].ToString())); + } + // Update the border style. This requires two conversion steps. + // First, the value of the list item is converted from a string + // into an integer. Next, the integer is converted to a value in + // the BorderStyle enumeration. + // Find the appropriate TypeConverter for the BorderStyle enumeration. + TypeConverter converter = + TypeDescriptor.GetConverter(typeof(BorderStyle)); + // Update the border style using the value from the converter. + pnlCard.BorderStyle = (BorderStyle)converter.ConvertFromString( + Session["borderstyle"].ToString()); + // Update the picture. + if (Session["chkpic"].ToString() == "True") + { + imgDefault.Visible = true; + } + else + { + imgDefault.Visible = false; + } + // Set the text. + lblGreeting.Text = Session["greetingtext"].ToString(); + + //Session.Abandon(); + } + } +} \ No newline at end of file diff --git a/GreetingCardWebApp/GreetingCardWebApp/78_nikhil/version92_ce_78.aspx.designer.cs b/GreetingCardWebApp/GreetingCardWebApp/78_nikhil/version92_ce_78.aspx.designer.cs new file mode 100644 index 0000000..36aa9b9 --- /dev/null +++ b/GreetingCardWebApp/GreetingCardWebApp/78_nikhil/version92_ce_78.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 GreetingCardWebApp._78_nikhil { + + + public partial class version92_ce_78 { + + /// + /// 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; + + /// + /// pnlCard control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Panel pnlCard; + + /// + /// lblGreeting control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Label lblGreeting; + + /// + /// imgDefault control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Image imgDefault; + } +}