In visual studio using c++ language Improve the performance of your site by addi
ID: 3711637 • Letter: I
Question
In visual studio using c++ language
Improve the performance of your site by adding Ajax Extensions to all of your forms (Pages). Use updatePanel, so updated values by user will not require postback to the server.
Use ASP.Net navigation control to link your home page, the page that has the contact form created in part 2, and the listing page (GridView) created in part 3.
Note: Do not link the page that has the DetailsView. Through navigation control. Absolutely your choice to use Menu or TreeView. Of course you will need to add site Map object.
Note: Site Map need to be placed in the root for your site. Do not place it in a folder.
Remove [ ~/ ] from site home page, the page that has the contact form (from Part 2), the page the has the GridView, and the page that has the DetailsView, like this:
This -- MasterPageFile="~/MasterPage.master" should read like this: MasterPageFile="MasterPage.master"
Masterpage:
<%@ Master Language="C#" AutoEventWireup="true" CodeBehind="Finalproject.master.cs" Inherits="Finalprojectp1.Finalproject" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<asp:ContentPlaceHolder ID="head" runat="server">
</asp:ContentPlaceHolder>
<link href="Css/StyleSheet.css" rel="stylesheet" />
<style type="text/css">
.auto-style1 {
width: 1282px;
height: 62px;
}
</style>
</head>
<body>
<header role="banner">
<img src="Images/header.jpg" alt="Banner Image"/>
<h1>This is the header</h1>
</header>
<form id="form1" runat="server">
<div>
<div class="leftCol">
<asp:Menu ID="Menu1" runat="server">
<Items>
<asp:MenuItem Text="Home" Value="Home"></asp:MenuItem>
</Items>
</asp:Menu>
</div>
<div class="main">
<asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server">
</asp:ContentPlaceHolder>
</div>
</div>
</form>
<footer>
<label>(c) matthew cooper | <% DateTime.Now.Year.ToString(); %> - 2018</label>
</footer>
</body>
</html>
home.aspx:
<%@ Page Title="" Language="C#" MasterPageFile="~/Finalproject.Master" AutoEventWireup="true" CodeBehind="Home.aspx.cs" Inherits="Finalprojectp1.Home" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<h2>About myself </h2>
<p>
Hello everyone who is reading my home page my name is matthew cooper and this is my final project for my class.
I'm twenty years old and this is my first taking this class which lets me create websites that use visual studios.
I'm taking this class because it is one of the main requirements that I need in order to get my 2 year degree in web development.
</p>
<h3>My reasons</h3>
<p>
The main reason why I picked web development as my major was because I always enjoyed how styles some websites are and how complex they could be.
So I thought to myself I want to create my very own sites that people would either like or want me to make one very similar to ones I make.
</p>
<h4>Lets get started</h4>
<p>
But that is enough about my boring life, and my reasosns for wanting to be web developer but now for the main reason you are looking at my project and that is to see how far I have come.
I hope you enjoy my final project and let me know if there is any improvements that I can add to my project.
</p>
</asp:Content>
and webform.aspx:
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="Finalprojectp1.WebForm1" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Final project form</title>
<style type="text/css">
.auto-style2 {
margin-left: 12px;
}
.auto-style3 {
margin-left: 26px;
}
.auto-style4 {
margin-left: 4px;
}
</style>
</head>
<body>
<form id="form1" runat="server">
<h1>Contact Us</h1>
<div class="form-group">
<label for="txtFullName">Full Name*</label>
<asp:TextBox ID="txtFullName" runat="server" CssClass="auto-style3"></asp:TextBox>
<asp:RequiredFieldValidator ID="rfvFullName" runat="server"
ControlToValidate="txtFullName" CssClass="text-danger"
Display="Dynamic" ErrorMessage=" Full Name is required">
</asp:RequiredFieldValidator>
<br />
<br />
<label for="txtEmail">Email Address*</label>
<asp:TextBox ID="txtEmail" runat="server"></asp:TextBox>
<asp:RequiredFieldValidator ID="rfvEmail" runat="server"
ControlToValidate="txtEmail">
</asp:RequiredFieldValidator>
<asp:RegularExpressionValidator ID="revEmail" runat="server"
ValidationExpression="w+([-+.']w+)*@w([-.]w+)*.w+([-.])*"
ControlToValidate="txtEmail">Must be a valid email address</asp:RegularExpressionValidator>
<br />
<br />
<tr>
<td class="auto-style2">Website</td>
<td> <asp:TextBox ID="txtWebiste" runat="server" Text="" Width="216px"></asp:TextBox></td>
</tr>
<br />
<br />
<label for="txtSubject">
Subject*</label>
<asp:TextBox ID="TextBox3" runat="server" CssClass="auto-style2" Width="129px"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server"
ControlToValidate="txtFullName" CssClass="text-danger"
Display="Dynamic" ErrorMessage="Subject is required">
</asp:RequiredFieldValidator>
<br />
<br />
Your message<br />
<asp:TextBox ID="txtYourMessage" runat="server" Height="98px" Text="" Width="279px"></asp:TextBox>
<br />
<p>To help prevent automated spam, please answer the question below.</p>
<label for="txtWhatis">*What is 10 + 5?</label>
<asp:TextBox ID="TextBox5" runat="server" CssClass="auto-style4"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server"
ControlToValidate="txtFullName" CssClass="text-danger"
Display="Dynamic" ErrorMessage="You must give the correct answer">
</asp:RequiredFieldValidator><br />
<tr>
<asp:Button ID="btnSubmit" runat="server" Text="Submit" Width="174px" Height="23px" CssClass="btn" ></asp:Button></td>
</tr>
<%if (i == 15) { %>
<asp:Label ID="label1" runat="server" Text="Welcome"></asp:Label>
<%} %>
<%else { %>
<asp:Label ID="label2" runat="server" Text="Thank you for visting"></asp:Label>
<%} %>
<br />
<br />
</div>
</form>
</body>
</html>
Explanation / Answer
Change your first line of home.aspx to,
<%@ Page Title="" Language="C#" MasterPageFile="MasterPage.Master"
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.