diff --git a/GreetingCardWebApp/GreetingCardWebApp/krishna_76/default.jpg b/GreetingCardWebApp/GreetingCardWebApp/krishna_76/default.jpg
new file mode 100644
index 0000000..7347362
Binary files /dev/null and b/GreetingCardWebApp/GreetingCardWebApp/krishna_76/default.jpg differ
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" %>
+
+
+
+
+
+
+
+
+
+
+
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" %>
+
+
+
+
+
+
+
+
+
+
+
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;
+ }
+}
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" %>
+
+
+
+
+
+
+
+
+
+
+
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" %>
+
+
+
+
+
+
+
+
+
+
+
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;
+ }
+}
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" %>
+
+
+
+
+
+
+
+
+
+
+
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;
+ }
+}
diff --git a/GreetingCardWebApp/GreetingCardWebApp/krishna_76/version6/default.jpg b/GreetingCardWebApp/GreetingCardWebApp/krishna_76/version6/default.jpg
new file mode 100644
index 0000000..7347362
Binary files /dev/null and b/GreetingCardWebApp/GreetingCardWebApp/krishna_76/version6/default.jpg differ
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" %>
+
+
+
+
+
+
+
+
+
+
+
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 0000000..7347362
Binary files /dev/null and b/GreetingCardWebApp/GreetingCardWebApp/krishna_76/version7/default.jpg differ
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" %>
+
+
+
+
+
+
+
+
+
+
+
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 0000000..7347362
Binary files /dev/null and b/GreetingCardWebApp/GreetingCardWebApp/krishna_76/version8/default.jpg differ
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" %>
+
+
+
+
+
+
+
+
+
+
+
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 0000000..7347362
Binary files /dev/null and b/GreetingCardWebApp/GreetingCardWebApp/krishna_76/version9/default.jpg differ
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" %>
+
+
+
+
+
+
+
+
+
+
+
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;
+ }
+}