Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added GreetingsWebApp/.vs/GreetingsWebApp/v14/.suo
Binary file not shown.
1,038 changes: 1,038 additions & 0 deletions GreetingsWebApp/.vs/config/applicationhost.config

Large diffs are not rendered by default.

106 changes: 106 additions & 0 deletions GreetingsWebApp/GreetingsWebApp/GreetingsWebApp.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
<IISExpressAnonymousAuthentication />
<IISExpressWindowsAuthentication />
<IISExpressUseClassicPipelineMode />
<UseGlobalApplicationHostFile />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
Expand Down Expand Up @@ -201,6 +202,20 @@
<Content Include="Global.asax" />
<Content Include="Site.Master" />
<Content Include="ViewSwitcher.ascx" />
<Content Include="VIVEK_Versions\index.jpg" />
<Content Include="VIVEK_Versions\v1_vivek_99.aspx" />
<Content Include="VIVEK_Versions\v2_vivek_99.aspx" />
<Content Include="VIVEK_Versions\v3_vivek_99.aspx" />
<Content Include="VIVEK_Versions\v4_vivek_99.aspx" />
<Content Include="VIVEK_Versions\v5_vivek_99.aspx" />
<Content Include="VIVEK_Versions\v6_1_vivek_99.aspx" />
<Content Include="VIVEK_Versions\v6_2_vivek_99.aspx" />
<Content Include="VIVEK_Versions\v7_1_vivek_99.aspx" />
<Content Include="VIVEK_Versions\v7_2_vivek_99.aspx" />
<Content Include="VIVEK_Versions\v8_1_vivek_99.aspx" />
<Content Include="VIVEK_Versions\v8_2_vivek_99.aspx" />
<Content Include="VIVEK_Versions\v9_1_vivek_99.aspx" />
<Content Include="VIVEK_Versions\v9_2_vivek_99.aspx" />
<Content Include="Web.config" />
<Content Include="Bundle.config" />
<None Include="Project_Readme.html" />
Expand Down Expand Up @@ -336,6 +351,97 @@
<Compile Include="ViewSwitcher.ascx.designer.cs">
<DependentUpon>ViewSwitcher.ascx</DependentUpon>
</Compile>
<Compile Include="VIVEK_Versions\v1_vivek_99.aspx.cs">
<DependentUpon>v1_vivek_99.aspx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
</Compile>
<Compile Include="VIVEK_Versions\v1_vivek_99.aspx.designer.cs">
<DependentUpon>v1_vivek_99.aspx</DependentUpon>
</Compile>
<Compile Include="VIVEK_Versions\v2_vivek_99.aspx.cs">
<DependentUpon>v2_vivek_99.aspx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
</Compile>
<Compile Include="VIVEK_Versions\v2_vivek_99.aspx.designer.cs">
<DependentUpon>v2_vivek_99.aspx</DependentUpon>
</Compile>
<Compile Include="VIVEK_Versions\v3_vivek_99.aspx.cs">
<DependentUpon>v3_vivek_99.aspx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
</Compile>
<Compile Include="VIVEK_Versions\v3_vivek_99.aspx.designer.cs">
<DependentUpon>v3_vivek_99.aspx</DependentUpon>
</Compile>
<Compile Include="VIVEK_Versions\v4_vivek_99.aspx.cs">
<DependentUpon>v4_vivek_99.aspx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
</Compile>
<Compile Include="VIVEK_Versions\v4_vivek_99.aspx.designer.cs">
<DependentUpon>v4_vivek_99.aspx</DependentUpon>
</Compile>
<Compile Include="VIVEK_Versions\v5_vivek_99.aspx.cs">
<DependentUpon>v5_vivek_99.aspx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
</Compile>
<Compile Include="VIVEK_Versions\v5_vivek_99.aspx.designer.cs">
<DependentUpon>v5_vivek_99.aspx</DependentUpon>
</Compile>
<Compile Include="VIVEK_Versions\v6_1_vivek_99.aspx.cs">
<DependentUpon>v6_1_vivek_99.aspx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
</Compile>
<Compile Include="VIVEK_Versions\v6_1_vivek_99.aspx.designer.cs">
<DependentUpon>v6_1_vivek_99.aspx</DependentUpon>
</Compile>
<Compile Include="VIVEK_Versions\v6_2_vivek_99.aspx.cs">
<DependentUpon>v6_2_vivek_99.aspx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
</Compile>
<Compile Include="VIVEK_Versions\v6_2_vivek_99.aspx.designer.cs">
<DependentUpon>v6_2_vivek_99.aspx</DependentUpon>
</Compile>
<Compile Include="VIVEK_Versions\v7_1_vivek_99.aspx.cs">
<DependentUpon>v7_1_vivek_99.aspx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
</Compile>
<Compile Include="VIVEK_Versions\v7_1_vivek_99.aspx.designer.cs">
<DependentUpon>v7_1_vivek_99.aspx</DependentUpon>
</Compile>
<Compile Include="VIVEK_Versions\v7_2_vivek_99.aspx.cs">
<DependentUpon>v7_2_vivek_99.aspx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
</Compile>
<Compile Include="VIVEK_Versions\v7_2_vivek_99.aspx.designer.cs">
<DependentUpon>v7_2_vivek_99.aspx</DependentUpon>
</Compile>
<Compile Include="VIVEK_Versions\v8_1_vivek_99.aspx.cs">
<DependentUpon>v8_1_vivek_99.aspx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
</Compile>
<Compile Include="VIVEK_Versions\v8_1_vivek_99.aspx.designer.cs">
<DependentUpon>v8_1_vivek_99.aspx</DependentUpon>
</Compile>
<Compile Include="VIVEK_Versions\v8_2_vivek_99.aspx.cs">
<DependentUpon>v8_2_vivek_99.aspx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
</Compile>
<Compile Include="VIVEK_Versions\v8_2_vivek_99.aspx.designer.cs">
<DependentUpon>v8_2_vivek_99.aspx</DependentUpon>
</Compile>
<Compile Include="VIVEK_Versions\v9_1_vivek_99.aspx.cs">
<DependentUpon>v9_1_vivek_99.aspx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
</Compile>
<Compile Include="VIVEK_Versions\v9_1_vivek_99.aspx.designer.cs">
<DependentUpon>v9_1_vivek_99.aspx</DependentUpon>
</Compile>
<Compile Include="VIVEK_Versions\v9_2_vivek_99.aspx.cs">
<DependentUpon>v9_2_vivek_99.aspx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
</Compile>
<Compile Include="VIVEK_Versions\v9_2_vivek_99.aspx.designer.cs">
<DependentUpon>v9_2_vivek_99.aspx</DependentUpon>
</Compile>
</ItemGroup>
<ItemGroup>
<Folder Include="App_Data\" />
Expand Down
32 changes: 32 additions & 0 deletions GreetingsWebApp/GreetingsWebApp/GreetingsWebApp.csproj.user
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<UseIISExpress>true</UseIISExpress>
<ProjectView>ShowAllFiles</ProjectView>
</PropertyGroup>
<ProjectExtensions>
<VisualStudio>
<FlavorProperties GUID="{349c5851-65df-11da-9384-00065b846f21}">
<WebProjectProperties>
<StartPageUrl>
</StartPageUrl>
<StartAction>CurrentPage</StartAction>
<AspNetDebugging>True</AspNetDebugging>
<SilverlightDebugging>False</SilverlightDebugging>
<NativeDebugging>False</NativeDebugging>
<SQLDebugging>False</SQLDebugging>
<ExternalProgram>
</ExternalProgram>
<StartExternalURL>
</StartExternalURL>
<StartCmdLineArguments>
</StartCmdLineArguments>
<StartWorkingDirectory>
</StartWorkingDirectory>
<EnableENC>True</EnableENC>
<AlwaysStartWebServerOnDebug>True</AlwaysStartWebServerOnDebug>
</WebProjectProperties>
</FlavorProperties>
</VisualStudio>
</ProjectExtensions>
</Project>
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
51 changes: 51 additions & 0 deletions GreetingsWebApp/GreetingsWebApp/VIVEK_Versions/v1_vivek_99.aspx
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="v1_vivek_99.aspx.cs" Inherits="GreetingsWebApp.VIVEK.v1_vivek_99" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form runat="server">
<div>
Choose Background Color:<br />
<asp:DropDownList ID="Bc_list" runat="server">
</asp:DropDownList>
<br />
Choose a Font:<br />
<asp:DropDownList ID="Font_list" runat="server">
</asp:DropDownList>
<br />
specify a numeric font size:<br/>
<asp:TextBox ID="Font_size" runat="server"></asp:TextBox>
<br />
Choose a border Style:<br />
<asp:RadioButtonList ID="Border_style" runat="server" >
</asp:RadioButtonList>
<br />

<asp:CheckBox ID="Checkbox" runat="server" Text="Add the Default Picture:" />
<br />
Enter the greeting text Below:<br />
<asp:TextBox ID="Greeting_text" runat="server"></asp:TextBox>
<br />
<asp:Button ID="Button" runat="server" Text="Update" OnClick="Update_Click" />
<br />
<br />
<asp:Panel ID="pnlCard" runat="server"
Width="339px" Height="481px" HorizontalAlign="Center"
style="POSITION: absolute; TOP: 16px; LEFT: 313px;">
<br />&nbsp;
<asp:Label ID="lblGreeting" runat="server" Width="256px"
Height="150px" /><br /><br /><br />
<asp:Image ID="imgDefault" runat="server" Width="212px"
Height="160px" />
</asp:Panel>


</div>
</form>

</body>
</html>
83 changes: 83 additions & 0 deletions GreetingsWebApp/GreetingsWebApp/VIVEK_Versions/v1_vivek_99.aspx.cs
Original file line number Diff line number Diff line change
@@ -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;
}
}
}
Loading