From 359d59320f30f4e6d3ab26eb51f67cd86d8acf6d Mon Sep 17 00:00:00 2001 From: kriparson96 Date: Wed, 14 Sep 2016 22:17:10 +0530 Subject: [PATCH 1/4] v1-limited,v2-full features --- .../GreetingCardWebApp/krishna_76/default.jpg | Bin 0 -> 4364 bytes .../GreetingCardWebApp/krishna_76/v1_76.aspx | 46 +++++++ .../krishna_76/v1_76.aspx.cs | 87 +++++++++++++ .../krishna_76/v1_76.aspx.designer.cs | 114 ++++++++++++++++++ .../GreetingCardWebApp/krishna_76/v2_76.aspx | 45 +++++++ .../krishna_76/v2_76.aspx.cs | 70 +++++++++++ .../krishna_76/v2_76.aspx.designer.cs | 114 ++++++++++++++++++ 7 files changed, 476 insertions(+) create mode 100644 GreetingCardWebApp/GreetingCardWebApp/krishna_76/default.jpg create mode 100644 GreetingCardWebApp/GreetingCardWebApp/krishna_76/v1_76.aspx create mode 100644 GreetingCardWebApp/GreetingCardWebApp/krishna_76/v1_76.aspx.cs create mode 100644 GreetingCardWebApp/GreetingCardWebApp/krishna_76/v1_76.aspx.designer.cs create mode 100644 GreetingCardWebApp/GreetingCardWebApp/krishna_76/v2_76.aspx create mode 100644 GreetingCardWebApp/GreetingCardWebApp/krishna_76/v2_76.aspx.cs create mode 100644 GreetingCardWebApp/GreetingCardWebApp/krishna_76/v2_76.aspx.designer.cs diff --git a/GreetingCardWebApp/GreetingCardWebApp/krishna_76/default.jpg b/GreetingCardWebApp/GreetingCardWebApp/krishna_76/default.jpg new file mode 100644 index 0000000000000000000000000000000000000000..7347362b6526a6286781ee40889298d3eff6fe78 GIT binary patch literal 4364 zcmb7{WmFRY-^Dj-q%dHBQln#pFk&=J8Qon&-P-a$EPF^tqPHqt%R#rhdK@o9DX=!N=n8HH^!~-!Y zX-Oa{DJcax#XU;Ody-tNT$2B@ZaV>BVt_foA0G$?;DLeoVBl>Jfbnlf!hcQwUjzU= zd_p47KU0hffCt3K$HONg!o&Yh2#ALdAOI6mvxz7X(de<;c!VSs(sGC*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srGiz4Za+UxQ=Qd!t~NIDcpL z70u}_;Eq$HSH*xcr*59cpl`53ehKFe1JMt3h6Ei2^Am3})%TMax&?CTHf;oVibt(8 zo*8+95U-%thS&2@&!>-_*Ra!J+Wua$cb)xaTB4r1Lt&&)Q;5=wdkW5Mc#( z4OmtJ7~NIIYotxyB7>6ae!EhCQLCzo+K6EIAksY=S3#QW#~Q$7fViXxqf%bbfk7tI z6L(AUk0V15_Rw`vr@7K6XZFEu!$~L$a#dL82m*1b>q#Q1?%GS?`skzD4OhB`PfKmS zN^?zf-@94ra>h=m>jt@WMsI zi>yOH$HIeWTY)m#liQW_sapz>iTiv929qqfSba}BXBR7No;v(QIQyOt^Xu30{F9yX z%=s!7Lovq<-%;Rj5Sy+as9ooXe~v?-#?P$PL@JXDldyj8@?)-@x|IV(>~}iNOE>9+ zgtA`-Rl~Ltbeu_%amFUvM_S+7D``KcR@I}Q`k%~IdrI>WkiWVGeD>9xdAE~YVMcOi z+LbFeXWbL@(=4iZDtxh^^GuBGL0R{?rGG3O_r7sg*AW?oNxVr`SqT${aL1gkXH10g8Ae#U zKky?8;~5KI*E=~aBtfgL)AQ^jX&vyseO4K5(hcWFm0u|ql1#AyD-tmdJ;8*78;y$h zUrp2V)mFHwDgE2m>S0_>@nO+aB~hz93(qmc%B8$;Bz@g~w)bD}?{p^74QCox5t>dH QcfaHQMNA*a7IZuRe}J$LCIA2c literal 0 HcmV?d00001 diff --git a/GreetingCardWebApp/GreetingCardWebApp/krishna_76/v1_76.aspx b/GreetingCardWebApp/GreetingCardWebApp/krishna_76/v1_76.aspx new file mode 100644 index 0000000..9367938 --- /dev/null +++ b/GreetingCardWebApp/GreetingCardWebApp/krishna_76/v1_76.aspx @@ -0,0 +1,46 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="v1_76.aspx.cs" Inherits="GreetingCardWebApp.krishna_76.v1_76" %> + + + + + + + + +
+
+ + 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/krishna_76/v1_76.aspx.cs b/GreetingCardWebApp/GreetingCardWebApp/krishna_76/v1_76.aspx.cs new file mode 100644 index 0000000..871dd7f --- /dev/null +++ b/GreetingCardWebApp/GreetingCardWebApp/krishna_76/v1_76.aspx.cs @@ -0,0 +1,87 @@ +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.krishna_76 +{ + public partial class v1_76 : 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/krishna_76/v1_76.aspx.designer.cs b/GreetingCardWebApp/GreetingCardWebApp/krishna_76/v1_76.aspx.designer.cs new file mode 100644 index 0000000..75eaf98 --- /dev/null +++ b/GreetingCardWebApp/GreetingCardWebApp/krishna_76/v1_76.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.krishna_76 { + + + public partial class v1_76 { + + /// + /// 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; + } +} diff --git a/GreetingCardWebApp/GreetingCardWebApp/krishna_76/v2_76.aspx b/GreetingCardWebApp/GreetingCardWebApp/krishna_76/v2_76.aspx new file mode 100644 index 0000000..1dc9de6 --- /dev/null +++ b/GreetingCardWebApp/GreetingCardWebApp/krishna_76/v2_76.aspx @@ -0,0 +1,45 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="v2_76.aspx.cs" Inherits="GreetingCardWebApp.krishna_76.v2_76" %> + + + + + + + + +
+
+ + 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/krishna_76/v2_76.aspx.cs b/GreetingCardWebApp/GreetingCardWebApp/krishna_76/v2_76.aspx.cs new file mode 100644 index 0000000..de08660 --- /dev/null +++ b/GreetingCardWebApp/GreetingCardWebApp/krishna_76/v2_76.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.krishna_76 +{ + public partial class v2_76 : 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/krishna_76/v2_76.aspx.designer.cs b/GreetingCardWebApp/GreetingCardWebApp/krishna_76/v2_76.aspx.designer.cs new file mode 100644 index 0000000..9d9cf45 --- /dev/null +++ b/GreetingCardWebApp/GreetingCardWebApp/krishna_76/v2_76.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.krishna_76 { + + + public partial class v2_76 { + + /// + /// 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 153dd0cdbf56816c450002d837e41e512bcd2847 Mon Sep 17 00:00:00 2001 From: kriparson96 Date: Wed, 14 Sep 2016 22:38:02 +0530 Subject: [PATCH 2/4] v3-multiview v4-wizard --- .../GreetingCardWebApp/krishna_76/v3_76.aspx | 64 ++++++ .../krishna_76/v3_76.aspx.cs | 121 +++++++++++ .../krishna_76/v3_76.aspx.designer.cs | 195 ++++++++++++++++++ .../GreetingCardWebApp/krishna_76/v4_76.aspx | 56 +++++ .../krishna_76/v4_76.aspx.cs | 77 +++++++ .../krishna_76/v4_76.aspx.designer.cs | 123 +++++++++++ 6 files changed, 636 insertions(+) create mode 100644 GreetingCardWebApp/GreetingCardWebApp/krishna_76/v3_76.aspx create mode 100644 GreetingCardWebApp/GreetingCardWebApp/krishna_76/v3_76.aspx.cs create mode 100644 GreetingCardWebApp/GreetingCardWebApp/krishna_76/v3_76.aspx.designer.cs create mode 100644 GreetingCardWebApp/GreetingCardWebApp/krishna_76/v4_76.aspx create mode 100644 GreetingCardWebApp/GreetingCardWebApp/krishna_76/v4_76.aspx.cs create mode 100644 GreetingCardWebApp/GreetingCardWebApp/krishna_76/v4_76.aspx.designer.cs diff --git a/GreetingCardWebApp/GreetingCardWebApp/krishna_76/v3_76.aspx b/GreetingCardWebApp/GreetingCardWebApp/krishna_76/v3_76.aspx new file mode 100644 index 0000000..828712d --- /dev/null +++ b/GreetingCardWebApp/GreetingCardWebApp/krishna_76/v3_76.aspx @@ -0,0 +1,64 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="v3_76.aspx.cs" Inherits="GreetingCardWebApp.krishna_76.v3_76" %> + + + + + + + + +
+
+
  + + + 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/krishna_76/v3_76.aspx.cs b/GreetingCardWebApp/GreetingCardWebApp/krishna_76/v3_76.aspx.cs new file mode 100644 index 0000000..773998e --- /dev/null +++ b/GreetingCardWebApp/GreetingCardWebApp/krishna_76/v3_76.aspx.cs @@ -0,0 +1,121 @@ +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.krishna_76 +{ + public partial class v3_76 : 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/krishna_76/v3_76.aspx.designer.cs b/GreetingCardWebApp/GreetingCardWebApp/krishna_76/v3_76.aspx.designer.cs new file mode 100644 index 0000000..445d645 --- /dev/null +++ b/GreetingCardWebApp/GreetingCardWebApp/krishna_76/v3_76.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.krishna_76 { + + + public partial class v3_76 { + + /// + /// 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; + } +} diff --git a/GreetingCardWebApp/GreetingCardWebApp/krishna_76/v4_76.aspx b/GreetingCardWebApp/GreetingCardWebApp/krishna_76/v4_76.aspx new file mode 100644 index 0000000..107ae72 --- /dev/null +++ b/GreetingCardWebApp/GreetingCardWebApp/krishna_76/v4_76.aspx @@ -0,0 +1,56 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="v4_76.aspx.cs" Inherits="GreetingCardWebApp.krishna_76.v4_76" %> + + + + + + + + +
+
+ + + + 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/krishna_76/v4_76.aspx.cs b/GreetingCardWebApp/GreetingCardWebApp/krishna_76/v4_76.aspx.cs new file mode 100644 index 0000000..8bdc040 --- /dev/null +++ b/GreetingCardWebApp/GreetingCardWebApp/krishna_76/v4_76.aspx.cs @@ -0,0 +1,77 @@ +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.krishna_76 +{ + public partial class v4_76 : 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/krishna_76/v4_76.aspx.designer.cs b/GreetingCardWebApp/GreetingCardWebApp/krishna_76/v4_76.aspx.designer.cs new file mode 100644 index 0000000..f497dce --- /dev/null +++ b/GreetingCardWebApp/GreetingCardWebApp/krishna_76/v4_76.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.krishna_76 { + + + public partial class v4_76 { + + /// + /// 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 edff0ca83985ef744aa6de6df4adc4b934810770 Mon Sep 17 00:00:00 2001 From: kriparson96 Date: Wed, 14 Sep 2016 23:09:49 +0530 Subject: [PATCH 3/4] v5-viewstate,v6-session,v7-cookie,v8-querystring,v9-crosspage posting --- .../krishna_76/version6/default.jpg | Bin 0 -> 4364 bytes .../krishna_76/version6/v61_76.aspx | 34 +++++++ .../krishna_76/version6/v61_76.aspx.cs | 53 +++++++++++ .../version6/v61_76.aspx.designer.cs | 87 ++++++++++++++++++ .../krishna_76/version6/v62_76.aspx | 25 +++++ .../krishna_76/version6/v62_76.aspx.cs | 53 +++++++++++ .../version6/v62_76.aspx.designer.cs | 51 ++++++++++ .../krishna_76/version7/default.jpg | Bin 0 -> 4364 bytes .../krishna_76/version7/v71_76.aspx | 34 +++++++ .../krishna_76/version7/v71_76.aspx.cs | 56 +++++++++++ .../version7/v71_76.aspx.designer.cs | 87 ++++++++++++++++++ .../krishna_76/version7/v72_76.aspx | 25 +++++ .../krishna_76/version7/v72_76.aspx.cs | 57 ++++++++++++ .../version7/v72_76.aspx.designer.cs | 51 ++++++++++ .../krishna_76/version8/default.jpg | Bin 0 -> 4364 bytes .../krishna_76/version8/v81_76.aspx | 34 +++++++ .../krishna_76/version8/v81_76.aspx.cs | 53 +++++++++++ .../version8/v81_76.aspx.designer.cs | 87 ++++++++++++++++++ .../krishna_76/version8/v82_76.aspx | 26 ++++++ .../krishna_76/version8/v82_76.aspx.cs | 60 ++++++++++++ .../version8/v82_76.aspx.designer.cs | 51 ++++++++++ .../krishna_76/version9/default.jpg | Bin 0 -> 4364 bytes .../krishna_76/version9/v91_76.aspx | 33 +++++++ .../krishna_76/version9/v91_76.aspx.cs | 41 +++++++++ .../version9/v91_76.aspx.designer.cs | 87 ++++++++++++++++++ .../krishna_76/version9/v92_76.aspx | 25 +++++ .../krishna_76/version9/v92_76.aspx.cs | 69 ++++++++++++++ .../version9/v92_76.aspx.designer.cs | 51 ++++++++++ 28 files changed, 1230 insertions(+) create mode 100644 GreetingCardWebApp/GreetingCardWebApp/krishna_76/version6/default.jpg create mode 100644 GreetingCardWebApp/GreetingCardWebApp/krishna_76/version6/v61_76.aspx create mode 100644 GreetingCardWebApp/GreetingCardWebApp/krishna_76/version6/v61_76.aspx.cs create mode 100644 GreetingCardWebApp/GreetingCardWebApp/krishna_76/version6/v61_76.aspx.designer.cs create mode 100644 GreetingCardWebApp/GreetingCardWebApp/krishna_76/version6/v62_76.aspx create mode 100644 GreetingCardWebApp/GreetingCardWebApp/krishna_76/version6/v62_76.aspx.cs create mode 100644 GreetingCardWebApp/GreetingCardWebApp/krishna_76/version6/v62_76.aspx.designer.cs create mode 100644 GreetingCardWebApp/GreetingCardWebApp/krishna_76/version7/default.jpg create mode 100644 GreetingCardWebApp/GreetingCardWebApp/krishna_76/version7/v71_76.aspx create mode 100644 GreetingCardWebApp/GreetingCardWebApp/krishna_76/version7/v71_76.aspx.cs create mode 100644 GreetingCardWebApp/GreetingCardWebApp/krishna_76/version7/v71_76.aspx.designer.cs create mode 100644 GreetingCardWebApp/GreetingCardWebApp/krishna_76/version7/v72_76.aspx create mode 100644 GreetingCardWebApp/GreetingCardWebApp/krishna_76/version7/v72_76.aspx.cs create mode 100644 GreetingCardWebApp/GreetingCardWebApp/krishna_76/version7/v72_76.aspx.designer.cs create mode 100644 GreetingCardWebApp/GreetingCardWebApp/krishna_76/version8/default.jpg create mode 100644 GreetingCardWebApp/GreetingCardWebApp/krishna_76/version8/v81_76.aspx create mode 100644 GreetingCardWebApp/GreetingCardWebApp/krishna_76/version8/v81_76.aspx.cs create mode 100644 GreetingCardWebApp/GreetingCardWebApp/krishna_76/version8/v81_76.aspx.designer.cs create mode 100644 GreetingCardWebApp/GreetingCardWebApp/krishna_76/version8/v82_76.aspx create mode 100644 GreetingCardWebApp/GreetingCardWebApp/krishna_76/version8/v82_76.aspx.cs create mode 100644 GreetingCardWebApp/GreetingCardWebApp/krishna_76/version8/v82_76.aspx.designer.cs create mode 100644 GreetingCardWebApp/GreetingCardWebApp/krishna_76/version9/default.jpg create mode 100644 GreetingCardWebApp/GreetingCardWebApp/krishna_76/version9/v91_76.aspx create mode 100644 GreetingCardWebApp/GreetingCardWebApp/krishna_76/version9/v91_76.aspx.cs create mode 100644 GreetingCardWebApp/GreetingCardWebApp/krishna_76/version9/v91_76.aspx.designer.cs create mode 100644 GreetingCardWebApp/GreetingCardWebApp/krishna_76/version9/v92_76.aspx create mode 100644 GreetingCardWebApp/GreetingCardWebApp/krishna_76/version9/v92_76.aspx.cs create mode 100644 GreetingCardWebApp/GreetingCardWebApp/krishna_76/version9/v92_76.aspx.designer.cs diff --git a/GreetingCardWebApp/GreetingCardWebApp/krishna_76/version6/default.jpg b/GreetingCardWebApp/GreetingCardWebApp/krishna_76/version6/default.jpg new file mode 100644 index 0000000000000000000000000000000000000000..7347362b6526a6286781ee40889298d3eff6fe78 GIT binary patch literal 4364 zcmb7{WmFRY-^Dj-q%dHBQln#pFk&=J8Qon&-P-a$EPF^tqPHqt%R#rhdK@o9DX=!N=n8HH^!~-!Y zX-Oa{DJcax#XU;Ody-tNT$2B@ZaV>BVt_foA0G$?;DLeoVBl>Jfbnlf!hcQwUjzU= zd_p47KU0hffCt3K$HONg!o&Yh2#ALdAOI6mvxz7X(de<;c!VSs(sGC*tGhr)bnx|K z$Uh|TF9G=9%zsEA=&uO}1Aqj7DTE+`zo>uumj)BCi4amN(dgMERTHs`dK8WyAw#;> zY2gnIJZ~2OV05L6{_} zI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-%thS&2@&!>-_*Ra!J+Wua$cb)xaTB4r1Lt&&)Q;5=wdkW5Mc#( z4OmtJ7~NIIYotxyB7>6ae!EhCQLCzo+K6EIAksY=S3#QW#~Q$7fViXxqf%bbfk7tI z6L(AUk0V15_Rw`vr@7K6XZFEu!$~L$a#dL82m*1b>q#Q1?%GS?`skzD4OhB`PfKmS zN^?zf-@94ra>h=m>jt@WMsI zi>yOH$HIeWTY)m#liQW_sapz>iTiv929qqfSba}BXBR7No;v(QIQyOt^Xu30{F9yX z%=s!7Lovq<-%;Rj5Sy+as9ooXe~v?-#?P$PL@JXDldyj8@?)-@x|IV(>~}iNOE>9+ zgtA`-Rl~Ltbeu_%amFUvM_S+7D``KcR@I}Q`k%~IdrI>WkiWVGeD>9xdAE~YVMcOi z+LbFeXWbL@(=4iZDtxh^^GuBGL0R{?rGG3O_r7sg*AW?oNxVr`SqT${aL1gkXH10g8Ae#U zKky?8;~5KI*E=~aBtfgL)AQ^jX&vyseO4K5(hcWFm0u|ql1#AyD-tmdJ;8*78;y$h zUrp2V)mFHwDgE2m>S0_>@nO+aB~hz93(qmc%B8$;Bz@g~w)bD}?{p^74QCox5t>dH QcfaHQMNA*a7IZuRe}J$LCIA2c literal 0 HcmV?d00001 diff --git a/GreetingCardWebApp/GreetingCardWebApp/krishna_76/version6/v61_76.aspx b/GreetingCardWebApp/GreetingCardWebApp/krishna_76/version6/v61_76.aspx new file mode 100644 index 0000000..b778c5b --- /dev/null +++ b/GreetingCardWebApp/GreetingCardWebApp/krishna_76/version6/v61_76.aspx @@ -0,0 +1,34 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="v61_76.aspx.cs" Inherits="GreetingCardWebApp.krishna_76.version6.v61_76" %> + + + + + + + + +
+
+ + 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/krishna_76/version6/v61_76.aspx.cs b/GreetingCardWebApp/GreetingCardWebApp/krishna_76/version6/v61_76.aspx.cs new file mode 100644 index 0000000..92de371 --- /dev/null +++ b/GreetingCardWebApp/GreetingCardWebApp/krishna_76/version6/v61_76.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.krishna_76.version6 +{ + public partial class v61_76 : 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("v62_76.aspx"); + } + } +} \ No newline at end of file diff --git a/GreetingCardWebApp/GreetingCardWebApp/krishna_76/version6/v61_76.aspx.designer.cs b/GreetingCardWebApp/GreetingCardWebApp/krishna_76/version6/v61_76.aspx.designer.cs new file mode 100644 index 0000000..208be6a --- /dev/null +++ b/GreetingCardWebApp/GreetingCardWebApp/krishna_76/version6/v61_76.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.krishna_76.version6 { + + + public partial class v61_76 { + + /// + /// 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/krishna_76/version6/v62_76.aspx b/GreetingCardWebApp/GreetingCardWebApp/krishna_76/version6/v62_76.aspx new file mode 100644 index 0000000..f2af03b --- /dev/null +++ b/GreetingCardWebApp/GreetingCardWebApp/krishna_76/version6/v62_76.aspx @@ -0,0 +1,25 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="v62_76.aspx.cs" Inherits="GreetingCardWebApp.krishna_76.version6.v62_76" %> + + + + + + + + +
+
+ + +
  +


+ +
+
+
+ + diff --git a/GreetingCardWebApp/GreetingCardWebApp/krishna_76/version6/v62_76.aspx.cs b/GreetingCardWebApp/GreetingCardWebApp/krishna_76/version6/v62_76.aspx.cs new file mode 100644 index 0000000..b442927 --- /dev/null +++ b/GreetingCardWebApp/GreetingCardWebApp/krishna_76/version6/v62_76.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.krishna_76.version6 +{ + public partial class v62_76 : 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(); + + } + } +} \ No newline at end of file diff --git a/GreetingCardWebApp/GreetingCardWebApp/krishna_76/version6/v62_76.aspx.designer.cs b/GreetingCardWebApp/GreetingCardWebApp/krishna_76/version6/v62_76.aspx.designer.cs new file mode 100644 index 0000000..bcab901 --- /dev/null +++ b/GreetingCardWebApp/GreetingCardWebApp/krishna_76/version6/v62_76.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.krishna_76.version6 { + + + public partial class v62_76 { + + /// + /// 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; + } +} diff --git a/GreetingCardWebApp/GreetingCardWebApp/krishna_76/version7/default.jpg b/GreetingCardWebApp/GreetingCardWebApp/krishna_76/version7/default.jpg new file mode 100644 index 0000000000000000000000000000000000000000..7347362b6526a6286781ee40889298d3eff6fe78 GIT binary patch literal 4364 zcmb7{WmFRY-^Dj-q%dHBQln#pFk&=J8Qon&-P-a$EPF^tqPHqt%R#rhdK@o9DX=!N=n8HH^!~-!Y zX-Oa{DJcax#XU;Ody-tNT$2B@ZaV>BVt_foA0G$?;DLeoVBl>Jfbnlf!hcQwUjzU= zd_p47KU0hffCt3K$HONg!o&Yh2#ALdAOI6mvxz7X(de<;c!VSs(sGC*tGhr)bnx|K z$Uh|TF9G=9%zsEA=&uO}1Aqj7DTE+`zo>uumj)BCi4amN(dgMERTHs`dK8WyAw#;> zY2gnIJZ~2OV05L6{_} zIOLIcDy+!!#3o;RN|?HkL^q6iV7PCI7a1MKg`_<%&sg4>2xBipe)?x=p)=1Z-BQ`W zNa{jTDUNtG4l^bptm0Nmug7_r-1YmhqNzF!i@63cryHo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Xxqf%bbfk7tI z6L(AUk0V15_Rw`vr@7K6XZFEu!$~L$a#dL82m*1b>q#Q1?%GS?`skzD4OhB`PfKmS zN^?zf-@94ra>h=m>jt@WMsI zi>yOH$HIeWTY)m#liQW_sapz>iTiv929qqfSba}BXBR7No;v(QIQyOt^Xu30{F9yX z%=s!7Lovq<-%;Rj5Sy+as9ooXe~v?-#?P$PL@JXDldyj8@?)-@x|IV(>~}iNOE>9+ zgtA`-Rl~Ltbeu_%amFUvM_S+7D``KcR@I}Q`k%~IdrI>WkiWVGeD>9xdAE~YVMcOi z+LbFeXWbL@(=4iZDtxh^^GuBGL0R{?rGG3O_r7sg*AW?oNxVr`SqT${aL1gkXH10g8Ae#U zKky?8;~5KI*E=~aBtfgL)AQ^jX&vyseO4K5(hcWFm0u|ql1#AyD-tmdJ;8*78;y$h zUrp2V)mFHwDgE2m>S0_>@nO+aB~hz93(qmc%B8$;Bz@g~w)bD}?{p^74QCox5t>dH QcfaHQMNA*a7IZuRe}J$LCIA2c literal 0 HcmV?d00001 diff --git a/GreetingCardWebApp/GreetingCardWebApp/krishna_76/version7/v71_76.aspx b/GreetingCardWebApp/GreetingCardWebApp/krishna_76/version7/v71_76.aspx new file mode 100644 index 0000000..a5a080a --- /dev/null +++ b/GreetingCardWebApp/GreetingCardWebApp/krishna_76/version7/v71_76.aspx @@ -0,0 +1,34 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="v71_76.aspx.cs" Inherits="GreetingCardWebApp.krishna_76.version7.v71_76" %> + + + + + + + + +
+
+ + 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/krishna_76/version7/v71_76.aspx.cs b/GreetingCardWebApp/GreetingCardWebApp/krishna_76/version7/v71_76.aspx.cs new file mode 100644 index 0000000..ee9147c --- /dev/null +++ b/GreetingCardWebApp/GreetingCardWebApp/krishna_76/version7/v71_76.aspx.cs @@ -0,0 +1,56 @@ +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.krishna_76.version7 +{ + public partial class v71_76 : 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; + } + } + 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("v72_76.aspx"); + } + } +} \ No newline at end of file diff --git a/GreetingCardWebApp/GreetingCardWebApp/krishna_76/version7/v71_76.aspx.designer.cs b/GreetingCardWebApp/GreetingCardWebApp/krishna_76/version7/v71_76.aspx.designer.cs new file mode 100644 index 0000000..3a405e0 --- /dev/null +++ b/GreetingCardWebApp/GreetingCardWebApp/krishna_76/version7/v71_76.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.krishna_76.version7 { + + + public partial class v71_76 { + + /// + /// 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/krishna_76/version7/v72_76.aspx b/GreetingCardWebApp/GreetingCardWebApp/krishna_76/version7/v72_76.aspx new file mode 100644 index 0000000..84a102f --- /dev/null +++ b/GreetingCardWebApp/GreetingCardWebApp/krishna_76/version7/v72_76.aspx @@ -0,0 +1,25 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="v72_76.aspx.cs" Inherits="GreetingCardWebApp.krishna_76.version7.v72_76" %> + + + + + + + + +
+
+ + +
  +


+ +
+
+
+ + diff --git a/GreetingCardWebApp/GreetingCardWebApp/krishna_76/version7/v72_76.aspx.cs b/GreetingCardWebApp/GreetingCardWebApp/krishna_76/version7/v72_76.aspx.cs new file mode 100644 index 0000000..6a70f30 --- /dev/null +++ b/GreetingCardWebApp/GreetingCardWebApp/krishna_76/version7/v72_76.aspx.cs @@ -0,0 +1,57 @@ +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.krishna_76.version7 +{ + public partial class v72_76 : 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/krishna_76/version7/v72_76.aspx.designer.cs b/GreetingCardWebApp/GreetingCardWebApp/krishna_76/version7/v72_76.aspx.designer.cs new file mode 100644 index 0000000..7def41f --- /dev/null +++ b/GreetingCardWebApp/GreetingCardWebApp/krishna_76/version7/v72_76.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.krishna_76.version7 { + + + public partial class v72_76 { + + /// + /// 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; + } +} diff --git a/GreetingCardWebApp/GreetingCardWebApp/krishna_76/version8/default.jpg b/GreetingCardWebApp/GreetingCardWebApp/krishna_76/version8/default.jpg new file mode 100644 index 0000000000000000000000000000000000000000..7347362b6526a6286781ee40889298d3eff6fe78 GIT binary patch literal 4364 zcmb7{WmFRY-^Dj-q%dHBQln#pFk&=J8Qon&-P-a$EPF^tqPHqt%R#rhdK@o9DX=!N=n8HH^!~-!Y zX-Oa{DJcax#XU;Ody-tNT$2B@ZaV>BVt_foA0G$?;DLeoVBl>Jfbnlf!hcQwUjzU= zd_p47KU0hffCt3K$HONg!o&Yh2#ALdAOI6mvxz7X(de<;c!VSs(sGC*tGhr)bnx|K z$Uh|TF9G=9%zsEA=&uO}1Aqj7DTE+`zo>uumj)BCi4amN(dgMERTHs`dK8WyAw#;> zY2gnIJZ~2OV05L6{_} zIOLIcDy+!!#3o;RN|?HkL^q6iV7PCI7a1MKg`_<%&sg4>2xBipe)?x=p)=1Z-BQ`W zNa{jTD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>6ae!EhCQLCzo+K6EIAksY=S3#QW#~Q$7fViXxqf%bbfk7tI z6L(AUk0V15_Rw`vr@7K6XZFEu!$~L$a#dL82m*1b>q#Q1?%GS?`skzD4OhB`PfKmS zN^?zf-@94ra>h=m>jt@WMsI zi>yOH$HIeWTY)m#liQW_sapz>iTiv929qqfSba}BXBR7No;v(QIQyOt^Xu30{F9yX z%=s!7Lovq<-%;Rj5Sy+as9ooXe~v?-#?P$PL@JXDldyj8@?)-@x|IV(>~}iNOE>9+ zgtA`-Rl~Ltbeu_%amFUvM_S+7D``KcR@I}Q`k%~IdrI>WkiWVGeD>9xdAE~YVMcOi z+LbFeXWbL@(=4iZDtxh^^GuBGL0R{?rGG3O_r7sg*AW?oNxVr`SqT${aL1gkXH10g8Ae#U zKky?8;~5KI*E=~aBtfgL)AQ^jX&vyseO4K5(hcWFm0u|ql1#AyD-tmdJ;8*78;y$h zUrp2V)mFHwDgE2m>S0_>@nO+aB~hz93(qmc%B8$;Bz@g~w)bD}?{p^74QCox5t>dH QcfaHQMNA*a7IZuRe}J$LCIA2c literal 0 HcmV?d00001 diff --git a/GreetingCardWebApp/GreetingCardWebApp/krishna_76/version8/v81_76.aspx b/GreetingCardWebApp/GreetingCardWebApp/krishna_76/version8/v81_76.aspx new file mode 100644 index 0000000..cbb61fa --- /dev/null +++ b/GreetingCardWebApp/GreetingCardWebApp/krishna_76/version8/v81_76.aspx @@ -0,0 +1,34 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="v81_76.aspx.cs" Inherits="GreetingCardWebApp.krishna_76.version8.v81_76" %> + + + + + + + + +
+
+ + 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/krishna_76/version8/v81_76.aspx.cs b/GreetingCardWebApp/GreetingCardWebApp/krishna_76/version8/v81_76.aspx.cs new file mode 100644 index 0000000..9ba7bf4 --- /dev/null +++ b/GreetingCardWebApp/GreetingCardWebApp/krishna_76/version8/v81_76.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.krishna_76.version8 +{ + public partial class v81_76 : 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("v82_76.aspx?val1=" + s1 + "&val2=" + s2 + "&val3=" + s3 + "&val4=" + s4 + "&val5=" + s5 + "&val6=" + s6); + } + } +} \ No newline at end of file diff --git a/GreetingCardWebApp/GreetingCardWebApp/krishna_76/version8/v81_76.aspx.designer.cs b/GreetingCardWebApp/GreetingCardWebApp/krishna_76/version8/v81_76.aspx.designer.cs new file mode 100644 index 0000000..d51ea8b --- /dev/null +++ b/GreetingCardWebApp/GreetingCardWebApp/krishna_76/version8/v81_76.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.krishna_76.version8 { + + + public partial class v81_76 { + + /// + /// 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/krishna_76/version8/v82_76.aspx b/GreetingCardWebApp/GreetingCardWebApp/krishna_76/version8/v82_76.aspx new file mode 100644 index 0000000..5d3d410 --- /dev/null +++ b/GreetingCardWebApp/GreetingCardWebApp/krishna_76/version8/v82_76.aspx @@ -0,0 +1,26 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="v82_76.aspx.cs" Inherits="GreetingCardWebApp.krishna_76.version8.v82_76" %> + + + + + + + + +
+
+ + + +
  +


+ +
+
+
+ + diff --git a/GreetingCardWebApp/GreetingCardWebApp/krishna_76/version8/v82_76.aspx.cs b/GreetingCardWebApp/GreetingCardWebApp/krishna_76/version8/v82_76.aspx.cs new file mode 100644 index 0000000..b79f548 --- /dev/null +++ b/GreetingCardWebApp/GreetingCardWebApp/krishna_76/version8/v82_76.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.krishna_76.version8 +{ + public partial class v82_76 : 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/krishna_76/version8/v82_76.aspx.designer.cs b/GreetingCardWebApp/GreetingCardWebApp/krishna_76/version8/v82_76.aspx.designer.cs new file mode 100644 index 0000000..1ca0186 --- /dev/null +++ b/GreetingCardWebApp/GreetingCardWebApp/krishna_76/version8/v82_76.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.krishna_76.version8 { + + + public partial class v82_76 { + + /// + /// 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; + } +} diff --git a/GreetingCardWebApp/GreetingCardWebApp/krishna_76/version9/default.jpg b/GreetingCardWebApp/GreetingCardWebApp/krishna_76/version9/default.jpg new file mode 100644 index 0000000000000000000000000000000000000000..7347362b6526a6286781ee40889298d3eff6fe78 GIT binary patch literal 4364 zcmb7{WmFRY-^Dj-q%dHBQln#pFk&=J8Qon&-P-a$EPF^tqPHqt%R#rhdK@o9DX=!N=n8HH^!~-!Y zX-Oa{DJcax#XU;Ody-tNT$2B@ZaV>BVt_foA0G$?;DLeoVBl>Jfbnlf!hcQwUjzU= zd_p47KU0hffCt3K$HONg!o&Yh2#ALdAOI6mvxz7X(de<;c!VSs(sGC*tGhr)bnx|K z$Uh|TF9G=9%zsEA=&uO}1Aqj7DTE+`zo>uumj)BCi4amN(dgMERTHs`dK8WyAw#;> zY2gnIJZ~2OV05L6{_} zIOLIcDy+!!#3o;RN|?HkL^q6iV7PCI7a1MKg`_<%&sg4>2xBipe)?x=p)=1Z-BQ`W zNa{jTD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>6ae!EhCQLCzo+K6EIAksY=S3#QW#~Q$7fViXxqf%bbfk7tI z6L(AUk0V15_Rw`vr@7K6XZFEu!$~L$a#dL82m*1b>q#Q1?%GS?`skzD4OhB`PfKmS zN^?zf-@94ra>h=m>jt@WMsI zi>yOH$HIeWTY)m#liQW_sapz>iTiv929qqfSba}BXBR7No;v(QIQyOt^Xu30{F9yX z%=s!7Lovq<-%;Rj5Sy+as9ooXe~v?-#?P$PL@JXDldyj8@?)-@x|IV(>~}iNOE>9+ zgtA`-Rl~Ltbeu_%amFUvM_S+7D``KcR@I}Q`k%~IdrI>WkiWVGeD>9xdAE~YVMcOi z+LbFeXWbL@(=4iZDtxh^^GuBGL0R{?rGG3O_r7sg*AW?oNxVr`SqT${aL1gkXH10g8Ae#U zKky?8;~5KI*E=~aBtfgL)AQ^jX&vyseO4K5(hcWFm0u|ql1#AyD-tmdJ;8*78;y$h zUrp2V)mFHwDgE2m>S0_>@nO+aB~hz93(qmc%B8$;Bz@g~w)bD}?{p^74QCox5t>dH QcfaHQMNA*a7IZuRe}J$LCIA2c literal 0 HcmV?d00001 diff --git a/GreetingCardWebApp/GreetingCardWebApp/krishna_76/version9/v91_76.aspx b/GreetingCardWebApp/GreetingCardWebApp/krishna_76/version9/v91_76.aspx new file mode 100644 index 0000000..dede212 --- /dev/null +++ b/GreetingCardWebApp/GreetingCardWebApp/krishna_76/version9/v91_76.aspx @@ -0,0 +1,33 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="v91_76.aspx.cs" Inherits="GreetingCardWebApp.krishna_76.version9.v91_76" %> + + + + + + + + +
+
+ + 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/krishna_76/version9/v91_76.aspx.cs b/GreetingCardWebApp/GreetingCardWebApp/krishna_76/version9/v91_76.aspx.cs new file mode 100644 index 0000000..926e3ef --- /dev/null +++ b/GreetingCardWebApp/GreetingCardWebApp/krishna_76/version9/v91_76.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; +using System.Drawing; +using System.Drawing.Text; +using System.ComponentModel; + +namespace GreetingCardWebApp.krishna_76.version9 +{ + public partial class v91_76 : 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/krishna_76/version9/v91_76.aspx.designer.cs b/GreetingCardWebApp/GreetingCardWebApp/krishna_76/version9/v91_76.aspx.designer.cs new file mode 100644 index 0000000..b1599e8 --- /dev/null +++ b/GreetingCardWebApp/GreetingCardWebApp/krishna_76/version9/v91_76.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.krishna_76.version9 { + + + public partial class v91_76 { + + /// + /// 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/krishna_76/version9/v92_76.aspx b/GreetingCardWebApp/GreetingCardWebApp/krishna_76/version9/v92_76.aspx new file mode 100644 index 0000000..6711396 --- /dev/null +++ b/GreetingCardWebApp/GreetingCardWebApp/krishna_76/version9/v92_76.aspx @@ -0,0 +1,25 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="v92_76.aspx.cs" Inherits="GreetingCardWebApp.krishna_76.version9.v92_76" %> + + + + + + + + +
+
+ + +
  +


+ +
+
+
+ + diff --git a/GreetingCardWebApp/GreetingCardWebApp/krishna_76/version9/v92_76.aspx.cs b/GreetingCardWebApp/GreetingCardWebApp/krishna_76/version9/v92_76.aspx.cs new file mode 100644 index 0000000..f1b6d66 --- /dev/null +++ b/GreetingCardWebApp/GreetingCardWebApp/krishna_76/version9/v92_76.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.krishna_76.version9 +{ + public partial class v92_76 : 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/krishna_76/version9/v92_76.aspx.designer.cs b/GreetingCardWebApp/GreetingCardWebApp/krishna_76/version9/v92_76.aspx.designer.cs new file mode 100644 index 0000000..cad2885 --- /dev/null +++ b/GreetingCardWebApp/GreetingCardWebApp/krishna_76/version9/v92_76.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.krishna_76.version9 { + + + public partial class v92_76 { + + /// + /// 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 82229dab92d7949b007a5d5a845c68ab307f8e6d Mon Sep 17 00:00:00 2001 From: Krishna Naik Date: Wed, 14 Sep 2016 23:18:40 +0530 Subject: [PATCH 4/4] Add files via upload --- .../GreetingCardWebApp/krishna_76/v5_76.aspx | 47 +++++++ .../krishna_76/v5_76.aspx.cs | 102 +++++++++++++++ .../krishna_76/v5_76.aspx.designer.cs | 123 ++++++++++++++++++ 3 files changed, 272 insertions(+) create mode 100644 GreetingCardWebApp/GreetingCardWebApp/krishna_76/v5_76.aspx create mode 100644 GreetingCardWebApp/GreetingCardWebApp/krishna_76/v5_76.aspx.cs create mode 100644 GreetingCardWebApp/GreetingCardWebApp/krishna_76/v5_76.aspx.designer.cs diff --git a/GreetingCardWebApp/GreetingCardWebApp/krishna_76/v5_76.aspx b/GreetingCardWebApp/GreetingCardWebApp/krishna_76/v5_76.aspx new file mode 100644 index 0000000..e9596f3 --- /dev/null +++ b/GreetingCardWebApp/GreetingCardWebApp/krishna_76/v5_76.aspx @@ -0,0 +1,47 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="v5_76.aspx.cs" Inherits="GreetingCardWebApp.krishna_76.v5_76" %> + + + + + + + + +
+
+ + 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/krishna_76/v5_76.aspx.cs b/GreetingCardWebApp/GreetingCardWebApp/krishna_76/v5_76.aspx.cs new file mode 100644 index 0000000..2a7ccf0 --- /dev/null +++ b/GreetingCardWebApp/GreetingCardWebApp/krishna_76/v5_76.aspx.cs @@ -0,0 +1,102 @@ +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.krishna_76 +{ + public partial class v5_76 : System.Web.UI.Page + { + private string backcolor, fontname, borderstyle, greetingtext; + private Int32 fontsize; + 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 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_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/krishna_76/v5_76.aspx.designer.cs b/GreetingCardWebApp/GreetingCardWebApp/krishna_76/v5_76.aspx.designer.cs new file mode 100644 index 0000000..885a9c1 --- /dev/null +++ b/GreetingCardWebApp/GreetingCardWebApp/krishna_76/v5_76.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.krishna_76 { + + + public partial class v5_76 { + + /// + /// 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; + } +}