diff --git a/GreetingsWebApp/GreetingsWebApp/GreetingsWebApp.csproj b/GreetingsWebApp/GreetingsWebApp/GreetingsWebApp.csproj index d979f3b..c1ff0d5 100644 --- a/GreetingsWebApp/GreetingsWebApp/GreetingsWebApp.csproj +++ b/GreetingsWebApp/GreetingsWebApp/GreetingsWebApp.csproj @@ -1,367 +1,392 @@ - - - - - Debug - AnyCPU - - - 2.0 - {9857FFBF-618D-46C3-8EF0-38BF3AF8B7C2} - {349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc} - Library - Properties - GreetingsWebApp - GreetingsWebApp - v4.5 - true - - - - - - - true - full - false - bin\ - DEBUG;TRACE - prompt - 4 - - - pdbonly - true - bin\ - TRACE - prompt - 4 - - - - - - - - - - - - - - - - - - - - - True - ..\packages\Microsoft.Web.Infrastructure.1.0.0.0\lib\net40\Microsoft.Web.Infrastructure.dll - - - ..\packages\AspNet.ScriptManager.bootstrap.3.0.0\lib\net45\AspNet.ScriptManager.bootstrap.dll - - - ..\packages\AspNet.ScriptManager.jQuery.1.10.2\lib\net45\AspNet.ScriptManager.jQuery.dll - - - ..\packages\Microsoft.AspNet.ScriptManager.MSAjax.5.0.0\lib\net45\Microsoft.ScriptManager.MSAjax.dll - - - ..\packages\Microsoft.AspNet.ScriptManager.WebForms.5.0.0\lib\net45\Microsoft.ScriptManager.WebForms.dll - - - ..\packages\Microsoft.AspNet.Web.Optimization.1.1.3\lib\net40\System.Web.Optimization.dll - - - True - ..\packages\WebGrease.1.5.2\lib\WebGrease.dll - - - True - ..\packages\Antlr.3.4.1.9004\lib\Antlr3.Runtime.dll - - - True - ..\packages\Newtonsoft.Json.5.0.6\lib\net45\Newtonsoft.Json.dll - - - True - ..\packages\Microsoft.AspNet.Web.Optimization.WebForms.1.1.3\lib\net45\Microsoft.AspNet.Web.Optimization.WebForms.dll - - - ..\packages\Microsoft.AspNet.FriendlyUrls.Core.1.0.2\lib\net45\Microsoft.AspNet.FriendlyUrls.dll - - - - - ..\packages\EntityFramework.6.1.0\lib\net45\EntityFramework.dll - - - ..\packages\EntityFramework.6.1.0\lib\net45\EntityFramework.SqlServer.dll - - - ..\packages\Microsoft.AspNet.Identity.Core.2.0.0\lib\net45\Microsoft.AspNet.Identity.Core.dll - - - ..\packages\Microsoft.AspNet.Identity.Owin.2.0.0\lib\net45\Microsoft.AspNet.Identity.Owin.dll - - - ..\packages\Microsoft.AspNet.Identity.EntityFramework.2.0.0\lib\net45\Microsoft.AspNet.Identity.EntityFramework.dll - - - ..\packages\Microsoft.AspNet.Providers.Core.1.2\lib\net40\System.Web.Providers.dll - - - ..\packages\Microsoft.Owin.2.1.0\lib\net45\Microsoft.Owin.dll - - - ..\packages\Microsoft.Owin.Host.SystemWeb.2.1.0\lib\net45\Microsoft.Owin.Host.SystemWeb.dll - - - ..\packages\Microsoft.Owin.Security.2.1.0\lib\net45\Microsoft.Owin.Security.dll - - - ..\packages\Microsoft.Owin.Security.Facebook.2.1.0\lib\net45\Microsoft.Owin.Security.Facebook.dll - - - ..\packages\Microsoft.Owin.Security.Cookies.2.1.0\lib\net45\Microsoft.Owin.Security.Cookies.dll - - - ..\packages\Microsoft.Owin.Security.Google.2.1.0\lib\net45\Microsoft.Owin.Security.Google.dll - - - ..\packages\Microsoft.Owin.Security.Twitter.2.1.0\lib\net45\Microsoft.Owin.Security.Twitter.dll - - - ..\packages\Microsoft.Owin.Security.MicrosoftAccount.2.1.0\lib\net45\Microsoft.Owin.Security.MicrosoftAccount.dll - - - ..\packages\Owin.1.0\lib\net40\Owin.dll - - - ..\packages\Microsoft.Owin.Security.OAuth.2.1.0\lib\net45\Microsoft.Owin.Security.OAuth.dll - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Web.config - - - Web.config - - - - - Confirm.aspx - ASPXCodeBehind - - - Confirm.aspx - - - Forgot.aspx - ASPXCodeBehind - - - Forgot.aspx - - - Login.aspx - ASPXCodeBehind - - - Login.aspx - - - Manage.aspx - ASPXCodeBehind - - - Manage.aspx - - - OpenAuthProviders.ascx - ASPXCodeBehind - - - OpenAuthProviders.ascx - - - Register.aspx - ASPXCodeBehind - - - Register.aspx - - - RegisterExternalLogin.aspx - ASPXCodeBehind - - - RegisterExternalLogin.aspx - - - ResetPassword.aspx - ASPXCodeBehind - - - ResetPassword.aspx - - - ResetPasswordConfirmation.aspx - ASPXCodeBehind - - - ResetPasswordConfirmation.aspx - - - - About.aspx - ASPXCodeBehind - - - About.aspx - - - - - - Contact.aspx - ASPXCodeBehind - - - Contact.aspx - - - Default.aspx - ASPXCodeBehind - - - Default.aspx - - - Global.asax - - - - - Site.Master - ASPXCodeBehind - - - Site.Master - - - Site.Mobile.Master - ASPXCodeBehind - - - Site.Mobile.Master - - - - ViewSwitcher.ascx - ASPXCodeBehind - - - ViewSwitcher.ascx - - - - - - - 10.0 - $(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion) - - - - - - - - - True - True - 1160 - / - http://localhost:1160/ - False - False - - - False - - - - + + + + + Debug + AnyCPU + + + 2.0 + {9857FFBF-618D-46C3-8EF0-38BF3AF8B7C2} + {349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc} + Library + Properties + GreetingsWebApp + GreetingsWebApp + v4.5 + true + + + + + + + + true + full + false + bin\ + DEBUG;TRACE + prompt + 4 + + + pdbonly + true + bin\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + + + + + + True + ..\packages\Microsoft.Web.Infrastructure.1.0.0.0\lib\net40\Microsoft.Web.Infrastructure.dll + + + ..\packages\AspNet.ScriptManager.bootstrap.3.0.0\lib\net45\AspNet.ScriptManager.bootstrap.dll + + + ..\packages\AspNet.ScriptManager.jQuery.1.10.2\lib\net45\AspNet.ScriptManager.jQuery.dll + + + ..\packages\Microsoft.AspNet.ScriptManager.MSAjax.5.0.0\lib\net45\Microsoft.ScriptManager.MSAjax.dll + + + ..\packages\Microsoft.AspNet.ScriptManager.WebForms.5.0.0\lib\net45\Microsoft.ScriptManager.WebForms.dll + + + ..\packages\Microsoft.AspNet.Web.Optimization.1.1.3\lib\net40\System.Web.Optimization.dll + + + True + ..\packages\WebGrease.1.5.2\lib\WebGrease.dll + + + True + ..\packages\Antlr.3.4.1.9004\lib\Antlr3.Runtime.dll + + + True + ..\packages\Newtonsoft.Json.5.0.6\lib\net45\Newtonsoft.Json.dll + + + True + ..\packages\Microsoft.AspNet.Web.Optimization.WebForms.1.1.3\lib\net45\Microsoft.AspNet.Web.Optimization.WebForms.dll + + + ..\packages\Microsoft.AspNet.FriendlyUrls.Core.1.0.2\lib\net45\Microsoft.AspNet.FriendlyUrls.dll + + + + + ..\packages\EntityFramework.6.1.0\lib\net45\EntityFramework.dll + + + ..\packages\EntityFramework.6.1.0\lib\net45\EntityFramework.SqlServer.dll + + + ..\packages\Microsoft.AspNet.Identity.Core.2.0.0\lib\net45\Microsoft.AspNet.Identity.Core.dll + + + ..\packages\Microsoft.AspNet.Identity.Owin.2.0.0\lib\net45\Microsoft.AspNet.Identity.Owin.dll + + + ..\packages\Microsoft.AspNet.Identity.EntityFramework.2.0.0\lib\net45\Microsoft.AspNet.Identity.EntityFramework.dll + + + ..\packages\Microsoft.AspNet.Providers.Core.1.2\lib\net40\System.Web.Providers.dll + + + ..\packages\Microsoft.Owin.2.1.0\lib\net45\Microsoft.Owin.dll + + + ..\packages\Microsoft.Owin.Host.SystemWeb.2.1.0\lib\net45\Microsoft.Owin.Host.SystemWeb.dll + + + ..\packages\Microsoft.Owin.Security.2.1.0\lib\net45\Microsoft.Owin.Security.dll + + + ..\packages\Microsoft.Owin.Security.Facebook.2.1.0\lib\net45\Microsoft.Owin.Security.Facebook.dll + + + ..\packages\Microsoft.Owin.Security.Cookies.2.1.0\lib\net45\Microsoft.Owin.Security.Cookies.dll + + + ..\packages\Microsoft.Owin.Security.Google.2.1.0\lib\net45\Microsoft.Owin.Security.Google.dll + + + ..\packages\Microsoft.Owin.Security.Twitter.2.1.0\lib\net45\Microsoft.Owin.Security.Twitter.dll + + + ..\packages\Microsoft.Owin.Security.MicrosoftAccount.2.1.0\lib\net45\Microsoft.Owin.Security.MicrosoftAccount.dll + + + ..\packages\Owin.1.0\lib\net40\Owin.dll + + + ..\packages\Microsoft.Owin.Security.OAuth.2.1.0\lib\net45\Microsoft.Owin.Security.OAuth.dll + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Web.config + + + Web.config + + + + + Confirm.aspx + ASPXCodeBehind + + + Confirm.aspx + + + Forgot.aspx + ASPXCodeBehind + + + Forgot.aspx + + + Login.aspx + ASPXCodeBehind + + + Login.aspx + + + Manage.aspx + ASPXCodeBehind + + + Manage.aspx + + + OpenAuthProviders.ascx + ASPXCodeBehind + + + OpenAuthProviders.ascx + + + Register.aspx + ASPXCodeBehind + + + Register.aspx + + + RegisterExternalLogin.aspx + ASPXCodeBehind + + + RegisterExternalLogin.aspx + + + ResetPassword.aspx + ASPXCodeBehind + + + ResetPassword.aspx + + + ResetPasswordConfirmation.aspx + ASPXCodeBehind + + + ResetPasswordConfirmation.aspx + + + + About.aspx + ASPXCodeBehind + + + About.aspx + + + + + + Contact.aspx + ASPXCodeBehind + + + Contact.aspx + + + Default.aspx + ASPXCodeBehind + + + Default.aspx + + + Global.asax + + + + + GreetingCardMaker_version3.aspx + ASPXCodeBehind + + + GreetingCardMaker_version3.aspx + + + GreetingCardMaker_version4.aspx + ASPXCodeBehind + + + GreetingCardMaker_version4.aspx + + + sagar_106.aspx + ASPXCodeBehind + + + sagar_106.aspx + + + Site.Master + ASPXCodeBehind + + + Site.Master + + + Site.Mobile.Master + ASPXCodeBehind + + + Site.Mobile.Master + + + + ViewSwitcher.ascx + ASPXCodeBehind + + + ViewSwitcher.ascx + + + + + + + 10.0 + $(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion) + + + + + + + + + True + True + 1160 + / + http://localhost:1160/ + False + False + + + False + + + + + --> \ No newline at end of file diff --git a/GreetingsWebApp/GreetingsWebApp/sagar/GreetingCardMaker_version3.aspx b/GreetingsWebApp/GreetingsWebApp/sagar/GreetingCardMaker_version3.aspx new file mode 100644 index 0000000..cf327c2 --- /dev/null +++ b/GreetingsWebApp/GreetingsWebApp/sagar/GreetingCardMaker_version3.aspx @@ -0,0 +1,48 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="GreetingCardMaker_version3.aspx.cs" Inherits="GreetingsWebApp.sagar.GreetingCardMaker_version3" %> + + + + + + + Greeting Card Maker + + + +
+
+ + + Choose a background color:
+

+ +
+ + Choose a font :
+

+ Specify a numeric font size:
+

+ Choose a border Style:
+

+

+ + + +
+ + Enter The Greeting text Below:
+

+ + +
+
+ + +
+
  +


+ +
+
+ + diff --git a/GreetingsWebApp/GreetingsWebApp/sagar/GreetingCardMaker_version3.aspx.cs b/GreetingsWebApp/GreetingsWebApp/sagar/GreetingCardMaker_version3.aspx.cs new file mode 100644 index 0000000..22c2f81 --- /dev/null +++ b/GreetingsWebApp/GreetingsWebApp/sagar/GreetingCardMaker_version3.aspx.cs @@ -0,0 +1,108 @@ +using System; +using System.Drawing; +using System.Web.UI.WebControls; +using System.Drawing.Text; +using System.ComponentModel; + +namespace GreetingsWebApp.sagar +{ + public partial class GreetingCardMaker_version3 : System.Web.UI.Page + { + protected void Page_Load(object sender, EventArgs e) + { + MultiView1.ActiveViewIndex = 0; + if (!this.IsPostBack) + { + string[] colorArray = Enum.GetNames(typeof(KnownColor)); + lstBackColor.DataSource = colorArray; + lstBackColor.DataBind(); + + + + /* lstBackColor.Items.Add("white"); + lstBackColor.Items.Add("red"); + lstBackColor.Items.Add("green"); + lstBackColor.Items.Add("blue"); + lstBackColor.Items.Add("yellow"); + */ + InstalledFontCollection fonts = new InstalledFontCollection(); + foreach (FontFamily family in fonts.Families) + { + lstFontName.Items.Add(family.Name); + + } + + /* + lstFontName.Items.Add("Times New roman"); + lstFontName.Items.Add("Arial"); + lstFontName.Items.Add("Verdana"); + lstFontName.Items.Add("Tahoma"); + */ + + string[] borderStyleArray = Enum.GetNames(typeof(BorderStyle)); + lstBorder.DataSource = borderStyleArray; + lstBorder.DataBind(); + + /* + ListItem item = new ListItem(); + + item.Text = BorderStyle.None.ToString(); + + item.Value = ((int)BorderStyle.None).ToString(); + + lstBorder.Items.Add(item); + */ + lstBorder.SelectedIndex = 0; + imgDefault.ImageUrl = "default.JPG"; + } + } + + protected void Button1_Click(object sender, EventArgs e) + { + MultiView1.SetActiveView(View2); + } + protected void cmdUpdate_Click(object sender, EventArgs e) + { + pnlCard.BackColor = Color.FromName(lstBackColor.SelectedItem.Text); + + lblGreeting.Font.Name = lstFontName.SelectedItem.Text; + + if (Int32.Parse(txtFontSize.Text) > 0) + { + lblGreeting.Font.Size = FontUnit.Point(Int32.Parse(txtFontSize.Text)); + + } + TypeConverter converter = TypeDescriptor.GetConverter(typeof(BorderStyle)); + pnlCard.BorderStyle = (BorderStyle)converter.ConvertFromString(lstBorder.SelectedItem.Text); + /*int borderValue = Int32.Parse(lstBorder.SelectedItem.Value); + pnlCard.BorderStyle = (BorderStyle)borderValue; + */ + if (chkPicture.Checked) + { + imgDefault.Visible = true; + } + else + { + imgDefault.Visible = false; + + } + 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_Click1(object sender, EventArgs e) + { + MultiView1.SetActiveView(View2); + } + + + } +} \ No newline at end of file diff --git a/GreetingsWebApp/GreetingsWebApp/sagar/GreetingCardMaker_version3.aspx.designer.cs b/GreetingsWebApp/GreetingsWebApp/sagar/GreetingCardMaker_version3.aspx.designer.cs new file mode 100644 index 0000000..6e2a20d --- /dev/null +++ b/GreetingsWebApp/GreetingsWebApp/sagar/GreetingCardMaker_version3.aspx.designer.cs @@ -0,0 +1,186 @@ +//------------------------------------------------------------------------------ +// +// 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.sagar { + + + public partial class GreetingCardMaker_version3 { + + /// + /// 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; + + /// + /// 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; + + /// + /// 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; + + /// + /// 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; + + /// + /// 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; + + /// + /// 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; + + /// + /// 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/GreetingsWebApp/GreetingsWebApp/sagar/GreetingCardMaker_version4.aspx b/GreetingsWebApp/GreetingsWebApp/sagar/GreetingCardMaker_version4.aspx new file mode 100644 index 0000000..a7c66be --- /dev/null +++ b/GreetingsWebApp/GreetingsWebApp/sagar/GreetingCardMaker_version4.aspx @@ -0,0 +1,46 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="GreetingCardMaker_version4.aspx.cs" Inherits="GreetingsWebApp.sagar.GreetingCardMaker_version4" %> + + + + + + + Greeting Card Maker + + + +
+
+ + + + Choose a background color:
+

+
+ + + Choose a font :
+

+ Specify a numeric font size:
+

+
+ + + Choose a border Style:
+

+

+ Enter The Greeting text Below:
+

+
+
+
+ + +
+
  +


+ +
+
+ + diff --git a/GreetingsWebApp/GreetingsWebApp/sagar/GreetingCardMaker_version4.aspx.cs b/GreetingsWebApp/GreetingsWebApp/sagar/GreetingCardMaker_version4.aspx.cs new file mode 100644 index 0000000..1739d12 --- /dev/null +++ b/GreetingsWebApp/GreetingsWebApp/sagar/GreetingCardMaker_version4.aspx.cs @@ -0,0 +1,89 @@ +using System; +using System.Drawing; +using System.Web.UI.WebControls; +using System.Drawing.Text; +using System.ComponentModel; + +namespace GreetingsWebApp.sagar +{ + public partial class GreetingCardMaker_version4 : System.Web.UI.Page + { + protected void Page_Load(object sender, EventArgs e) + { + if (!this.IsPostBack) + { + string[] colorArray = Enum.GetNames(typeof(KnownColor)); + lstBackColor.DataSource = colorArray; + lstBackColor.DataBind(); + + + + /* lstBackColor.Items.Add("white"); + lstBackColor.Items.Add("red"); + lstBackColor.Items.Add("green"); + lstBackColor.Items.Add("blue"); + lstBackColor.Items.Add("yellow"); + */ + InstalledFontCollection fonts = new InstalledFontCollection(); + foreach (FontFamily family in fonts.Families) + { + lstFontName.Items.Add(family.Name); + + } + + /* + lstFontName.Items.Add("Times New roman"); + lstFontName.Items.Add("Arial"); + lstFontName.Items.Add("Verdana"); + lstFontName.Items.Add("Tahoma"); + */ + + string[] borderStyleArray = Enum.GetNames(typeof(BorderStyle)); + lstBorder.DataSource = borderStyleArray; + lstBorder.DataBind(); + + /* + ListItem item = new ListItem(); + + item.Text = BorderStyle.None.ToString(); + + item.Value = ((int)BorderStyle.None).ToString(); + + lstBorder.Items.Add(item); + */ + lstBorder.SelectedIndex = 0; + imgDefault.ImageUrl = "default.JPG"; + } + } + + protected void cmdUpdate_Click(object sender, EventArgs e) + { + pnlCard.BackColor = Color.FromName(lstBackColor.SelectedItem.Text); + + lblGreeting.Font.Name = lstFontName.SelectedItem.Text; + + if (Int32.Parse(txtFontSize.Text) > 0) + { + lblGreeting.Font.Size = FontUnit.Point(Int32.Parse(txtFontSize.Text)); + + } + TypeConverter converter = TypeDescriptor.GetConverter(typeof(BorderStyle)); + pnlCard.BorderStyle = (BorderStyle)converter.ConvertFromString(lstBorder.SelectedItem.Text); + /*int borderValue = Int32.Parse(lstBorder.SelectedItem.Value); + pnlCard.BorderStyle = (BorderStyle)borderValue; + */ + if (chkPicture.Checked) + { + imgDefault.Visible = true; + } + else + { + imgDefault.Visible = false; + + } + lblGreeting.Text = txtGreeting.Text; + } + + + } +} \ No newline at end of file diff --git a/GreetingsWebApp/GreetingsWebApp/sagar/GreetingCardMaker_version4.aspx.designer.cs b/GreetingsWebApp/GreetingsWebApp/sagar/GreetingCardMaker_version4.aspx.designer.cs new file mode 100644 index 0000000..7ca2170 --- /dev/null +++ b/GreetingsWebApp/GreetingsWebApp/sagar/GreetingCardMaker_version4.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.sagar { + + + public partial class GreetingCardMaker_version4 { + + /// + /// 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; + + /// + /// 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/GreetingsWebApp/GreetingsWebApp/sagar_106.aspx b/GreetingsWebApp/GreetingsWebApp/sagar_106.aspx new file mode 100644 index 0000000..bc9ed39 --- /dev/null +++ b/GreetingsWebApp/GreetingsWebApp/sagar_106.aspx @@ -0,0 +1,17 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="sagar_106.aspx.cs" Inherits="GreetingsWebApp.sagar_106" %> + + + + + + + + +
+
+ +
+ +
+ + diff --git a/GreetingsWebApp/GreetingsWebApp/sagar_106.aspx.cs b/GreetingsWebApp/GreetingsWebApp/sagar_106.aspx.cs new file mode 100644 index 0000000..b314c8a --- /dev/null +++ b/GreetingsWebApp/GreetingsWebApp/sagar_106.aspx.cs @@ -0,0 +1,17 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; + +namespace GreetingsWebApp +{ + public partial class sagar_106 : System.Web.UI.Page + { + protected void Page_Load(object sender, EventArgs e) + { + + } + } +} \ No newline at end of file diff --git a/GreetingsWebApp/GreetingsWebApp/sagar_106.aspx.designer.cs b/GreetingsWebApp/GreetingsWebApp/sagar_106.aspx.designer.cs new file mode 100644 index 0000000..55983cd --- /dev/null +++ b/GreetingsWebApp/GreetingsWebApp/sagar_106.aspx.designer.cs @@ -0,0 +1,33 @@ +//------------------------------------------------------------------------------ +// +// 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 { + + + public partial class sagar_106 { + + /// + /// 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; + + /// + /// Label1 control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Label Label1; + } +}