Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

please I need to complete and submit it asap correct please help me with this 4.

ID: 3599966 • Letter: P

Question

please I need to complete and submit it asap correct please help me with this

4. Design question: (only need the code of master page and login.aspx page. cs file code is not required) Implement a simple Web Forms application using master pages. 1. The application should include three pages: master page, introduction page and login page. 2. The master page contains one menu and one footer (as you can see from the image below, when the user clicks login, they should be redirected to login page). login page contains two input boxes and a button, when user inputs the username and password, the labels below should display user's input. Home Login Contact Username Password Sumit abc 123 The username is The password is abc 123 2017-My ASP NET Application

Explanation / Answer

default.aspx

<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>

<script runat="server">

protected void Button1_Click(object sender, EventArgs e)
{
Label2.Text = "User Name : " + TextBox1.Text + " Password : " + TextBox2.Text;
}
</script>


<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<div >  
<table>  
<caption class="style1">  
<strong>Login Form</strong>  
</caption>  
<tr>  
<td class="style2">  
</td>  
<td>  
</td>  
<td>  
</td>  
</tr>  
<tr>  
<td class="style2">  
Username:</td>  
<td>  
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>  
</td>  
<td>  
  
</td>  
</tr>  
<tr>  
<td class="style2">  
word:</td>  
<td>  
<asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>  
</td>  
<td>  

</td>  
</tr>  
<tr>  
<td class="style2">  
</td>  
<td>  
</td>  
<td>  
</td>  
</tr>  
<tr>  
<td class="style2">  
</td>  
<td>  
<asp:Button ID="Button1" runat="server" Text="Log In" />  
<br />
<br />
<asp:Label ID="Label2" runat="server" Text="Label"></asp:Label>
</td>  
<td>  
<asp:Label ID="Label1" runat="server"></asp:Label>  
</td>  
</tr>  
</table>  
</div>  
</asp:Content>

master page

<%@ Master Language="C#" AutoEventWireup="true" CodeFile="MasterPage.master.cs" Inherits="MasterPage" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<link href="mystyle.css" rel="stylesheet" />
<asp:ContentPlaceHolder id="head" runat="server">
</asp:ContentPlaceHolder>
</head>
<body>
<form id="form1" runat="server">
<header id="header">  

</header>  
<nav id="nav">  
<ul>  
<li><a href="#">Home</a></li>  
<li><a href="Default.aspx">Login</a></li>  
<li><a href="#">Contact</a></li>  

</ul>  
</nav>  

  
  
<div>
<asp:ContentPlaceHolder id="ContentPlaceHolder1" runat="server">
  
</asp:ContentPlaceHolder>
</div>
</form>
<footer id="footer">  
@2017- My asp Application
</footer>  
</body>
</html>

style css

#header{  
color: #247BA0;  
text-align: center;  
font-size: 20px;  
}  
#nav{  
background-color:black;  
padding: 5px;  
}  
ul{  
  
list-style-type: none;  
}  
li a {  
color: #F1FAEE;  
font-size: 30px;  
column-width: 5%;  
}  
li  
{  
display: inline;  
padding-left: 2px;  
column-width: 20px;  
}  
a{  
text-decoration: none;  
margin-left:20px  
}  
li a:hover{  
background-color: #F3FFBD;  
color: #FF1654;  
padding:1%;  
}  
#side{  
text-align: center;  
float: right;  
width: 15%;  
padding-bottom: 79%;  
background-color: #F1FAEE;  
}  
#article{  
background-color: #EEF5DB;  
padding: 10px;  
padding-bottom: 75%;  
}  
#footer{  
background-color: #C7EFCF;  
text-align:center;  
padding-bottom: 5%;  
font-size: 20px;  
}  
#con{  
border:double;  
border-color:burlywood;  
}  

config

<?xml version="1.0"?>

<!--
For more information on how to configure your ASP.NET application, please visit
http://go.microsoft.com/fwlink/?LinkId=169433
-->

<configuration>

<system.web>
<compilation debug="true" targetFramework="4.5.2" />
<httpRuntime targetFramework="4.5.2" />
</system.web>

</configuration>