From 719e5984f062b1a1d3a075a505685e0634dcfb6a Mon Sep 17 00:00:00 2001 From: RonitRPatel Date: Tue, 16 Aug 2016 17:30:38 +0530 Subject: [PATCH 1/2] Ronit Comitted --- .../GreetingsWebApp/GreetingsWebApp.csproj | 728 +++++++++--------- 1 file changed, 368 insertions(+), 360 deletions(-) diff --git a/GreetingsWebApp/GreetingsWebApp/GreetingsWebApp.csproj b/GreetingsWebApp/GreetingsWebApp/GreetingsWebApp.csproj index d979f3b..38afbb5 100644 --- a/GreetingsWebApp/GreetingsWebApp/GreetingsWebApp.csproj +++ b/GreetingsWebApp/GreetingsWebApp/GreetingsWebApp.csproj @@ -1,367 +1,375 @@ - - - - - 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 + + + + + Ron_D2_CE095.aspx + ASPXCodeBehind + + + Ron_D2_CE095.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 From 126df4ae6d3190c81c02f51e7a5cc11a106dfb69 Mon Sep 17 00:00:00 2001 From: RonitRPatel Date: Wed, 24 Aug 2016 16:40:06 +0530 Subject: [PATCH 2/2] Ronit Committed1 --- .../Account/Ronit/Ron_CE095.aspx | 42 +++++++ .../Account/Ronit/Ron_CE095.aspx.cs | 88 ++++++++++++++ .../Account/Ronit/Ron_CE095.aspx.designer.cs | 114 ++++++++++++++++++ 3 files changed, 244 insertions(+) create mode 100644 GreetingsWebApp/GreetingsWebApp/Account/Ronit/Ron_CE095.aspx create mode 100644 GreetingsWebApp/GreetingsWebApp/Account/Ronit/Ron_CE095.aspx.cs create mode 100644 GreetingsWebApp/GreetingsWebApp/Account/Ronit/Ron_CE095.aspx.designer.cs diff --git a/GreetingsWebApp/GreetingsWebApp/Account/Ronit/Ron_CE095.aspx b/GreetingsWebApp/GreetingsWebApp/Account/Ronit/Ron_CE095.aspx new file mode 100644 index 0000000..a54f848 --- /dev/null +++ b/GreetingsWebApp/GreetingsWebApp/Account/Ronit/Ron_CE095.aspx @@ -0,0 +1,42 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Ron_CE095.aspx.cs" Inherits="GreetingsWebApp.Account.Ronit.Ron_CE095" %> + + + + + + + + +
+
+ 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/Account/Ronit/Ron_CE095.aspx.cs b/GreetingsWebApp/GreetingsWebApp/Account/Ronit/Ron_CE095.aspx.cs new file mode 100644 index 0000000..c4e5194 --- /dev/null +++ b/GreetingsWebApp/GreetingsWebApp/Account/Ronit/Ron_CE095.aspx.cs @@ -0,0 +1,88 @@ +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.Account.Ronit +{ + public partial class Ron_CE095 : System.Web.UI.Page + { + protected void Page_Load(object sender, EventArgs e) + { + if (!this.IsPostBack) + { + // Set color options. + lstBackColor.Items.Add("White"); + lstBackColor.Items.Add("Red"); + lstBackColor.Items.Add("Green"); + lstBackColor.Items.Add("Blue"); + lstBackColor.Items.Add("Yellow"); + // Set font options. + lstFontName.Items.Add("Times New Roman"); + lstFontName.Items.Add("Arial"); + lstFontName.Items.Add("Verdana"); + lstFontName.Items.Add("Tahoma"); + // Set border style options by adding a series of + // ListItem objects. + ListItem item = new ListItem(); + // The item text indicates the name of the option. + item.Text = BorderStyle.None.ToString(); + // The item value records the corresponding integer + // from the enumeration. To obtain this value, you + // must cast the enumeration value to an integer, + // and then convert the number to a string so it + // can be placed in the HTML page. + item.Value = ((int)BorderStyle.None).ToString(); + // Add the item. + lstBorder.Items.Add(item); + // Now repeat the process for two other border styles. + item = new ListItem(); + item.Text = BorderStyle.Double.ToString(); + item.Value = ((int)BorderStyle.Double).ToString(); + lstBorder.Items.Add(item); + item = new ListItem(); + item.Text = BorderStyle.Solid.ToString(); + item.Value = ((int)BorderStyle.Solid).ToString(); + lstBorder.Items.Add(item); + // Select the first border option. + lstBorder.SelectedIndex = 0; + // Set the picture. + imgDefault.ImageUrl = "defaultpic.jpg"; + imgDefault.Visible = false; + } + } + + protected void cmdUpdate_Click(object sender, EventArgs e) + { + // Update the color. + pnlCard.BackColor = Color.FromName(lstBackColor.SelectedItem.Text); + // Update the font. + lblGreeting.Font.Name = lstFontName.SelectedItem.Text; + if (Int32.Parse(txtFontSize.Text) > 0) + { + lblGreeting.Font.Size = + FontUnit.Point(Int32.Parse(txtFontSize.Text)); + } + // Update the border style. This requires two conversion steps. + // First, the value of the list item is converted from a string + // into an integer. Next, the integer is converted to a value in + // the BorderStyle enumeration. + int borderValue = Int32.Parse(lstBorder.SelectedItem.Value); + pnlCard.BorderStyle = (BorderStyle)borderValue; + // Update the picture. + if (chkPicture.Checked) + { + imgDefault.Visible = true; + } + else + { + imgDefault.Visible = false; + } + // Set the text. + lblGreeting.Text = txtGreeting.Text; + } +} +} \ No newline at end of file diff --git a/GreetingsWebApp/GreetingsWebApp/Account/Ronit/Ron_CE095.aspx.designer.cs b/GreetingsWebApp/GreetingsWebApp/Account/Ronit/Ron_CE095.aspx.designer.cs new file mode 100644 index 0000000..38ba9c8 --- /dev/null +++ b/GreetingsWebApp/GreetingsWebApp/Account/Ronit/Ron_CE095.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.Account.Ronit { + + + public partial class Ron_CE095 { + + /// + /// form1 control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.HtmlControls.HtmlForm form1; + + /// + /// lstBackColor control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.DropDownList lstBackColor; + + /// + /// lstFontName control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.DropDownList lstFontName; + + /// + /// txtFontSize control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.TextBox txtFontSize; + + /// + /// lstBorder control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.RadioButtonList lstBorder; + + /// + /// chkPicture control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.CheckBox chkPicture; + + /// + /// txtGreeting control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.TextBox txtGreeting; + + /// + /// cmdUpdate control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Button cmdUpdate; + + /// + /// pnlCard control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Panel pnlCard; + + /// + /// lblGreeting control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Label lblGreeting; + + /// + /// imgDefault control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Image imgDefault; + } +}