CIS470 Senior Project Retrieve Contract Info Help VISUAL STUDIO

profileMormonJezus
Project.zip

Project/App_Code/DataLayer.cs

using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Data.OleDb; /// <summary> /// Summary description for DataLayer /// </summary> public class DataLayer { OleDbConnection databaseConnection = new OleDbConnection("Provider=Microsoft.ACE.OLEDB.12.0;Data Source=|DataDirectory|\\projectDB.accdb"); OleDbDataAdapter databaseAdapter; public DataLayer() { // // TODO: Add constructor logic here // } public dsUserLogin RetrieveUser(string UserName, string Password) { databaseConnection.Open(); databaseAdapter = new OleDbDataAdapter("select * from userLogin where UserName='" + UserName + "' and Password ='" + Password + "'", databaseConnection); dsUserLogin dsValidUser = new dsUserLogin(); databaseAdapter.Fill(dsValidUser.userLogin); return dsValidUser; } }

Project/App_Code/dsUserLogin.xsd

DELETE FROM `userLogin` WHERE ((`UserID` = ?)) INSERT INTO `userLogin` (`UserName`, `Password`, `UserType`) VALUES (?, ?, ?) SELECT userLogin.* FROM userLogin UPDATE `userLogin` SET `UserName` = ?, `Password` = ?, `UserType` = ? WHERE ((`UserID` = ?))

Project/App_Code/dsUserLogin.xss

Project/App_Data/projectDB.accdb

StaffID FirstName LastName Address City State ZipCode Education WorkType Experience Salary Field1
1 John Doe 1234 Imaginary St San Diego CA 90210 Masters ¤ 0.00
UserID UserName Password UserType
2 Client password client
3 StaffMember password staffmember
4 ContractManager password contractmanager

Project/Bin/Microsoft.CodeDom.Providers.DotNetCompilerPlatform.dll

Project/Bin/Microsoft.CodeDom.Providers.DotNetCompilerPlatform.dll.refresh

..\..\..\..\source\repos\Project\packages\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.1.0.7\lib\net45\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.dll

Project/Bin/Microsoft.CodeDom.Providers.DotNetCompilerPlatform.xml

Microsoft.CodeDom.Providers.DotNetCompilerPlatform Provides access to instances of the .NET Compiler Platform C# code generator and code compiler. Default Constructor Gets an instance of the .NET Compiler Platform C# code compiler. An instance of the .NET Compiler Platform C# code compiler Provides access to instances of the .NET Compiler Platform VB code generator and code compiler. Default Constructor Gets an instance of the .NET Compiler Platform VB code compiler. An instance of the .NET Compiler Platform VB code compiler

Project/Bin/roslyn/csc.exe

Project/Bin/roslyn/csc.exe.config

Project/Bin/roslyn/csc.exe.refresh

..\..\..\..\source\repos\Project\packages\Microsoft.Net.Compilers.2.1.0\tools\csc.exe

Project/Bin/roslyn/csc.rsp

# Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. # This file contains command-line options that the C# # command line compiler (CSC) will process as part # of every compilation, unless the "/noconfig" option # is specified. # Reference the common Framework libraries /r:Accessibility.dll /r:Microsoft.CSharp.dll /r:System.Configuration.dll /r:System.Configuration.Install.dll /r:System.Core.dll /r:System.Data.dll /r:System.Data.DataSetExtensions.dll /r:System.Data.Linq.dll /r:System.Data.OracleClient.dll /r:System.Deployment.dll /r:System.Design.dll /r:System.DirectoryServices.dll /r:System.dll /r:System.Drawing.Design.dll /r:System.Drawing.dll /r:System.EnterpriseServices.dll /r:System.Management.dll /r:System.Messaging.dll /r:System.Runtime.Remoting.dll /r:System.Runtime.Serialization.dll /r:System.Runtime.Serialization.Formatters.Soap.dll /r:System.Security.dll /r:System.ServiceModel.dll /r:System.ServiceModel.Web.dll /r:System.ServiceProcess.dll /r:System.Transactions.dll /r:System.Web.dll /r:System.Web.Extensions.Design.dll /r:System.Web.Extensions.dll /r:System.Web.Mobile.dll /r:System.Web.RegularExpressions.dll /r:System.Web.Services.dll /r:System.Windows.Forms.dll /r:System.Workflow.Activities.dll /r:System.Workflow.ComponentModel.dll /r:System.Workflow.Runtime.dll /r:System.Xml.dll /r:System.Xml.Linq.dll

Project/Bin/roslyn/csi.exe

Project/Bin/roslyn/csi.exe.config

Project/Bin/roslyn/csi.exe.refresh

..\..\..\..\source\repos\Project\packages\Microsoft.Net.Compilers.2.1.0\tools\csi.exe

Project/Bin/roslyn/csi.rsp

/r:System /r:System.Core /r:Microsoft.CSharp /r:System.ValueTuple.dll /u:System /u:System.IO /u:System.Collections.Generic /u:System.Console /u:System.Diagnostics /u:System.Dynamic /u:System.Linq /u:System.Linq.Expressions /u:System.Text /u:System.Threading.Tasks

Project/Bin/roslyn/Microsoft.Build.Tasks.CodeAnalysis.dll

Project/Bin/roslyn/Microsoft.Build.Tasks.CodeAnalysis.dll.refresh

..\..\..\..\source\repos\Project\packages\Microsoft.Net.Compilers.2.1.0\tools\Microsoft.Build.Tasks.CodeAnalysis.dll

Project/Bin/roslyn/Microsoft.CodeAnalysis.CSharp.dll

Project/Bin/roslyn/Microsoft.CodeAnalysis.CSharp.dll.refresh

..\..\..\..\source\repos\Project\packages\Microsoft.Net.Compilers.2.1.0\tools\Microsoft.CodeAnalysis.CSharp.dll

Project/Bin/roslyn/Microsoft.CodeAnalysis.CSharp.Scripting.dll

Project/Bin/roslyn/Microsoft.CodeAnalysis.CSharp.Scripting.dll.refresh

..\..\..\..\source\repos\Project\packages\Microsoft.Net.Compilers.2.1.0\tools\Microsoft.CodeAnalysis.CSharp.Scripting.dll

Project/Bin/roslyn/Microsoft.CodeAnalysis.dll

Project/Bin/roslyn/Microsoft.CodeAnalysis.dll.refresh

..\..\..\..\source\repos\Project\packages\Microsoft.Net.Compilers.2.1.0\tools\Microsoft.CodeAnalysis.dll

Project/Bin/roslyn/Microsoft.CodeAnalysis.Scripting.dll

Project/Bin/roslyn/Microsoft.CodeAnalysis.Scripting.dll.refresh

..\..\..\..\source\repos\Project\packages\Microsoft.Net.Compilers.2.1.0\tools\Microsoft.CodeAnalysis.Scripting.dll

Project/Bin/roslyn/Microsoft.CodeAnalysis.VisualBasic.dll

Project/Bin/roslyn/Microsoft.CodeAnalysis.VisualBasic.dll.refresh

..\..\..\..\source\repos\Project\packages\Microsoft.Net.Compilers.2.1.0\tools\Microsoft.CodeAnalysis.VisualBasic.dll

Project/Bin/roslyn/Microsoft.CSharp.Core.targets

$(NoWarn);1701;1702 $(NoWarn);2008 $(AppConfig) $(IntermediateOutputPath)$(TargetName).compile.pdb false true

Project/Bin/roslyn/Microsoft.DiaSymReader.Native.amd64.dll

Project/Bin/roslyn/Microsoft.DiaSymReader.Native.amd64.dll.refresh

..\..\..\..\source\repos\Project\packages\Microsoft.Net.Compilers.2.1.0\tools\Microsoft.DiaSymReader.Native.amd64.dll

Project/Bin/roslyn/Microsoft.DiaSymReader.Native.x86.dll

Project/Bin/roslyn/Microsoft.DiaSymReader.Native.x86.dll.refresh

..\..\..\..\source\repos\Project\packages\Microsoft.Net.Compilers.2.1.0\tools\Microsoft.DiaSymReader.Native.x86.dll

Project/Bin/roslyn/Microsoft.VisualBasic.Core.targets

true false $(IntermediateOutputPath)$(TargetName).compile.pdb false true

Project/Bin/roslyn/Microsoft.Win32.Primitives.dll

Project/Bin/roslyn/Microsoft.Win32.Primitives.dll.refresh

..\..\..\..\source\repos\Project\packages\Microsoft.Net.Compilers.2.1.0\tools\Microsoft.Win32.Primitives.dll

Project/Bin/roslyn/System.AppContext.dll

Project/Bin/roslyn/System.AppContext.dll.refresh

..\..\..\..\source\repos\Project\packages\Microsoft.Net.Compilers.2.1.0\tools\System.AppContext.dll

Project/Bin/roslyn/System.Collections.Immutable.dll

Project/Bin/roslyn/System.Collections.Immutable.dll.refresh

..\..\..\..\source\repos\Project\packages\Microsoft.Net.Compilers.2.1.0\tools\System.Collections.Immutable.dll

Project/Bin/roslyn/System.Console.dll

Project/Bin/roslyn/System.Console.dll.refresh

..\..\..\..\source\repos\Project\packages\Microsoft.Net.Compilers.2.1.0\tools\System.Console.dll

Project/Bin/roslyn/System.Diagnostics.FileVersionInfo.dll

Project/Bin/roslyn/System.Diagnostics.FileVersionInfo.dll.refresh

..\..\..\..\source\repos\Project\packages\Microsoft.Net.Compilers.2.1.0\tools\System.Diagnostics.FileVersionInfo.dll

Project/Bin/roslyn/System.Diagnostics.Process.dll

Project/Bin/roslyn/System.Diagnostics.Process.dll.refresh

..\..\..\..\source\repos\Project\packages\Microsoft.Net.Compilers.2.1.0\tools\System.Diagnostics.Process.dll

Project/Bin/roslyn/System.Diagnostics.StackTrace.dll

Project/Bin/roslyn/System.Diagnostics.StackTrace.dll.refresh

..\..\..\..\source\repos\Project\packages\Microsoft.Net.Compilers.2.1.0\tools\System.Diagnostics.StackTrace.dll

Project/Bin/roslyn/System.IO.Compression.dll

Project/Bin/roslyn/System.IO.Compression.dll.refresh

..\..\..\..\source\repos\Project\packages\Microsoft.Net.Compilers.2.1.0\tools\System.IO.Compression.dll

Project/Bin/roslyn/System.IO.FileSystem.dll

Project/Bin/roslyn/System.IO.FileSystem.dll.refresh

..\..\..\..\source\repos\Project\packages\Microsoft.Net.Compilers.2.1.0\tools\System.IO.FileSystem.dll

Project/Bin/roslyn/System.IO.FileSystem.DriveInfo.dll

Project/Bin/roslyn/System.IO.FileSystem.DriveInfo.dll.refresh

..\..\..\..\source\repos\Project\packages\Microsoft.Net.Compilers.2.1.0\tools\System.IO.FileSystem.DriveInfo.dll

Project/Bin/roslyn/System.IO.FileSystem.Primitives.dll

Project/Bin/roslyn/System.IO.FileSystem.Primitives.dll.refresh

..\..\..\..\source\repos\Project\packages\Microsoft.Net.Compilers.2.1.0\tools\System.IO.FileSystem.Primitives.dll

Project/Bin/roslyn/System.IO.Pipes.dll

Project/Bin/roslyn/System.IO.Pipes.dll.refresh

..\..\..\..\source\repos\Project\packages\Microsoft.Net.Compilers.2.1.0\tools\System.IO.Pipes.dll

Project/Bin/roslyn/System.Reflection.Metadata.dll

Project/Bin/roslyn/System.Reflection.Metadata.dll.refresh

..\..\..\..\source\repos\Project\packages\Microsoft.Net.Compilers.2.1.0\tools\System.Reflection.Metadata.dll

Project/Bin/roslyn/System.Security.AccessControl.dll

Project/Bin/roslyn/System.Security.AccessControl.dll.refresh

..\..\..\..\source\repos\Project\packages\Microsoft.Net.Compilers.2.1.0\tools\System.Security.AccessControl.dll

Project/Bin/roslyn/System.Security.Claims.dll

Project/Bin/roslyn/System.Security.Claims.dll.refresh

..\..\..\..\source\repos\Project\packages\Microsoft.Net.Compilers.2.1.0\tools\System.Security.Claims.dll

Project/Bin/roslyn/System.Security.Cryptography.Algorithms.dll

Project/Bin/roslyn/System.Security.Cryptography.Algorithms.dll.refresh

..\..\..\..\source\repos\Project\packages\Microsoft.Net.Compilers.2.1.0\tools\System.Security.Cryptography.Algorithms.dll

Project/Bin/roslyn/System.Security.Cryptography.Encoding.dll

Project/Bin/roslyn/System.Security.Cryptography.Encoding.dll.refresh

..\..\..\..\source\repos\Project\packages\Microsoft.Net.Compilers.2.1.0\tools\System.Security.Cryptography.Encoding.dll

Project/Bin/roslyn/System.Security.Cryptography.Primitives.dll

Project/Bin/roslyn/System.Security.Cryptography.Primitives.dll.refresh

..\..\..\..\source\repos\Project\packages\Microsoft.Net.Compilers.2.1.0\tools\System.Security.Cryptography.Primitives.dll

Project/Bin/roslyn/System.Security.Cryptography.X509Certificates.dll

Project/Bin/roslyn/System.Security.Cryptography.X509Certificates.dll.refresh

..\..\..\..\source\repos\Project\packages\Microsoft.Net.Compilers.2.1.0\tools\System.Security.Cryptography.X509Certificates.dll

Project/Bin/roslyn/System.Security.Principal.Windows.dll

Project/Bin/roslyn/System.Security.Principal.Windows.dll.refresh

..\..\..\..\source\repos\Project\packages\Microsoft.Net.Compilers.2.1.0\tools\System.Security.Principal.Windows.dll

Project/Bin/roslyn/System.Text.Encoding.CodePages.dll

Project/Bin/roslyn/System.Text.Encoding.CodePages.dll.refresh

..\..\..\..\source\repos\Project\packages\Microsoft.Net.Compilers.2.1.0\tools\System.Text.Encoding.CodePages.dll

Project/Bin/roslyn/System.Threading.Thread.dll

Project/Bin/roslyn/System.Threading.Thread.dll.refresh

..\..\..\..\source\repos\Project\packages\Microsoft.Net.Compilers.2.1.0\tools\System.Threading.Thread.dll

Project/Bin/roslyn/System.ValueTuple.dll

Project/Bin/roslyn/System.ValueTuple.dll.refresh

..\..\..\..\source\repos\Project\packages\Microsoft.Net.Compilers.2.1.0\tools\System.ValueTuple.dll

Project/Bin/roslyn/System.Xml.ReaderWriter.dll

Project/Bin/roslyn/System.Xml.ReaderWriter.dll.refresh

..\..\..\..\source\repos\Project\packages\Microsoft.Net.Compilers.2.1.0\tools\System.Xml.ReaderWriter.dll

Project/Bin/roslyn/System.Xml.XmlDocument.dll

Project/Bin/roslyn/System.Xml.XmlDocument.dll.refresh

..\..\..\..\source\repos\Project\packages\Microsoft.Net.Compilers.2.1.0\tools\System.Xml.XmlDocument.dll

Project/Bin/roslyn/System.Xml.XPath.dll

Project/Bin/roslyn/System.Xml.XPath.dll.refresh

..\..\..\..\source\repos\Project\packages\Microsoft.Net.Compilers.2.1.0\tools\System.Xml.XPath.dll

Project/Bin/roslyn/System.Xml.XPath.XDocument.dll

Project/Bin/roslyn/System.Xml.XPath.XDocument.dll.refresh

..\..\..\..\source\repos\Project\packages\Microsoft.Net.Compilers.2.1.0\tools\System.Xml.XPath.XDocument.dll

Project/Bin/roslyn/vbc.exe

Project/Bin/roslyn/vbc.exe.config

Project/Bin/roslyn/vbc.exe.refresh

..\..\..\..\source\repos\Project\packages\Microsoft.Net.Compilers.2.1.0\tools\vbc.exe

Project/Bin/roslyn/vbc.rsp

# Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. # This file contains command-line options that the VB # command line compiler (VBC) will process as part # of every compilation, unless the "/noconfig" option # is specified. # Reference the common Framework libraries /r:Accessibility.dll /r:System.Configuration.dll /r:System.Configuration.Install.dll /r:System.Data.dll /r:System.Data.OracleClient.dll /r:System.Deployment.dll /r:System.Design.dll /r:System.DirectoryServices.dll /r:System.dll /r:System.Drawing.Design.dll /r:System.Drawing.dll /r:System.EnterpriseServices.dll /r:System.Management.dll /r:System.Messaging.dll /r:System.Runtime.Remoting.dll /r:System.Runtime.Serialization.Formatters.Soap.dll /r:System.Security.dll /r:System.ServiceProcess.dll /r:System.Transactions.dll /r:System.Web.dll /r:System.Web.Mobile.dll /r:System.Web.RegularExpressions.dll /r:System.Web.Services.dll /r:System.Windows.Forms.dll /r:System.XML.dll /r:System.Workflow.Activities.dll /r:System.Workflow.ComponentModel.dll /r:System.Workflow.Runtime.dll /r:System.Runtime.Serialization.dll /r:System.ServiceModel.dll /r:System.Core.dll /r:System.Xml.Linq.dll /r:System.Data.Linq.dll /r:System.Data.DataSetExtensions.dll /r:System.Web.Extensions.dll /r:System.Web.Extensions.Design.dll /r:System.ServiceModel.Web.dll # Import System and Microsoft.VisualBasic /imports:System /imports:Microsoft.VisualBasic /imports:System.Linq /imports:System.Xml.Linq /optioninfer+

Project/Bin/roslyn/VBCSCompiler.exe

Project/Bin/roslyn/VBCSCompiler.exe.config

Project/Bin/roslyn/VBCSCompiler.exe.refresh

..\..\..\..\source\repos\Project\packages\Microsoft.Net.Compilers.2.1.0\tools\VBCSCompiler.exe

Project/ClientDashboard.aspx

<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="ClientDashboard.aspx.cs" Inherits="_Default" %> <asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server"> </asp:Content> <asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server"> <asp:ImageButton ID="imgStaffingRequests" runat="server" ImageAlign="AbsMiddle" ImageUrl="~/images/staffRequestLogo.gif" Width="50px" PostBackUrl="~/StaffRequest.aspx" /> <asp:LinkButton ID="linkStaffingRequests" runat="server" PostBackUrl="~/StaffRequest.aspx">Staff Requests</asp:LinkButton> <br /> <asp:ImageButton ID="imgStaffInfo" runat="server" ImageAlign="AbsMiddle" ImageUrl="~/images/staffInfoLogo.gif" Width="50px" /> <asp:LinkButton ID="linkStaffInfo" runat="server">Staff Information</asp:LinkButton> <br /> <asp:ImageButton ID="imgContractInfo" runat="server" ImageAlign="AbsMiddle" ImageUrl="~/images/contractInfoLogo.png" Width="50px" /> <asp:LinkButton ID="linkContractInfo" runat="server">Contract Information</asp:LinkButton> <br /> </asp:Content> <asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server"> </asp:Content>

Project/ClientDashboard.aspx.cs

using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; public partial class _Default : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { if (Session["SecurityLevel"].ToString() == "client") { linkStaffingRequests.Visible = true; linkStaffInfo.Visible = true; linkContractInfo.Visible = false; imgStaffingRequests.Visible = true; imgStaffInfo.Visible = true; imgContractInfo.Visible = false; } else if (Session["SecurityLevel"].ToString() == "staffmember") { linkStaffingRequests.Visible = false; linkStaffInfo.Visible = true; linkContractInfo.Visible = false; imgStaffingRequests.Visible = false; imgStaffInfo.Visible = true; imgContractInfo.Visible = false; } else if (Session["SecurityLevel"].ToString() == "contractmanager") { linkStaffingRequests.Visible = true; linkStaffInfo.Visible = true; linkContractInfo.Visible = true; imgStaffingRequests.Visible = true; imgStaffInfo.Visible = true; imgContractInfo.Visible = true; } else { Response.Redirect("LoginPage.aspx"); } } }

Project/images/contractInfoLogo.png

Project/images/logout.png

Project/images/staffInfoLogo.gif

Project/images/staffRequestLogo.gif

Project/images/TPSlogo.jpg

Project/LoginPage.aspx

<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="LoginPage.aspx.cs" Inherits="_Default" %> <%@ MasterType VirtualPath="~/MasterPage.master" %> <asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server"> </asp:Content> <asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server"> <asp:Login ID="Login1" runat="server" OnAuthenticate="Login1_Authenticate"> <LayoutTemplate> <table cellpadding="1" cellspacing="0" style="border-collapse:collapse;"> <tr> <td> <table cellpadding="0"> <tr> <td align="center" colspan="2">Log In</td> </tr> <tr> <td align="right"> <asp:Label ID="UserNameLabel" runat="server" AssociatedControlID="UserName">User Name:</asp:Label> </td> <td> <asp:TextBox ID="UserName" runat="server"></asp:TextBox> <asp:RequiredFieldValidator ID="UserNameRequired" runat="server" ControlToValidate="UserName" ErrorMessage="User Name is required." ToolTip="User Name is required." ValidationGroup="Login1">*</asp:RequiredFieldValidator> </td> </tr> <tr> <td align="right"> <asp:Label ID="PasswordLabel" runat="server" AssociatedControlID="Password">Password:</asp:Label> </td> <td> <asp:TextBox ID="Password" runat="server" TextMode="Password"></asp:TextBox> <asp:RequiredFieldValidator ID="PasswordRequired" runat="server" ControlToValidate="Password" ErrorMessage="Password is required." ToolTip="Password is required." ValidationGroup="Login1">*</asp:RequiredFieldValidator> </td> </tr> <tr> <td colspan="2"> <asp:CheckBox ID="RememberMe" runat="server" Text="Remember me next time." /> </td> </tr> <tr> <td align="center" colspan="2" style="color:Red;"> <asp:Literal ID="FailureText" runat="server" EnableViewState="False"></asp:Literal> </td> </tr> <tr> <td align="right" colspan="2"> <asp:Button ID="LoginButton" runat="server" CommandName="Login" Text="Log In" ValidationGroup="Login1" UseSubmitBehavior="true" /> </td> </tr> </table> </td> </tr> </table> </LayoutTemplate> </asp:Login> <br /> <br /> </asp:Content> <asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server"> </asp:Content>

Project/LoginPage.aspx.cs

using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; public partial class _Default : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { Master.UserFeedback.Text = "Please Login"; Session["SecurityLevel"] = null; } protected void Login1_Authenticate(object sender, AuthenticateEventArgs e) { DataLayer dbAccess = new DataLayer(); dsUserLogin dsValidUser = new dsUserLogin(); dsValidUser = dbAccess.RetrieveUser(Login1.UserName, Login1.Password); if (dsValidUser.userLogin.Count == 1 && dsValidUser.userLogin[0].UserName == Login1.UserName && dsValidUser.userLogin[0].Password == Login1.Password) { Session["SecurityLevel"] = dsValidUser.userLogin[0].UserType.ToString(); Master.UserFeedback.Text = dsValidUser.userLogin[0].UserType.ToString(); e.Authenticated = true; FormsAuthentication.RedirectFromLoginPage(Login1.UserName, false); } else { Master.UserFeedback.Text = "Bad Credentials"; } } }

Project/MasterPage.master

Taylor’s Professional Services

Technical and Engineering Staffing Service

Welcome!
Group 4 Project  

Project/MasterPage.master.cs

using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; public partial class MasterPage : System.Web.UI.MasterPage { protected void Page_Load(object sender, EventArgs e) { } public Label UserFeedback { get { return lblUserFeeBack; } set { lblUserFeeBack = value; } } protected void ImageButton1_Click(object sender, ImageClickEventArgs e) { Response.Redirect("LoginPage.aspx"); } }

Project/packages.config

Project/StaffRequest.aspx

<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="StaffRequest.aspx.cs" Inherits="_Default" %> <asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server"> </asp:Content> <asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server"> <asp:Label ID="Label1" runat="server" Text="Staff Request Number" Width="150px"></asp:Label> <asp:TextBox ID="TextBox1" runat="server" Width="150px"></asp:TextBox> <br /> <asp:Label ID="Label2" runat="server" Text="Location of Work" Width="150px"></asp:Label> <asp:TextBox ID="TextBox2" runat="server" Width="150px"></asp:TextBox> <br /> <asp:Label ID="Label3" runat="server" Text="Type of Work" Width="150px"></asp:Label> <asp:TextBox ID="TextBox3" runat="server" Width="150px"></asp:TextBox> <br /> <asp:Label ID="Label4" runat="server" Text="Salary" Width="150px"></asp:Label> <asp:TextBox ID="TextBox4" runat="server" Width="150px"></asp:TextBox> <br /> <asp:Label ID="Label5" runat="server" Text="Request Status" Width="150px"></asp:Label> <asp:DropDownList ID="DropDownList1" runat="server" Width="150px"> <asp:ListItem>Valid</asp:ListItem> <asp:ListItem>Invalid</asp:ListItem> <asp:ListItem>Unable to Fill</asp:ListItem> <asp:ListItem>Filled</asp:ListItem> </asp:DropDownList> <br /> </asp:Content> <asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server"> <asp:Button ID="Button1" runat="server" Text="Submit Request" Width="150px" /> <br /> <asp:Button ID="Button2" runat="server" Text="Find Request" Width="150px" /> <br /> <asp:Button ID="Button3" runat="server" Text="Validate Request" Width="150px" /> <br /> <asp:Button ID="Button4" runat="server" Text="Close Request" Width="150px" /> </asp:Content> <asp:Content ID="Content4" ContentPlaceHolderID="ContentPlaceHolder3" runat="server"> <asp:GridView ID="grdStaffMembers" runat="server" HorizontalAlign="Center"></asp:GridView> </asp:Content>

Project/StaffRequest.aspx.cs

using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; public partial class _Default : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { } }

Project/Web.config

Project/Web.Debug.config