diff --git a/GreetingsWebApp/.vs/GreetingsWebApp/v14/.suo b/GreetingsWebApp/.vs/GreetingsWebApp/v14/.suo new file mode 100644 index 0000000..b9343a4 Binary files /dev/null and b/GreetingsWebApp/.vs/GreetingsWebApp/v14/.suo differ diff --git a/GreetingsWebApp/.vs/config/applicationhost.config b/GreetingsWebApp/.vs/config/applicationhost.config new file mode 100644 index 0000000..dfcc1a0 --- /dev/null +++ b/GreetingsWebApp/.vs/config/applicationhost.config @@ -0,0 +1,1038 @@ + + + + + + + + +
+
+
+
+
+
+
+
+ + + +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ +
+
+ +
+
+
+
+
+
+ +
+
+
+
+
+ +
+
+
+ +
+
+ +
+
+ +
+
+
+ + +
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/GreetingsWebApp/GreetingsWebApp/GreetingsWebApp.csproj b/GreetingsWebApp/GreetingsWebApp/GreetingsWebApp.csproj index 842a378..3665da3 100644 --- a/GreetingsWebApp/GreetingsWebApp/GreetingsWebApp.csproj +++ b/GreetingsWebApp/GreetingsWebApp/GreetingsWebApp.csproj @@ -19,6 +19,7 @@ + true @@ -201,6 +202,20 @@ + + + + + + + + + + + + + + @@ -336,6 +351,97 @@ ViewSwitcher.ascx + + v1_vivek_99.aspx + ASPXCodeBehind + + + v1_vivek_99.aspx + + + v2_vivek_99.aspx + ASPXCodeBehind + + + v2_vivek_99.aspx + + + v3_vivek_99.aspx + ASPXCodeBehind + + + v3_vivek_99.aspx + + + v4_vivek_99.aspx + ASPXCodeBehind + + + v4_vivek_99.aspx + + + v5_vivek_99.aspx + ASPXCodeBehind + + + v5_vivek_99.aspx + + + v6_1_vivek_99.aspx + ASPXCodeBehind + + + v6_1_vivek_99.aspx + + + v6_2_vivek_99.aspx + ASPXCodeBehind + + + v6_2_vivek_99.aspx + + + v7_1_vivek_99.aspx + ASPXCodeBehind + + + v7_1_vivek_99.aspx + + + v7_2_vivek_99.aspx + ASPXCodeBehind + + + v7_2_vivek_99.aspx + + + v8_1_vivek_99.aspx + ASPXCodeBehind + + + v8_1_vivek_99.aspx + + + v8_2_vivek_99.aspx + ASPXCodeBehind + + + v8_2_vivek_99.aspx + + + v9_1_vivek_99.aspx + ASPXCodeBehind + + + v9_1_vivek_99.aspx + + + v9_2_vivek_99.aspx + ASPXCodeBehind + + + v9_2_vivek_99.aspx + diff --git a/GreetingsWebApp/GreetingsWebApp/GreetingsWebApp.csproj.user b/GreetingsWebApp/GreetingsWebApp/GreetingsWebApp.csproj.user new file mode 100644 index 0000000..6e3d4d9 --- /dev/null +++ b/GreetingsWebApp/GreetingsWebApp/GreetingsWebApp.csproj.user @@ -0,0 +1,32 @@ + + + + true + ShowAllFiles + + + + + + + + CurrentPage + True + False + False + False + + + + + + + + + True + True + + + + + \ No newline at end of file diff --git a/GreetingsWebApp/GreetingsWebApp/VIVEK_Versions/index.jpg b/GreetingsWebApp/GreetingsWebApp/VIVEK_Versions/index.jpg new file mode 100644 index 0000000..30bac9c Binary files /dev/null and b/GreetingsWebApp/GreetingsWebApp/VIVEK_Versions/index.jpg differ diff --git a/GreetingsWebApp/GreetingsWebApp/VIVEK_Versions/v1_vivek_99.aspx b/GreetingsWebApp/GreetingsWebApp/VIVEK_Versions/v1_vivek_99.aspx new file mode 100644 index 0000000..f3be99f --- /dev/null +++ b/GreetingsWebApp/GreetingsWebApp/VIVEK_Versions/v1_vivek_99.aspx @@ -0,0 +1,51 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="v1_vivek_99.aspx.cs" Inherits="GreetingsWebApp.VIVEK.v1_vivek_99" %> + + + + + + + + +
+
+ Choose Background Color:
+ + +
+ Choose a Font:
+ + +
+ specify a numeric font size:
+ +
+ Choose a border Style:
+ + +
+ + +
+ Enter the greeting text Below:
+ +
+ +
+
+ +
  +


+ +
+ + +
+
+ + + diff --git a/GreetingsWebApp/GreetingsWebApp/VIVEK_Versions/v1_vivek_99.aspx.cs b/GreetingsWebApp/GreetingsWebApp/VIVEK_Versions/v1_vivek_99.aspx.cs new file mode 100644 index 0000000..d7061ee --- /dev/null +++ b/GreetingsWebApp/GreetingsWebApp/VIVEK_Versions/v1_vivek_99.aspx.cs @@ -0,0 +1,83 @@ +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 GreetingsWebApp.VIVEK +{ + public partial class v1_vivek_99 : System.Web.UI.Page + { + protected void Page_Load(object sender, EventArgs e) + { + if(!this.IsPostBack) + { + //set the Background color list + Bc_list.Items.Add("White"); + Bc_list.Items.Add("Red"); + Bc_list.Items.Add("Green"); + Bc_list.Items.Add("Blue"); + Bc_list.Items.Add("Yellow"); + + //set font options + + Font_list.Items.Add("Times New Roman"); + Font_list.Items.Add("Arial"); + Font_list.Items.Add("Verdana"); + Font_list.Items.Add("Tahoma"); + + //Add Border Styles + + ListItem item = new ListItem(); + item.Text = BorderStyle.None.ToString(); + item.Value=((int)BorderStyle.None).ToString(); + Border_style.Items.Add(item); + + item = new ListItem(); + item.Text = BorderStyle.Double.ToString(); + item.Value = ((int)BorderStyle.Double).ToString(); + Border_style.Items.Add(item); + + item = new ListItem(); + item.Text = BorderStyle.Solid.ToString(); + item.Value = ((int)BorderStyle.Solid).ToString(); + Border_style.Items.Add(item); + + + Border_style.SelectedIndex = 0; + + + } + else + { + imgDefault.ImageUrl = "index.jpg"; + + } + } + + protected void Update_Click(Object sender,EventArgs e) + { + pnlCard.BackColor = Color.FromName(Bc_list.SelectedItem.Text); + lblGreeting.Font.Name = Font_list.SelectedItem.Text; + if(Int32.Parse(Font_size.Text)>0) + { + lblGreeting.Font.Size = FontUnit.Point(Int32.Parse(Font_size.Text)); + } + int borderValue = Int32.Parse(Border_style.SelectedItem.Value); + pnlCard.BorderStyle = (BorderStyle)borderValue; + + if(Checkbox.Checked) + { + imgDefault.Visible = true; + + } + else + { + imgDefault.Visible = false; + } + lblGreeting.Text = Greeting_text.Text; + } + } +} \ No newline at end of file diff --git a/GreetingsWebApp/GreetingsWebApp/VIVEK_Versions/v1_vivek_99.aspx.designer.cs b/GreetingsWebApp/GreetingsWebApp/VIVEK_Versions/v1_vivek_99.aspx.designer.cs new file mode 100644 index 0000000..9822a32 --- /dev/null +++ b/GreetingsWebApp/GreetingsWebApp/VIVEK_Versions/v1_vivek_99.aspx.designer.cs @@ -0,0 +1,105 @@ +//------------------------------------------------------------------------------ +// +// 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 GreetingsWebApp.VIVEK { + + + public partial class v1_vivek_99 { + + /// + /// Bc_list control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.DropDownList Bc_list; + + /// + /// Font_list control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.DropDownList Font_list; + + /// + /// Font_size control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.TextBox Font_size; + + /// + /// Border_style control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.RadioButtonList Border_style; + + /// + /// Checkbox control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.CheckBox Checkbox; + + /// + /// Greeting_text control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.TextBox Greeting_text; + + /// + /// Button control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Button Button; + + /// + /// 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/GreetingsWebApp/GreetingsWebApp/VIVEK_Versions/v2_vivek_99.aspx b/GreetingsWebApp/GreetingsWebApp/VIVEK_Versions/v2_vivek_99.aspx new file mode 100644 index 0000000..c36f379 --- /dev/null +++ b/GreetingsWebApp/GreetingsWebApp/VIVEK_Versions/v2_vivek_99.aspx @@ -0,0 +1,50 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="v2_vivek_99.aspx.cs" Inherits="GreetingsWebApp.VIVEK.v2_vivek_99" %> + + + + + + + + +
+
+ Choose Background Color:
+ + +
+ Choose a Font:
+ + +
+ specify a numeric font size:
+ +
+ Choose a border Style:
+ + +
+ + +
+ Enter the greeting text Below:
+ +
+ +
+
+ +
  +


+ +
+ + +
+
+ + diff --git a/GreetingsWebApp/GreetingsWebApp/VIVEK_Versions/v2_vivek_99.aspx.cs b/GreetingsWebApp/GreetingsWebApp/VIVEK_Versions/v2_vivek_99.aspx.cs new file mode 100644 index 0000000..b9eed30 --- /dev/null +++ b/GreetingsWebApp/GreetingsWebApp/VIVEK_Versions/v2_vivek_99.aspx.cs @@ -0,0 +1,72 @@ +using System; +using System.Web.UI.WebControls; +using System.Drawing; +using System.Drawing.Text; +using System.ComponentModel; +namespace GreetingsWebApp.VIVEK +{ + public partial class v2_vivek_99 : System.Web.UI.Page + { + protected void Page_Load(object sender, EventArgs e) + { + if (!this.IsPostBack) + { + //set the Background color list + string[] colorArray = Enum.GetNames(typeof(KnownColor)); + Bc_list.DataSource = colorArray; + Bc_list.DataBind(); + + //set font options + InstalledFontCollection fonts = new InstalledFontCollection(); + foreach(FontFamily family in fonts.Families ) + { + Font_list.Items.Add(family.Name); + } + + //Add Border Styles + + string[] borderArray = Enum.GetNames(typeof(BorderStyle)); + Border_style.DataSource = borderArray; + Border_style.DataBind(); + + Border_style.SelectedIndex = 0; + + + } + else + { + imgDefault.ImageUrl = "index.jpg"; + + } + } + + protected void Update_Click(Object sender, EventArgs e) + { + + + + pnlCard.BackColor =Color.FromName(Bc_list.SelectedItem.Text); + + lblGreeting.Font.Name = Font_list.SelectedItem.Text; + if (Int32.Parse(Font_size.Text) > 0) + { + lblGreeting.Font.Size = FontUnit.Point(Int32.Parse(Font_size.Text)); + } + + TypeConverter converter2 = TypeDescriptor.GetConverter(typeof(BorderStyle)); + pnlCard.BorderStyle = (BorderStyle)converter2.ConvertFromString(Border_style.SelectedItem.Text); + + if (Checkbox.Checked) + { + imgDefault.Visible = true; + + } + else + { + imgDefault.Visible = false; + } + lblGreeting.Text = Greeting_text.Text; + } + } +} + diff --git a/GreetingsWebApp/GreetingsWebApp/VIVEK_Versions/v2_vivek_99.aspx.designer.cs b/GreetingsWebApp/GreetingsWebApp/VIVEK_Versions/v2_vivek_99.aspx.designer.cs new file mode 100644 index 0000000..89271b7 --- /dev/null +++ b/GreetingsWebApp/GreetingsWebApp/VIVEK_Versions/v2_vivek_99.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 GreetingsWebApp.VIVEK { + + + public partial class v2_vivek_99 { + + /// + /// 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; + + /// + /// Bc_list control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.DropDownList Bc_list; + + /// + /// Font_list control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.DropDownList Font_list; + + /// + /// Font_size control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.TextBox Font_size; + + /// + /// Border_style control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.RadioButtonList Border_style; + + /// + /// Checkbox control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.CheckBox Checkbox; + + /// + /// Greeting_text control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.TextBox Greeting_text; + + /// + /// Button control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Button Button; + + /// + /// 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/GreetingsWebApp/GreetingsWebApp/VIVEK_Versions/v3_vivek_99.aspx b/GreetingsWebApp/GreetingsWebApp/VIVEK_Versions/v3_vivek_99.aspx new file mode 100644 index 0000000..9516b74 --- /dev/null +++ b/GreetingsWebApp/GreetingsWebApp/VIVEK_Versions/v3_vivek_99.aspx @@ -0,0 +1,78 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="v3_vivek_99.aspx.cs" Inherits="GreetingsWebApp.VIVEK.v3_vivek_99" %> + + + + + + + + +
+
+ + + + + Choose Foreground Color:
+ + +
+ Choose a background color:
+ + + +
+ +
+
+ + + Choose a border Style:
+ + + +
+ + +
+
+ + + Choose a font Name: + + +
+ + specify a numeric font size:
+ + +
+ Enter the greeting text Below:
+ +
+ +
+
+
+
+
+ +
  + +


+ +
+ + + + +
+
+ + diff --git a/GreetingsWebApp/GreetingsWebApp/VIVEK_Versions/v3_vivek_99.aspx.cs b/GreetingsWebApp/GreetingsWebApp/VIVEK_Versions/v3_vivek_99.aspx.cs new file mode 100644 index 0000000..924e804 --- /dev/null +++ b/GreetingsWebApp/GreetingsWebApp/VIVEK_Versions/v3_vivek_99.aspx.cs @@ -0,0 +1,96 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; +using System.Drawing.Text; +using System.ComponentModel; +using System.Drawing; +namespace GreetingsWebApp.VIVEK +{ + public partial class v3_vivek_99 : System.Web.UI.Page + { + protected void Page_Load(object sender, EventArgs e) + { + if (!this.IsPostBack) + { + + //set the Background color list + string[] colorArray = Enum.GetNames(typeof(KnownColor)); + Bc_list.DataSource = colorArray; + Bc_list.DataBind(); + + //set the Foreground color list + Fc_list.DataSource = colorArray; + Fc_list.DataBind(); + + //set font options + InstalledFontCollection fonts = new InstalledFontCollection(); + foreach (FontFamily family in fonts.Families) + { + Font_list.Items.Add(family.Name); + } + + //Add Border Styles + + string[] borderArray = Enum.GetNames(typeof(BorderStyle)); + Border_style.DataSource = borderArray; + Border_style.DataBind(); + + Border_style.SelectedIndex = 0; + + MultiView1.ActiveViewIndex = 0; + } + } + protected void changeFore(object sender, EventArgs e) + { + pnlCard.ForeColor = Color.FromName(Fc_list.SelectedItem.Text); + } + protected void changeBack(object sender, EventArgs e) + { + pnlCard.BackColor = Color.FromName(Bc_list.SelectedItem.Text); + } + protected void changeBorder(object sender, EventArgs e) + { + + TypeConverter converter2 = TypeDescriptor.GetConverter(typeof(BorderStyle)); + pnlCard.BorderStyle = (BorderStyle)converter2.ConvertFromString(Border_style.SelectedItem.Text); + } + protected void ForImg(object sender,EventArgs e) + { + imgDefault.ImageUrl = "index.jpg"; + + if (Checkbox.Checked) + { + imgDefault.Visible = true; + + } + else + { + imgDefault.Visible = false; + } + } + + protected void ViewChanged(object sender,EventArgs e) + { + + } + protected void Update_Click(object sender,EventArgs e) + { + lblGreeting.Font.Name = Font_list.SelectedItem.Text; + if (Int32.Parse(Font_size.Text) > 0) + { + lblGreeting.Font.Size = FontUnit.Point(Int32.Parse(Font_size.Text)); + } + lblGreeting.Text = Greeting_text.Text; + } + + + + + + } +} + + diff --git a/GreetingsWebApp/GreetingsWebApp/VIVEK_Versions/v3_vivek_99.aspx.designer.cs b/GreetingsWebApp/GreetingsWebApp/VIVEK_Versions/v3_vivek_99.aspx.designer.cs new file mode 100644 index 0000000..0a7c177 --- /dev/null +++ b/GreetingsWebApp/GreetingsWebApp/VIVEK_Versions/v3_vivek_99.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 GreetingsWebApp.VIVEK { + + + public partial class v3_vivek_99 { + + /// + /// 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; + + /// + /// Panel1 control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Panel Panel1; + + /// + /// 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; + + /// + /// Fc_list control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.DropDownList Fc_list; + + /// + /// Bc_list control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.DropDownList Bc_list; + + /// + /// 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; + + /// + /// Border_style control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.RadioButtonList Border_style; + + /// + /// Checkbox control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.CheckBox Checkbox; + + /// + /// 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; + + /// + /// Font_list control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.DropDownList Font_list; + + /// + /// Font_size control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.TextBox Font_size; + + /// + /// Greeting_text control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.TextBox Greeting_text; + + /// + /// Button control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Button Button; + + /// + /// 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/GreetingsWebApp/GreetingsWebApp/VIVEK_Versions/v4_vivek_99.aspx b/GreetingsWebApp/GreetingsWebApp/VIVEK_Versions/v4_vivek_99.aspx new file mode 100644 index 0000000..3db7644 --- /dev/null +++ b/GreetingsWebApp/GreetingsWebApp/VIVEK_Versions/v4_vivek_99.aspx @@ -0,0 +1,69 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="v4_vivek_99.aspx.cs" Inherits="GreetingsWebApp.VIVEK.v4_vivek_99" %> + + + + + + + + +
+
+ + + + + Choose Foreground Color:
+ + +
+ Choose a background color:
+ + + +
+ +
+ + + Choose a border Style:
+ + + +
+
+ + + Choose a font Name: + + +
+ + specify a numeric font size:
+ + +
+ Enter the greeting text Below:
+ +
+
+ + + +
  +


+ +
+
+ +
+
+ + +
+
+ + diff --git a/GreetingsWebApp/GreetingsWebApp/VIVEK_Versions/v4_vivek_99.aspx.cs b/GreetingsWebApp/GreetingsWebApp/VIVEK_Versions/v4_vivek_99.aspx.cs new file mode 100644 index 0000000..3852505 --- /dev/null +++ b/GreetingsWebApp/GreetingsWebApp/VIVEK_Versions/v4_vivek_99.aspx.cs @@ -0,0 +1,79 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; +using System.Drawing.Text; +using System.ComponentModel; +using System.Drawing; + +namespace GreetingsWebApp.VIVEK +{ + public partial class v4_vivek_99 : System.Web.UI.Page + { + protected void Page_Load(object sender, EventArgs e) + { + if (!this.IsPostBack) + { + + //set the Background color list + string[] colorArray = Enum.GetNames(typeof(KnownColor)); + Bc_list.DataSource = colorArray; + Bc_list.DataBind(); + + //set the Foreground color list + Fc_list.DataSource = colorArray; + Fc_list.DataBind(); + + //set font options + InstalledFontCollection fonts = new InstalledFontCollection(); + foreach (FontFamily family in fonts.Families) + { + Font_list.Items.Add(family.Name); + } + + //Add Border Styles + + string[] borderArray = Enum.GetNames(typeof(BorderStyle)); + Border_style.DataSource = borderArray; + Border_style.DataBind(); + + Border_style.SelectedIndex = 0; + + Wizard1.ActiveStepIndex = 0; + } + + } + + protected void FinishButtonClick(object sender,EventArgs e) + { + pnlCard.ForeColor = Color.FromName(Fc_list.SelectedItem.Text); + + pnlCard.BackColor = Color.FromName(Bc_list.SelectedItem.Text); + + TypeConverter converter2 = TypeDescriptor.GetConverter(typeof(BorderStyle)); + pnlCard.BorderStyle = (BorderStyle)converter2.ConvertFromString(Border_style.SelectedItem.Text); + + + imgDefault.ImageUrl = "index.jpg"; + + if (Checkbox.Checked) + { + imgDefault.Visible = true; + + } + else + { + imgDefault.Visible = false; + } + + lblGreeting.Font.Name = Font_list.SelectedItem.Text; + if (Int32.Parse(Font_size.Text) > 0) + { + lblGreeting.Font.Size = FontUnit.Point(Int32.Parse(Font_size.Text)); + } + lblGreeting.Text = Greeting_text.Text; + } + } +} \ No newline at end of file diff --git a/GreetingsWebApp/GreetingsWebApp/VIVEK_Versions/v4_vivek_99.aspx.designer.cs b/GreetingsWebApp/GreetingsWebApp/VIVEK_Versions/v4_vivek_99.aspx.designer.cs new file mode 100644 index 0000000..98dbe6e --- /dev/null +++ b/GreetingsWebApp/GreetingsWebApp/VIVEK_Versions/v4_vivek_99.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 GreetingsWebApp.VIVEK { + + + public partial class v4_vivek_99 { + + /// + /// 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; + + /// + /// Fc_list control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.DropDownList Fc_list; + + /// + /// Bc_list control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.DropDownList Bc_list; + + /// + /// Border_style control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.RadioButtonList Border_style; + + /// + /// Checkbox control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.CheckBox Checkbox; + + /// + /// Font_list control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.DropDownList Font_list; + + /// + /// Font_size control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.TextBox Font_size; + + /// + /// Greeting_text control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.TextBox Greeting_text; + + /// + /// 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/GreetingsWebApp/GreetingsWebApp/VIVEK_Versions/v5_vivek_99.aspx b/GreetingsWebApp/GreetingsWebApp/VIVEK_Versions/v5_vivek_99.aspx new file mode 100644 index 0000000..4a0ea33 --- /dev/null +++ b/GreetingsWebApp/GreetingsWebApp/VIVEK_Versions/v5_vivek_99.aspx @@ -0,0 +1,50 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="v5_vivek_99.aspx.cs" Inherits="GreetingsWebApp.VIVEK.v5_vivek_99" %> + + + + + + + + +
+
+ Choose Background Color:
+ + +
+ Choose a Font:
+ + +
+ specify a numeric font size:
+ +
+ Choose a border Style:
+ + +
+ + +
+ Enter the greeting text Below:
+ +
+ +
+ +
+
+ +
  +


+ +
+
+
+ + diff --git a/GreetingsWebApp/GreetingsWebApp/VIVEK_Versions/v5_vivek_99.aspx.cs b/GreetingsWebApp/GreetingsWebApp/VIVEK_Versions/v5_vivek_99.aspx.cs new file mode 100644 index 0000000..39413b5 --- /dev/null +++ b/GreetingsWebApp/GreetingsWebApp/VIVEK_Versions/v5_vivek_99.aspx.cs @@ -0,0 +1,105 @@ +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 GreetingsWebApp.VIVEK +{ + public partial class v5_vivek_99 : System.Web.UI.Page + { + private string Back_color,Font_type,fontsize,Border,greet_text; + private Boolean check; + protected void Page_Load(object sender, EventArgs e) + { + if (!this.IsPostBack) + { + //set the Background color list + string[] colorArray = Enum.GetNames(typeof(KnownColor)); + Bc_list.DataSource = colorArray; + Bc_list.DataBind(); + + //set font options + InstalledFontCollection fonts = new InstalledFontCollection(); + foreach (FontFamily family in fonts.Families) + { + Font_list.Items.Add(family.Name); + } + + //Add Border Styles + + string[] borderArray = Enum.GetNames(typeof(BorderStyle)); + Border_style.DataSource = borderArray; + Border_style.DataBind(); + + Border_style.SelectedIndex = 0; + + + } + + } + protected void page_preRender(object semder,EventArgs e) + { + ViewState["bccolor"] = Back_color; + ViewState["Fonttype"] = Font_type; + ViewState["fs"] = fontsize; + ViewState["bor"] = Border; + ViewState["gt"] = greet_text; + if(check==true) + { + ViewState["forpic"] ="true"; + } + else + { + ViewState["forpic"] = "false"; + } + + } + protected void Save_Click(object sender,EventArgs e) + { + Back_color =Bc_list.SelectedItem.Text; + Font_type =Font_list.SelectedItem.Text; + fontsize =Font_size.Text; + Border =Border_style.SelectedItem.Text; + greet_text = Greeting_text.Text; + if(Checkbox.Checked) + { + check = true; + } + else + { + check = false; + } + + } + protected void Update_Click(object sender, EventArgs e) + { + pnlCard.BackColor = Color.FromName((string)ViewState["bccolor"]); + + lblGreeting.Font.Name =(string)ViewState["Fonttype"]; + string FS = (string)ViewState["fs"]; + if (Int32.Parse(FS) > 0) + { + lblGreeting.Font.Size = FontUnit.Point(Int32.Parse(FS)); + } + + TypeConverter converter2 = TypeDescriptor.GetConverter(typeof(BorderStyle)); + pnlCard.BorderStyle = (BorderStyle)converter2.ConvertFromString((string)ViewState["bor"]); + + if ((string)(ViewState["forpic"])=="true") + { + imgDefault.ImageUrl = "index.jpg"; + imgDefault.Visible = true; + + } + else + { + imgDefault.Visible = false; + } + lblGreeting.Text = (string)ViewState["gt"]; + } + } +} \ No newline at end of file diff --git a/GreetingsWebApp/GreetingsWebApp/VIVEK_Versions/v5_vivek_99.aspx.designer.cs b/GreetingsWebApp/GreetingsWebApp/VIVEK_Versions/v5_vivek_99.aspx.designer.cs new file mode 100644 index 0000000..778017e --- /dev/null +++ b/GreetingsWebApp/GreetingsWebApp/VIVEK_Versions/v5_vivek_99.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 GreetingsWebApp.VIVEK { + + + public partial class v5_vivek_99 { + + /// + /// 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; + + /// + /// Bc_list control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.DropDownList Bc_list; + + /// + /// Font_list control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.DropDownList Font_list; + + /// + /// Font_size control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.TextBox Font_size; + + /// + /// Border_style control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.RadioButtonList Border_style; + + /// + /// Checkbox control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.CheckBox Checkbox; + + /// + /// Greeting_text control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.TextBox Greeting_text; + + /// + /// Save control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Button Save; + + /// + /// Update control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Button Update; + + /// + /// 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/GreetingsWebApp/GreetingsWebApp/VIVEK_Versions/v6_1_vivek_99.aspx b/GreetingsWebApp/GreetingsWebApp/VIVEK_Versions/v6_1_vivek_99.aspx new file mode 100644 index 0000000..2b0e0f9 --- /dev/null +++ b/GreetingsWebApp/GreetingsWebApp/VIVEK_Versions/v6_1_vivek_99.aspx @@ -0,0 +1,40 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="v6_1_vivek_99.aspx.cs" Inherits="GreetingsWebApp.VIVEK.v6_1_vivek_99" %> + + + + + + + + +
+
+ Choose Background Color:
+ + +
+ Choose a Font:
+ + +
+ specify a numeric font size:
+ +
+ Choose a border Style:
+ + +
+ + +
+ Enter the greeting text Below:
+ +
+ + +
+
+
+
+ + diff --git a/GreetingsWebApp/GreetingsWebApp/VIVEK_Versions/v6_1_vivek_99.aspx.cs b/GreetingsWebApp/GreetingsWebApp/VIVEK_Versions/v6_1_vivek_99.aspx.cs new file mode 100644 index 0000000..9db5b97 --- /dev/null +++ b/GreetingsWebApp/GreetingsWebApp/VIVEK_Versions/v6_1_vivek_99.aspx.cs @@ -0,0 +1,86 @@ +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 GreetingsWebApp.VIVEK +{ + public partial class v6_1_vivek_99 : System.Web.UI.Page + { + protected void Page_Load(object sender, EventArgs e) + { + if (!this.IsPostBack) + { + //set the Background color list + string[] colorArray = Enum.GetNames(typeof(KnownColor)); + Bc_list.DataSource = colorArray; + Bc_list.DataBind(); + + //set font options + InstalledFontCollection fonts = new InstalledFontCollection(); + foreach (FontFamily family in fonts.Families) + { + Font_list.Items.Add(family.Name); + } + + //Add Border Styles + + string[] borderArray = Enum.GetNames(typeof(BorderStyle)); + Border_style.DataSource = borderArray; + Border_style.DataBind(); + + Border_style.SelectedIndex = 0; + + } } + + + + + public string bccolor + { + get + { + return Bc_list.SelectedItem.Text; + } + } + + public string fonttype + { + get { return Font_list.SelectedItem.Text; } + } + + public string fontsize + { + get { return Font_size.Text; } + } + + public string borderstyle + { + get { return Border_style.SelectedItem.Text; } + } + public bool Cb + { + get + { + if (Checkbox.Checked) + return true; + else + return false; + } + + + } + + public string gt + { + get { return Greeting_text.Text; } + } + } + } + + + diff --git a/GreetingsWebApp/GreetingsWebApp/VIVEK_Versions/v6_1_vivek_99.aspx.designer.cs b/GreetingsWebApp/GreetingsWebApp/VIVEK_Versions/v6_1_vivek_99.aspx.designer.cs new file mode 100644 index 0000000..df2ec7c --- /dev/null +++ b/GreetingsWebApp/GreetingsWebApp/VIVEK_Versions/v6_1_vivek_99.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 GreetingsWebApp.VIVEK { + + + public partial class v6_1_vivek_99 { + + /// + /// 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; + + /// + /// Bc_list control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.DropDownList Bc_list; + + /// + /// Font_list control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.DropDownList Font_list; + + /// + /// Font_size control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.TextBox Font_size; + + /// + /// Border_style control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.RadioButtonList Border_style; + + /// + /// Checkbox control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.CheckBox Checkbox; + + /// + /// Greeting_text control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.TextBox Greeting_text; + + /// + /// Update control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Button Update; + } +} diff --git a/GreetingsWebApp/GreetingsWebApp/VIVEK_Versions/v6_2_vivek_99.aspx b/GreetingsWebApp/GreetingsWebApp/VIVEK_Versions/v6_2_vivek_99.aspx new file mode 100644 index 0000000..041265c --- /dev/null +++ b/GreetingsWebApp/GreetingsWebApp/VIVEK_Versions/v6_2_vivek_99.aspx @@ -0,0 +1,25 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="v6_2_vivek_99.aspx.cs" Inherits="GreetingsWebApp.VIVEK.v6_2_vivek_99" %> +<%@ PreviousPageType VirtualPath="~/VIVEK/v6_1_vivek_99.aspx" %> + + + + + + + +
+
+ + +
  +


+ +
+
+
+ + diff --git a/GreetingsWebApp/GreetingsWebApp/VIVEK_Versions/v6_2_vivek_99.aspx.cs b/GreetingsWebApp/GreetingsWebApp/VIVEK_Versions/v6_2_vivek_99.aspx.cs new file mode 100644 index 0000000..b22aafa --- /dev/null +++ b/GreetingsWebApp/GreetingsWebApp/VIVEK_Versions/v6_2_vivek_99.aspx.cs @@ -0,0 +1,48 @@ +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 GreetingsWebApp.VIVEK +{ + public partial class v6_2_vivek_99 : System.Web.UI.Page + { + protected void Page_Load(object sender, EventArgs e) + { + + if(PreviousPage!=null && PreviousPage.IsCrossPagePostBack) + { + + pnlCard.BackColor = Color.FromName(PreviousPage.bccolor); + + lblGreeting.Font.Name = PreviousPage.fonttype; + + if (Int32.Parse(PreviousPage.fontsize) > 0) + { + lblGreeting.Font.Size = FontUnit.Point(Int32.Parse(PreviousPage.fontsize)); + } + + TypeConverter converter2 = TypeDescriptor.GetConverter(typeof(BorderStyle)); + pnlCard.BorderStyle = (BorderStyle)converter2.ConvertFromString(PreviousPage.borderstyle); + + if (PreviousPage.Cb==true) + { + imgDefault.ImageUrl = "index.jpg"; + imgDefault.Visible = true; + + } + else + { + imgDefault.Visible = false; + } + lblGreeting.Text = PreviousPage.gt; + } + + + } + } +} \ No newline at end of file diff --git a/GreetingsWebApp/GreetingsWebApp/VIVEK_Versions/v6_2_vivek_99.aspx.designer.cs b/GreetingsWebApp/GreetingsWebApp/VIVEK_Versions/v6_2_vivek_99.aspx.designer.cs new file mode 100644 index 0000000..4f5b58c --- /dev/null +++ b/GreetingsWebApp/GreetingsWebApp/VIVEK_Versions/v6_2_vivek_99.aspx.designer.cs @@ -0,0 +1,63 @@ +//------------------------------------------------------------------------------ +// +// 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 GreetingsWebApp.VIVEK { + + + public partial class v6_2_vivek_99 { + + /// + /// 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; + + /// + /// PreviousPage property. + /// + /// + /// Auto-generated property. + /// + public new GreetingsWebApp.VIVEK.v6_1_vivek_99 PreviousPage { + get { + return ((GreetingsWebApp.VIVEK.v6_1_vivek_99)(base.PreviousPage)); + } + } + } +} diff --git a/GreetingsWebApp/GreetingsWebApp/VIVEK_Versions/v7_1_vivek_99.aspx b/GreetingsWebApp/GreetingsWebApp/VIVEK_Versions/v7_1_vivek_99.aspx new file mode 100644 index 0000000..eb4146c --- /dev/null +++ b/GreetingsWebApp/GreetingsWebApp/VIVEK_Versions/v7_1_vivek_99.aspx @@ -0,0 +1,42 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="v7_1_vivek_99.aspx.cs" Inherits="GreetingsWebApp.VIVEK.v7_1_vivek_99" %> + + + + + + + + +
+
+ Choose Background Color:
+ + +
+ Choose a Font:
+ + +
+ specify a numeric font size:
+ +
+ Choose a border Style:
+ + +
+ + +
+ Enter the greeting text Below:
+ +
+ +
+ +
+
+ +
+
+ + diff --git a/GreetingsWebApp/GreetingsWebApp/VIVEK_Versions/v7_1_vivek_99.aspx.cs b/GreetingsWebApp/GreetingsWebApp/VIVEK_Versions/v7_1_vivek_99.aspx.cs new file mode 100644 index 0000000..886e24c --- /dev/null +++ b/GreetingsWebApp/GreetingsWebApp/VIVEK_Versions/v7_1_vivek_99.aspx.cs @@ -0,0 +1,62 @@ +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 GreetingsWebApp.VIVEK +{ + public partial class v7_1_vivek_99 : System.Web.UI.Page + { + protected void Page_Load(object sender, EventArgs e) + { + if (!this.IsPostBack) + { + //set the Background color list + string[] colorArray = Enum.GetNames(typeof(KnownColor)); + Bc_list.DataSource = colorArray; + Bc_list.DataBind(); + + //set font options + InstalledFontCollection fonts = new InstalledFontCollection(); + foreach (FontFamily family in fonts.Families) + { + Font_list.Items.Add(family.Name); + } + + //Add Border Styles + + string[] borderArray = Enum.GetNames(typeof(BorderStyle)); + Border_style.DataSource = borderArray; + Border_style.DataBind(); + + Border_style.SelectedIndex = 0; + + } + + } + protected void Update_Click(object sender,EventArgs e) + { + string url = "v7_2_vivek_99.aspx?"; + url += "bccolor=" + Bc_list.SelectedItem.Text; + url += "&fonttype=" + Font_list.SelectedItem.Text; + url += "&fontsize=" + Font_size.Text; + url += "&border=" + Border_style.SelectedItem.Text; + url += ">=" + Greeting_text.Text; + if(Checkbox.Checked) + { + url += "&cb=" + "true"; + } + else + { + url += "&cb=" + "false"; + } + + Response.Redirect(url); + } + } +} \ No newline at end of file diff --git a/GreetingsWebApp/GreetingsWebApp/VIVEK_Versions/v7_1_vivek_99.aspx.designer.cs b/GreetingsWebApp/GreetingsWebApp/VIVEK_Versions/v7_1_vivek_99.aspx.designer.cs new file mode 100644 index 0000000..4334d7d --- /dev/null +++ b/GreetingsWebApp/GreetingsWebApp/VIVEK_Versions/v7_1_vivek_99.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 GreetingsWebApp.VIVEK { + + + public partial class v7_1_vivek_99 { + + /// + /// 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; + + /// + /// Bc_list control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.DropDownList Bc_list; + + /// + /// Font_list control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.DropDownList Font_list; + + /// + /// Font_size control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.TextBox Font_size; + + /// + /// Border_style control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.RadioButtonList Border_style; + + /// + /// Checkbox control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.CheckBox Checkbox; + + /// + /// Greeting_text control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.TextBox Greeting_text; + + /// + /// Update control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Button Update; + } +} diff --git a/GreetingsWebApp/GreetingsWebApp/VIVEK_Versions/v7_2_vivek_99.aspx b/GreetingsWebApp/GreetingsWebApp/VIVEK_Versions/v7_2_vivek_99.aspx new file mode 100644 index 0000000..2697387 --- /dev/null +++ b/GreetingsWebApp/GreetingsWebApp/VIVEK_Versions/v7_2_vivek_99.aspx @@ -0,0 +1,24 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="v7_2_vivek_99_99.aspx.cs" Inherits="GreetingsWebApp.VIVEK.v7_2_vivek_99" %> + + + + + + + + +
+
+ +
  +


+ +
+
+
+ + diff --git a/GreetingsWebApp/GreetingsWebApp/VIVEK_Versions/v7_2_vivek_99.aspx.cs b/GreetingsWebApp/GreetingsWebApp/VIVEK_Versions/v7_2_vivek_99.aspx.cs new file mode 100644 index 0000000..a984308 --- /dev/null +++ b/GreetingsWebApp/GreetingsWebApp/VIVEK_Versions/v7_2_vivek_99.aspx.cs @@ -0,0 +1,42 @@ +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 GreetingsWebApp.VIVEK +{ + public partial class v7_2_vivek_99 : System.Web.UI.Page + { + protected void Page_Load(object sender, EventArgs e) + { + pnlCard.BackColor = Color.FromName(Request.QueryString["bccolor"]); + + lblGreeting.Font.Name = Request.QueryString["fonttype"]; + + if (Int32.Parse(Request.QueryString["fontsize"]) > 0) + { + lblGreeting.Font.Size = FontUnit.Point(Int32.Parse(Request.QueryString["fontsize"])); + } + + TypeConverter converter2 = TypeDescriptor.GetConverter(typeof(BorderStyle)); + pnlCard.BorderStyle = (BorderStyle)converter2.ConvertFromString(Request.QueryString["border"]); + + if (Request.QueryString["cb"] =="true") + { + imgDefault.ImageUrl = "index.jpg"; + imgDefault.Visible = true; + + } + else + { + imgDefault.Visible = false; + } + lblGreeting.Text = Request.QueryString["gt"]; + } + } +} \ No newline at end of file diff --git a/GreetingsWebApp/GreetingsWebApp/VIVEK_Versions/v7_2_vivek_99.aspx.designer.cs b/GreetingsWebApp/GreetingsWebApp/VIVEK_Versions/v7_2_vivek_99.aspx.designer.cs new file mode 100644 index 0000000..cdd4ded --- /dev/null +++ b/GreetingsWebApp/GreetingsWebApp/VIVEK_Versions/v7_2_vivek_99.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 GreetingsWebApp.VIVEK { + + + public partial class v7_2_vivek_99 { + + /// + /// 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/GreetingsWebApp/GreetingsWebApp/VIVEK_Versions/v8_1_vivek_99.aspx b/GreetingsWebApp/GreetingsWebApp/VIVEK_Versions/v8_1_vivek_99.aspx new file mode 100644 index 0000000..d6e6c66 --- /dev/null +++ b/GreetingsWebApp/GreetingsWebApp/VIVEK_Versions/v8_1_vivek_99.aspx @@ -0,0 +1,51 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeFile="v8_1_vivek_99.aspx.cs" Inherits="GreetingsWebApp.VIVEK.v8_1_vivek_99" %> + + + + + + + + +
+
+ Choose Background Color:
+ + +
+ Choose a Font:
+ + +
+ specify a numeric font size:
+ +
+ Choose a border Style:
+ + +
+ + +
+ Enter the greeting text Below:
+ +
+ +
+ +
+
+ +
  +


+ +
+ +
+
+ + diff --git a/GreetingsWebApp/GreetingsWebApp/VIVEK_Versions/v8_1_vivek_99.aspx.cs b/GreetingsWebApp/GreetingsWebApp/VIVEK_Versions/v8_1_vivek_99.aspx.cs new file mode 100644 index 0000000..09ffe3b --- /dev/null +++ b/GreetingsWebApp/GreetingsWebApp/VIVEK_Versions/v8_1_vivek_99.aspx.cs @@ -0,0 +1,64 @@ +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 GreetingsWebApp.VIVEK +{ + public partial class v8_1_vivek_99 : System.Web.UI.Page + { + protected void Page_Load(object sender, EventArgs e) + { + if (!this.IsPostBack) + { + //set the Background color list + string[] colorArray = Enum.GetNames(typeof(KnownColor)); + Bc_list.DataSource = colorArray; + Bc_list.DataBind(); + + + //set font options + InstalledFontCollection fonts = new InstalledFontCollection(); + foreach (FontFamily family in fonts.Families) + { + Font_list.Items.Add(family.Name); + } + + //Add Border Styles + + string[] borderArray = Enum.GetNames(typeof(BorderStyle)); + Border_style.DataSource = borderArray; + Border_style.DataBind(); + + Border_style.SelectedIndex = 0; + + } + + } + protected void Update_Click(object sender,EventArgs e) + { + HttpCookie cook = new HttpCookie("GtData"); + cook["bccolor"] =Bc_list.SelectedItem.Text; + cook["fonttype"] = Font_list.SelectedItem.Text; + cook["fontsize"] = Font_size.Text; + cook["border"] = Border_style.SelectedItem.Text; + if(Checkbox.Checked) + { + cook["forpic"] = "true"; + } + else + { + cook["forpic"] = "false"; + } + cook["gt"] = Greeting_text.Text; + + Response.Cookies.Add(cook); + Response.Redirect("~/VIVEK/v8_2_vivek_99.aspx"); + } + } +} \ No newline at end of file diff --git a/GreetingsWebApp/GreetingsWebApp/VIVEK_Versions/v8_1_vivek_99.aspx.designer.cs b/GreetingsWebApp/GreetingsWebApp/VIVEK_Versions/v8_1_vivek_99.aspx.designer.cs new file mode 100644 index 0000000..6b2e90c --- /dev/null +++ b/GreetingsWebApp/GreetingsWebApp/VIVEK_Versions/v8_1_vivek_99.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 GreetingsWebApp.VIVEK { + + + public partial class v8_1_vivek_99 { + + /// + /// 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; + + /// + /// Bc_list control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.DropDownList Bc_list; + + /// + /// Font_list control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.DropDownList Font_list; + + /// + /// Font_size control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.TextBox Font_size; + + /// + /// Border_style control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.RadioButtonList Border_style; + + /// + /// Checkbox control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.CheckBox Checkbox; + + /// + /// Greeting_text control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.TextBox Greeting_text; + + /// + /// Update control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Button Update; + + /// + /// 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/GreetingsWebApp/GreetingsWebApp/VIVEK_Versions/v8_2_vivek_99.aspx b/GreetingsWebApp/GreetingsWebApp/VIVEK_Versions/v8_2_vivek_99.aspx new file mode 100644 index 0000000..da189cb --- /dev/null +++ b/GreetingsWebApp/GreetingsWebApp/VIVEK_Versions/v8_2_vivek_99.aspx @@ -0,0 +1,24 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeFile="v8_2_vivek_99.aspx.cs" Inherits="GreetingsWebApp.VIVEK.v8_2_vivek_99" %> + + + + + + + + +
+
+ +
  +


+ +
+
+
+ + diff --git a/GreetingsWebApp/GreetingsWebApp/VIVEK_Versions/v8_2_vivek_99.aspx.cs b/GreetingsWebApp/GreetingsWebApp/VIVEK_Versions/v8_2_vivek_99.aspx.cs new file mode 100644 index 0000000..3adb377 --- /dev/null +++ b/GreetingsWebApp/GreetingsWebApp/VIVEK_Versions/v8_2_vivek_99.aspx.cs @@ -0,0 +1,54 @@ +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 GreetingsWebApp.VIVEK +{ + public partial class v8_2_vivek_99 : System.Web.UI.Page + { + protected void Page_Load(object sender, EventArgs e) + { + string backcolor, ft, fs, border, forpic, greettext; + HttpCookie cookie = Request.Cookies["GtData"]; + if (cookie != null) + { + backcolor = cookie["bccolor"]; + ft = cookie["fonttype"]; + fs = cookie["fontsize"]; + border = cookie["border"]; + forpic = cookie["forpic"]; + greettext = cookie["gt"]; + + pnlCard.BackColor = Color.FromName(backcolor); + + lblGreeting.Font.Name = ft; + + if (Int32.Parse(fs) > 0) + { + lblGreeting.Font.Size = FontUnit.Point(Int32.Parse(fs)); + } + + TypeConverter converter2 = TypeDescriptor.GetConverter(typeof(BorderStyle)); + pnlCard.BorderStyle = (BorderStyle)converter2.ConvertFromString(border); + + if (forpic == "true") + { + imgDefault.ImageUrl = "index.jpg"; + imgDefault.Visible = true; + + } + else + { + imgDefault.Visible = false; + } + lblGreeting.Text = greettext; + } + } + } +} \ No newline at end of file diff --git a/GreetingsWebApp/GreetingsWebApp/VIVEK_Versions/v8_2_vivek_99.aspx.designer.cs b/GreetingsWebApp/GreetingsWebApp/VIVEK_Versions/v8_2_vivek_99.aspx.designer.cs new file mode 100644 index 0000000..142e47c --- /dev/null +++ b/GreetingsWebApp/GreetingsWebApp/VIVEK_Versions/v8_2_vivek_99.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 GreetingsWebApp.VIVEK { + + + public partial class v8_2_vivek_99 { + + /// + /// 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/GreetingsWebApp/GreetingsWebApp/VIVEK_Versions/v9_1_vivek_99.aspx b/GreetingsWebApp/GreetingsWebApp/VIVEK_Versions/v9_1_vivek_99.aspx new file mode 100644 index 0000000..c56d558 --- /dev/null +++ b/GreetingsWebApp/GreetingsWebApp/VIVEK_Versions/v9_1_vivek_99.aspx @@ -0,0 +1,41 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeFile="v9_1_vivek_99.aspx.cs" Inherits="GreetingsWebApp.VIVEK.v9_1_vivek_99" %> + + + + + + + + +
+
+ Choose Background Color:
+ + +
+ Choose a Font:
+ + +
+ specify a numeric font size:
+ +
+ Choose a border Style:
+ + +
+ + +
+ Enter the greeting text Below:
+ +
+ +
+ +
+
+
+
+ + diff --git a/GreetingsWebApp/GreetingsWebApp/VIVEK_Versions/v9_1_vivek_99.aspx.cs b/GreetingsWebApp/GreetingsWebApp/VIVEK_Versions/v9_1_vivek_99.aspx.cs new file mode 100644 index 0000000..6d6b701 --- /dev/null +++ b/GreetingsWebApp/GreetingsWebApp/VIVEK_Versions/v9_1_vivek_99.aspx.cs @@ -0,0 +1,61 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; +using System.Drawing; +using System.Drawing.Text; +using System.ComponentModel; +using System.Web.SessionState; +namespace GreetingsWebApp.VIVEK +{ + public partial class v9_1_vivek_99 : System.Web.UI.Page + { + protected void Page_Load(object sender, EventArgs e) + { + if (!this.IsPostBack) + { + //set the Background color list + string[] colorArray = Enum.GetNames(typeof(KnownColor)); + Bc_list.DataSource = colorArray; + Bc_list.DataBind(); + + + //set font options + InstalledFontCollection fonts = new InstalledFontCollection(); + foreach (FontFamily family in fonts.Families) + { + Font_list.Items.Add(family.Name); + } + + //Add Border Styles + + string[] borderArray = Enum.GetNames(typeof(BorderStyle)); + Border_style.DataSource = borderArray; + Border_style.DataBind(); + + Border_style.SelectedIndex = 0; + + } + + } + protected void Update_Click(object sender,EventArgs e) + { + Session["bccolor"] = Bc_list.SelectedItem.Text; + Session["fonttype"] = Font_list.SelectedItem.Text; + Session["fontsize"] = Font_size.Text; + Session["border"] = Border_style.SelectedItem.Text; + if (Checkbox.Checked) + { + Session["forpic"] = "true"; + } + else + { + Session["forpic"] = "false"; + } + Session["gt"] = Greeting_text.Text; + Response.Redirect("~/VIVEK/v9_2_vivek_99.aspx"); + } + } +} \ No newline at end of file diff --git a/GreetingsWebApp/GreetingsWebApp/VIVEK_Versions/v9_1_vivek_99.aspx.designer.cs b/GreetingsWebApp/GreetingsWebApp/VIVEK_Versions/v9_1_vivek_99.aspx.designer.cs new file mode 100644 index 0000000..9a2d900 --- /dev/null +++ b/GreetingsWebApp/GreetingsWebApp/VIVEK_Versions/v9_1_vivek_99.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 GreetingsWebApp.VIVEK { + + + public partial class v9_1_vivek_99 { + + /// + /// 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; + + /// + /// Bc_list control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.DropDownList Bc_list; + + /// + /// Font_list control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.DropDownList Font_list; + + /// + /// Font_size control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.TextBox Font_size; + + /// + /// Border_style control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.RadioButtonList Border_style; + + /// + /// Checkbox control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.CheckBox Checkbox; + + /// + /// Greeting_text control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.TextBox Greeting_text; + + /// + /// Update control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Button Update; + } +} diff --git a/GreetingsWebApp/GreetingsWebApp/VIVEK_Versions/v9_2_vivek_99.aspx b/GreetingsWebApp/GreetingsWebApp/VIVEK_Versions/v9_2_vivek_99.aspx new file mode 100644 index 0000000..1b1da51 --- /dev/null +++ b/GreetingsWebApp/GreetingsWebApp/VIVEK_Versions/v9_2_vivek_99.aspx @@ -0,0 +1,25 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeFile="v9_2_vivek_99.aspx.cs" Inherits="GreetingsWebApp.VIVEK.v9_2_vivek_99" %> + + + + + + + + +
+
+ +
  +


+ +
+ +
+
+ + diff --git a/GreetingsWebApp/GreetingsWebApp/VIVEK_Versions/v9_2_vivek_99.aspx.cs b/GreetingsWebApp/GreetingsWebApp/VIVEK_Versions/v9_2_vivek_99.aspx.cs new file mode 100644 index 0000000..5780221 --- /dev/null +++ b/GreetingsWebApp/GreetingsWebApp/VIVEK_Versions/v9_2_vivek_99.aspx.cs @@ -0,0 +1,54 @@ +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.Web.SessionState; +namespace GreetingsWebApp.VIVEK +{ + public partial class v9_2_vivek_99 : System.Web.UI.Page + { + protected void Page_Load(object sender, EventArgs e) + { + string backcolor, ft, fs, border, forpic, greettext; + + + backcolor = (string)Session["bccolor"]; + ft = (string)Session["fonttype"]; + fs = (string)Session["fontsize"]; + border = (string)Session["border"]; + forpic = (string)Session["forpic"]; + greettext = (string)Session["gt"]; + + pnlCard.BackColor = Color.FromName(backcolor); + + lblGreeting.Font.Name = ft; + + if (Int32.Parse(fs) > 0) + { + lblGreeting.Font.Size = FontUnit.Point(Int32.Parse(fs)); + } + + TypeConverter converter2 = TypeDescriptor.GetConverter(typeof(BorderStyle)); + pnlCard.BorderStyle = (BorderStyle)converter2.ConvertFromString(border); + + if (forpic == "true") + { + imgDefault.ImageUrl = "index.jpg"; + imgDefault.Visible = true; + + } + else + { + imgDefault.Visible = false; + } + lblGreeting.Text = greettext; + + + } + } + } diff --git a/GreetingsWebApp/GreetingsWebApp/VIVEK_Versions/v9_2_vivek_99.aspx.designer.cs b/GreetingsWebApp/GreetingsWebApp/VIVEK_Versions/v9_2_vivek_99.aspx.designer.cs new file mode 100644 index 0000000..01acaa3 --- /dev/null +++ b/GreetingsWebApp/GreetingsWebApp/VIVEK_Versions/v9_2_vivek_99.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 GreetingsWebApp.VIVEK { + + + public partial class v9_2_vivek_99 { + + /// + /// 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/GreetingsWebApp/GreetingsWebApp/bin/Antlr3.Runtime.dll b/GreetingsWebApp/GreetingsWebApp/bin/Antlr3.Runtime.dll new file mode 100644 index 0000000..34bd478 Binary files /dev/null and b/GreetingsWebApp/GreetingsWebApp/bin/Antlr3.Runtime.dll differ diff --git a/GreetingsWebApp/GreetingsWebApp/bin/AspNet.ScriptManager.bootstrap.dll b/GreetingsWebApp/GreetingsWebApp/bin/AspNet.ScriptManager.bootstrap.dll new file mode 100644 index 0000000..8f6eb63 Binary files /dev/null and b/GreetingsWebApp/GreetingsWebApp/bin/AspNet.ScriptManager.bootstrap.dll differ diff --git a/GreetingsWebApp/GreetingsWebApp/bin/AspNet.ScriptManager.jQuery.dll b/GreetingsWebApp/GreetingsWebApp/bin/AspNet.ScriptManager.jQuery.dll new file mode 100644 index 0000000..d88264e Binary files /dev/null and b/GreetingsWebApp/GreetingsWebApp/bin/AspNet.ScriptManager.jQuery.dll differ diff --git a/GreetingsWebApp/GreetingsWebApp/bin/EntityFramework.SqlServer.dll b/GreetingsWebApp/GreetingsWebApp/bin/EntityFramework.SqlServer.dll new file mode 100644 index 0000000..314cacc Binary files /dev/null and b/GreetingsWebApp/GreetingsWebApp/bin/EntityFramework.SqlServer.dll differ diff --git a/GreetingsWebApp/GreetingsWebApp/bin/EntityFramework.dll b/GreetingsWebApp/GreetingsWebApp/bin/EntityFramework.dll new file mode 100644 index 0000000..c388533 Binary files /dev/null and b/GreetingsWebApp/GreetingsWebApp/bin/EntityFramework.dll differ diff --git a/GreetingsWebApp/GreetingsWebApp/bin/Microsoft.AspNet.FriendlyUrls.dll b/GreetingsWebApp/GreetingsWebApp/bin/Microsoft.AspNet.FriendlyUrls.dll new file mode 100644 index 0000000..deaf9fc Binary files /dev/null and b/GreetingsWebApp/GreetingsWebApp/bin/Microsoft.AspNet.FriendlyUrls.dll differ diff --git a/GreetingsWebApp/GreetingsWebApp/bin/Microsoft.AspNet.Identity.Core.dll b/GreetingsWebApp/GreetingsWebApp/bin/Microsoft.AspNet.Identity.Core.dll new file mode 100644 index 0000000..86fbdf3 Binary files /dev/null and b/GreetingsWebApp/GreetingsWebApp/bin/Microsoft.AspNet.Identity.Core.dll differ diff --git a/GreetingsWebApp/GreetingsWebApp/bin/Microsoft.AspNet.Identity.EntityFramework.dll b/GreetingsWebApp/GreetingsWebApp/bin/Microsoft.AspNet.Identity.EntityFramework.dll new file mode 100644 index 0000000..67ced5b Binary files /dev/null and b/GreetingsWebApp/GreetingsWebApp/bin/Microsoft.AspNet.Identity.EntityFramework.dll differ diff --git a/GreetingsWebApp/GreetingsWebApp/bin/Microsoft.AspNet.Identity.Owin.dll b/GreetingsWebApp/GreetingsWebApp/bin/Microsoft.AspNet.Identity.Owin.dll new file mode 100644 index 0000000..c586452 Binary files /dev/null and b/GreetingsWebApp/GreetingsWebApp/bin/Microsoft.AspNet.Identity.Owin.dll differ diff --git a/GreetingsWebApp/GreetingsWebApp/bin/Microsoft.AspNet.Web.Optimization.WebForms.dll b/GreetingsWebApp/GreetingsWebApp/bin/Microsoft.AspNet.Web.Optimization.WebForms.dll new file mode 100644 index 0000000..bc3c130 Binary files /dev/null and b/GreetingsWebApp/GreetingsWebApp/bin/Microsoft.AspNet.Web.Optimization.WebForms.dll differ diff --git a/GreetingsWebApp/GreetingsWebApp/bin/Microsoft.Owin.Host.SystemWeb.dll b/GreetingsWebApp/GreetingsWebApp/bin/Microsoft.Owin.Host.SystemWeb.dll new file mode 100644 index 0000000..c7120a0 Binary files /dev/null and b/GreetingsWebApp/GreetingsWebApp/bin/Microsoft.Owin.Host.SystemWeb.dll differ diff --git a/GreetingsWebApp/GreetingsWebApp/bin/Microsoft.Owin.Security.Cookies.dll b/GreetingsWebApp/GreetingsWebApp/bin/Microsoft.Owin.Security.Cookies.dll new file mode 100644 index 0000000..a16a29a Binary files /dev/null and b/GreetingsWebApp/GreetingsWebApp/bin/Microsoft.Owin.Security.Cookies.dll differ diff --git a/GreetingsWebApp/GreetingsWebApp/bin/Microsoft.Owin.Security.Facebook.dll b/GreetingsWebApp/GreetingsWebApp/bin/Microsoft.Owin.Security.Facebook.dll new file mode 100644 index 0000000..3cab090 Binary files /dev/null and b/GreetingsWebApp/GreetingsWebApp/bin/Microsoft.Owin.Security.Facebook.dll differ diff --git a/GreetingsWebApp/GreetingsWebApp/bin/Microsoft.Owin.Security.Google.dll b/GreetingsWebApp/GreetingsWebApp/bin/Microsoft.Owin.Security.Google.dll new file mode 100644 index 0000000..9f2b533 Binary files /dev/null and b/GreetingsWebApp/GreetingsWebApp/bin/Microsoft.Owin.Security.Google.dll differ diff --git a/GreetingsWebApp/GreetingsWebApp/bin/Microsoft.Owin.Security.MicrosoftAccount.dll b/GreetingsWebApp/GreetingsWebApp/bin/Microsoft.Owin.Security.MicrosoftAccount.dll new file mode 100644 index 0000000..f4184ed Binary files /dev/null and b/GreetingsWebApp/GreetingsWebApp/bin/Microsoft.Owin.Security.MicrosoftAccount.dll differ diff --git a/GreetingsWebApp/GreetingsWebApp/bin/Microsoft.Owin.Security.OAuth.dll b/GreetingsWebApp/GreetingsWebApp/bin/Microsoft.Owin.Security.OAuth.dll new file mode 100644 index 0000000..2b1d0f6 Binary files /dev/null and b/GreetingsWebApp/GreetingsWebApp/bin/Microsoft.Owin.Security.OAuth.dll differ diff --git a/GreetingsWebApp/GreetingsWebApp/bin/Microsoft.Owin.Security.Twitter.dll b/GreetingsWebApp/GreetingsWebApp/bin/Microsoft.Owin.Security.Twitter.dll new file mode 100644 index 0000000..09e704e Binary files /dev/null and b/GreetingsWebApp/GreetingsWebApp/bin/Microsoft.Owin.Security.Twitter.dll differ diff --git a/GreetingsWebApp/GreetingsWebApp/bin/Microsoft.Owin.Security.dll b/GreetingsWebApp/GreetingsWebApp/bin/Microsoft.Owin.Security.dll new file mode 100644 index 0000000..e44dc6a Binary files /dev/null and b/GreetingsWebApp/GreetingsWebApp/bin/Microsoft.Owin.Security.dll differ diff --git a/GreetingsWebApp/GreetingsWebApp/bin/Microsoft.Owin.dll b/GreetingsWebApp/GreetingsWebApp/bin/Microsoft.Owin.dll new file mode 100644 index 0000000..6a04e4d Binary files /dev/null and b/GreetingsWebApp/GreetingsWebApp/bin/Microsoft.Owin.dll differ diff --git a/GreetingsWebApp/GreetingsWebApp/bin/Microsoft.ScriptManager.MSAjax.dll b/GreetingsWebApp/GreetingsWebApp/bin/Microsoft.ScriptManager.MSAjax.dll new file mode 100644 index 0000000..f92d46a Binary files /dev/null and b/GreetingsWebApp/GreetingsWebApp/bin/Microsoft.ScriptManager.MSAjax.dll differ diff --git a/GreetingsWebApp/GreetingsWebApp/bin/Microsoft.ScriptManager.WebForms.dll b/GreetingsWebApp/GreetingsWebApp/bin/Microsoft.ScriptManager.WebForms.dll new file mode 100644 index 0000000..272d686 Binary files /dev/null and b/GreetingsWebApp/GreetingsWebApp/bin/Microsoft.ScriptManager.WebForms.dll differ diff --git a/GreetingsWebApp/GreetingsWebApp/bin/Microsoft.Web.Infrastructure.dll b/GreetingsWebApp/GreetingsWebApp/bin/Microsoft.Web.Infrastructure.dll new file mode 100644 index 0000000..85f1138 Binary files /dev/null and b/GreetingsWebApp/GreetingsWebApp/bin/Microsoft.Web.Infrastructure.dll differ diff --git a/GreetingsWebApp/GreetingsWebApp/bin/Newtonsoft.Json.dll b/GreetingsWebApp/GreetingsWebApp/bin/Newtonsoft.Json.dll new file mode 100644 index 0000000..0a91cd7 Binary files /dev/null and b/GreetingsWebApp/GreetingsWebApp/bin/Newtonsoft.Json.dll differ diff --git a/GreetingsWebApp/GreetingsWebApp/bin/Owin.dll b/GreetingsWebApp/GreetingsWebApp/bin/Owin.dll new file mode 100644 index 0000000..ba6e21e Binary files /dev/null and b/GreetingsWebApp/GreetingsWebApp/bin/Owin.dll differ diff --git a/GreetingsWebApp/GreetingsWebApp/bin/System.Web.Optimization.dll b/GreetingsWebApp/GreetingsWebApp/bin/System.Web.Optimization.dll new file mode 100644 index 0000000..393d416 Binary files /dev/null and b/GreetingsWebApp/GreetingsWebApp/bin/System.Web.Optimization.dll differ diff --git a/GreetingsWebApp/GreetingsWebApp/bin/System.Web.Providers.dll b/GreetingsWebApp/GreetingsWebApp/bin/System.Web.Providers.dll new file mode 100644 index 0000000..4572229 Binary files /dev/null and b/GreetingsWebApp/GreetingsWebApp/bin/System.Web.Providers.dll differ diff --git a/GreetingsWebApp/GreetingsWebApp/bin/WebGrease.dll b/GreetingsWebApp/GreetingsWebApp/bin/WebGrease.dll new file mode 100644 index 0000000..1d308f8 Binary files /dev/null and b/GreetingsWebApp/GreetingsWebApp/bin/WebGrease.dll differ diff --git a/GreetingsWebApp/GreetingsWebApp/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/GreetingsWebApp/GreetingsWebApp/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache new file mode 100644 index 0000000..3d59425 Binary files /dev/null and b/GreetingsWebApp/GreetingsWebApp/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/GreetingsWebApp/GreetingsWebApp/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs b/GreetingsWebApp/GreetingsWebApp/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs new file mode 100644 index 0000000..e69de29 diff --git a/GreetingsWebApp/GreetingsWebApp/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs b/GreetingsWebApp/GreetingsWebApp/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs new file mode 100644 index 0000000..e69de29 diff --git a/GreetingsWebApp/GreetingsWebApp/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs b/GreetingsWebApp/GreetingsWebApp/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs new file mode 100644 index 0000000..e69de29