Find Us On: Facebook Twitter Rss Feed Blog
Need To Register? Sign Up Login

Final Project

lemonnr
lemonnr 


I need help getting this final project done and getting a good grade on it. I don't necessarily need it done for me but I need to have some help so I can get a good grade and pass the class. Attachments Tags
Clarifications

Answers

Final Exam

dickersonka
dickersonka 



Attached is the final exam with subfolders for Questions A-E Attachments
FinalExam.zip (1595 K) Download











Preview

Preview

Preview

Preview

Preview

Preview

Preview

Preview

Preview
type. [assembly: ComVisible(false)] // The following GUID is for the ID of the typelib if this project is exposed to COM [assembly: Guid("03259569-6e81-4876-be7c-beaac1aed553")] // Version information for an assembly consists of the following four values: // // Major Version // Minor Version // Build Number // Revision //

Preview
{ private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); public static Settings Default { get { return defaultInstance; } } [global::System.Configuration.ApplicationScopedSettingAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]

Preview
Prod p; foreach (DataRow row in table.Rows) { p = new Prod(); p.ProductID = Int32.Parse(row["ProductID"].ToString()); p.ProductName = row["ProductName"].ToString(); p.SupplierID = Int32.Parse(row["SupplierID"].ToString()); p.CategoryID = Int32.Parse(row["CategoryID"].ToString()); p.QuantityPerUnit = row["QuantityPerUnit"].ToString(); p.UnitPrice = Decimal.Parse(row["UnitPrice"].ToString()); p.UnitInStock = Int32.Parse(row["UnitInStock"].ToString()); p.UnitsOnOrder = Int32

Preview
{ this._productId = value; } } public string ProductName { get { return this._productName; } set { this._productName = value; } } public Int32 SupplierID { get { return this._supplierId; } set { this._supplierId = value; }

Preview
Font-Bold="True" ForeColor="White" /> <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" /> <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" /> <RowStyle BackColor="#F7F6F3" ForeColor="#333333" /> <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" /> <SortedAscendingCellStyle BackColor="#E9E7E2" /> <SortedAscendingHeaderStyle BackColor="#506C8C" /> <SortedDescendingCellStyle BackColor="#FFFDF8" /> <SortedDescendin

Preview
orderby a.UnitsOnOrder descending select a; } break; case "ReorderLevel": if (GridSortDirection == SortDirection.Ascending) { sorted = from a in Products orderby a.ReorderLevel ascending select a; } else { sorted = from a in Products orderby a.ReorderLevel

Preview
/// </summary> /// <remarks> /// Auto-generated field. /// To modify move field declaration from designer file to code-behind file. /// </remarks> protected global::System.Web.UI.HtmlControls.HtmlForm form1; /// <summary> /// gvProducts control. /// </summary> /// <remarks> /// Auto-generated field. ///

Preview
<PageCount>274</PageCount> <Recommended>False</Recommended> <Isbn>0375508805</Isbn> </book> <book> <BookId>4</BookId> <Title>The Catcher in the Rye</Title> <Author>J.D. Salinger</Author> <Genre>Fiction</Genre> <YearPublished>1991</YearPublished> <Price>6.9500</Price> <LastReadOn>6/12/2004 12:00:00 AM</LastReadOn> <PageCount>224</PageCount> <Recommended>False</Recommended> <Isbn>0316769487</Isbn> </book> <book> <BookId>5</BookId> <Title>Fight

Preview
Genre { get; set; } public int YearPublished { get; set; } public Decimal Price { get; set; } public DateTime LastReadOn { get; set; }

Preview
"SELECT * FROM Books"; DataTable table = ExecuteSelectCommand(comm); Book b; foreach (DataRow row in table.Rows) { b = new Book(); b.BookId = Int32.Parse(row["BookId"].ToString()); b.Title = row["Title"].ToString(); b.Author = row["Author"].ToString(); b.Genre = row["Genre"].ToString(); b.YearPublished = Int32.Parse(row["YearPublished"].ToString()); b.Price = Decimal.Parse(row["Price"].ToString());

Preview
runat="server"> <title></title> </head> <body> <form id="form1" runat="server"> <div> <asp:Button runat="server" ID="btnCreateXml" Text="Create

Preview
String elementValue) { xmlWriter.WriteStartElement(elementName); xmlWriter.WriteValue(elementValue); xmlWriter.WriteEndElement(); } protected void btnCreateXml_Click(object sender, EventArgs e) { List<Book> books = DataAccess.GetBooks(); XmlWriterSettings wSettings = new XmlWriterSettings(); wSettings.Indent = true; XmlWriter xmlWriter = XmlWriter.Create(Server.MapPath("books.xml"), wSettings); xmlWriter.WriteStartDocument(); //xmlWriter.WriteString("<?xml-style

Preview
/// Auto-generated field. /// To modify move field declaration from designer file to code-behind file. /// </remarks> protected global::System.Web.UI.WebControls.Button btnCreateXml; /// <summary> /// lblCreated control. /// </summary> /// <remarks> /// Auto-generated field. /// To modify move field declaration from

Preview
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ListBooks.aspx.cs" Inherits="WebApplication1.QuestionB.ListBooks" %> <!DOCTYPE html PUBLIC

Preview
ListBooks : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { string MyXmlPath =Server.MapPath("books.xml"); string

Preview
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if

Preview
/> <asp:Panel runat="server" ID="pnlBook" Visible = "false"> <table border="1" cellpadding="5"> <tr> <td>Book Id</td> <td>Title</td> <td>Author</td> <td>Genre</td> <td>Year Published</td> <td>Price</td> <td>Last Read On</td> <td>Page Count</td> <td>Recommended</td> <td>ISBN</td> </tr> <tr> <td> <asp:Label runat="server"

Preview
} } } protected void btnSubmit_Click(object sender, EventArgs e) { //Get selected book id int bookId = Convert.ToInt32(ddlTitles.SelectedItem.Value); //Create the web service reference object wsBookService.BookWebService bookService = new wsBookService.BookWebService(); //Call the service wsBookService.Book book = bookService.GetBookById(bookId);

Preview
/// btnSubmit control. /// </summary> /// <remarks> /// Auto-generated field. /// To modify move field declaration from designer file to code-behind file. /// </remarks> protected global::System.Web.UI.WebControls.Button btnSubmit; /// <summary> /// pnlBook control. /// </summary> /// <remarks> /// Auto-generated

Preview
<%@ WebService

Preview
allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line. // [System.Web.Script.Services.ScriptService] public class BookWebService : System.Web.Services.WebService {

Preview
set; } public String Genre { get; set; } public int YearPublished { get; set; } public Decimal Price { get; set; } public DateTime LastReadOn

Preview
reader.Close(); } catch (Exception) { throw; } finally { command.Connection.Close(); } return table; } private static SqlCommand CreateCommand() { string connectionString = ConfigurationManager.ConnectionStrings["FinalExam"].ConnectionString; SqlConnection conn = new SqlConnection(connectionString); SqlCommand comm = conn.CreateCommand();

Preview
You are able to pass an actual object between the client and the server, along with primitive types. <br /> In Question C I first created a web method. </p> <pre> [WebMethod] public Book GetBookById(int bookId) </pre> <p>I then added a web

Preview
{ public partial class Answers_ : System.Web.UI.Page { protected

Preview
//------------------------------------------------------------------------------ namespace WebApplication1.QuestionD { public partial class Answers_ { /// <summary> /// form1 control. /// </summary>

Preview
System.Web.UI.WebControls; namespace WebApplication1.QuestionE { public partial class QuestionE : System.Web.UI.MasterPage

Preview
/// head control. /// </summary> /// <remarks> /// Auto-generated field. /// To modify move field declaration from designer file to code-behind file. /// </remarks> protected global::System.Web.UI.WebControls.ContentPlaceHolder head; /// <summary> /// form1 control. /// </summary> /// <remarks> ///

Preview
html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title></title>

Preview
using System.Web; using System.Web.UI; using System.Web.UI.WebControls; namespace WebApplication1.QuestionE { public

Preview
</auto-generated> //------------------------------------------------------------------------------ namespace WebApplication1.QuestionE { public partial class LoggedIn { /// <summary> /// form1 control. /// </summary>

Preview
ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server"> <div style="width: 30%; margin: auto">

Preview
EventArgs e) { } protected void Login1_Authenticate(object sender, AuthenticateEventArgs e) { if (Login1.UserName.Equals("john", StringComparison.CurrentCultureIgnoreCase) && Login1.Password.Equals("doe",

Preview
</auto-generated> //------------------------------------------------------------------------------ namespace WebApplication1.QuestionE { public partial class Login { /// <summary> /// Login1 control. /// </summary>

Preview
/// <remarks/> public bool Recommended { get { return this.recommendedField; } set { this.recommendedField = value; } } /// <remarks/> public string Isbn { get { return this.isbnField; } set { this.isbnField = value;

Preview
application, please visit http://go.microsoft.com/fwlink/?LinkId=169433 --> <configuration> <configSections> <sectionGroup name="applicationSettings" type="System.Configuration.ApplicationSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" > <section name="WebApplication1.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"

Preview
<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform"> <!-- In the example below, the "SetAttributes" transform will change the value of "connectionString" to use "ReleaseSQLServer" only when the "Match" locator finds an atrribute "name" that has a value of "MyDB".

Preview
connectionString="Data Source=ReleaseSQLServer;Initial Catalog=MyReleaseDB;Integrated Security=True" xdt:Transform="SetAttributes" xdt:Locator="Match(name)"/> </connectionStrings> --> <system.web> <compilation xdt:Transform="RemoveAttributes(debug)" /> <!-- In the example below, the "Replace" transform will replace the entire <customErrors> section of your web.config file. Note that because

Screenshots
Screenshot
Screenshot
Screenshot
Screenshot
Screenshot
Screenshot
Screenshot
Screenshot
Purchase Answer