Table Of Contents
  • ASP Homework Help, Project Help, ASP Assignment Solution
  • My Notes
  • My Notes
  •             Report
  •                         Create a New Account                    
  •         Change Password    

ASP Homework Help, Project Help, ASP Assignment Solution

Welcome, you’ve visited the premier place if you require help with Asp homework. We guarantee that the work will be completed, or we will give you a complete refund.
ASP was Microsoft’s design for dynamic web pages, it stands for Active Server Pages. Normally used with C# as the backend (the code that runs on the server).
ASP.NET is a web development platform, which provides a programming model, to build up robust web applications for PC as well as mobile devices. Students who are studying ASP.net in their semesters have always felt the urge of completing the assignment through our asp.net assignment help.
Following is a Asp program to solve the assignment, if you need help with Asp this is just a sample of the kind of work we can do for you.

Problem:

Assignment 1:

  1. Add a master page that your other aspx pages will inherit from.
  2. Add a top menu (with at least 3 menu items, though they may not link to anywhere yet) and a graphic banner of your choice and bottom footer of your choice to the master page
  3. Add a style sheet that is referenced on the master page and has at least 3 items to help style your pages
  4. Add 2 user controls and display them on your default aspx page. One control will be a simple list of store contact information. The other control will be a featured product control which displays a featured product of your choosing with an image and a description.
  5. Add a pie chart to your main page using the Graphics class. Have the pie chart split into at least 3 different sections.

Assignment 2:

  1. Setup the sample database
  2. Create the products table with fields such as id, name, description, price, etc, and add at least 3 records into this database 
  3. Create a DisplayProducts.aspx page that will query your products table and display the results on the page
  4. Create an InsertProduct.aspx page that will get the name, description, price, etc from the user through fields on the form with a submit button that will insert a new product record into your database with the values that the user entered. 
  5. Create a DeleteProduct.aspx page that will have a textbox for the id of a product to delete and a submit button that will delete the product in the database with the corresponding id. 

Assignment 3:

Create a store application in Visual Studio
Create the following pages:
Home page, about us, products, registration, Contact us
Include a master page in your project that each page will inherit from
Include a style sheet in your project that will be on your master page
The products page should have at least 10 products with images and descriptions and prices.
The products page data should be pulled from a database of products
Include a products detail page when a product is selected in order to display it, passing in the product to display by id in the query string and then querying a database to display that product (with an image and information and price)
The registration page should allow a user to fill out their information and the data will be stored in a database.
Include validation on each control on the registration page
  1. Each page added (Home page, about us, products, registration, Contact us)
  2. Each page uses the included master page
  3. 10 products on products page with images of descriptions and prices
  4. All products page information should be pulled from a database
  5. Each product links to a product detail page bypassing the product id in a query string (the page should display large product image, information, and price) 
  6. Product detail page information should be pulled from the database
  7. Capture user information in the registration page and store their information in a database
  8. Validation on each control (as it makes sense) on the registration page
  9. Products table created in a database which includes all product information (id, name, description, price, etc)
  10. Registration table created in the database to store user information
They have always used our asp.net homework help for their assignment solutions and have found to be fruitful in their semester examinations. Our experts have found that beginners face problems initially to understand the concepts of the event-driven model of interaction to the web applications.

Solution

Assignment 1

pie.ashx
<%@ WebHandler Language="C#" Class="Pie" %>
using System;
using System.Web;
using System.Drawing;
using System.Drawing.Imaging;
using System.Drawing.Drawing2D;
public class Pie : IHttpHandler {
    public void ProcessRequest (HttpContext context)
    {
        string val1 = context.Request.QueryString["val1"];
        string names = context.Request.QueryString["val2"];
        string[] num = val1.Split(',');
        string[] nm = names.Split(',');
        displayImage(num,nm);
        context.Response.ContentType = "image/gif";
        bmp.Save(context.Response.OutputStream, ImageFormat.Gif);
    }
    Bitmap bmp;
    public void displayImage(string []num,string[] nms)
    {
        bmp = new Bitmap(500, 500);
        Graphics graphic = Graphics.FromImage(bmp);
        SolidBrush whitebrush = new SolidBrush(Color.White);
        SolidBrush BlackBrush = new SolidBrush(Color.Black);
        Pen blackPen = new Pen(Color.Black, 2);
        graphic.FillRectangle(whitebrush, 0, 0, 500, 500);
        float tot = 0;
        for (int i = 0; i < num.Length; i++)
        {
            tot += float.Parse(num[i]);
        }
        Random rnd = new Random();
        float[] val = new float[num.Length];
        if (tot == 0)
            tot = 1;
        int gap = Convert.ToInt32((30 / 100) * (440 / num.Length));
        int thickness = Convert.ToInt32((440 / num.Length) - ((60 / 100) * (440 / num.Length)));
        if (num.Length < 16)
        {
            gap = 20;
            thickness = 10;
        }
        float start = 0;
        for (int i = 0; i < val.Length; i++)
        {
            SolidBrush brush = new SolidBrush(Color.FromArgb(rnd.Next(255), rnd.Next(255), rnd.Next(255)));
            val[i] = (float.Parse(num[i]) / tot) * 360;
            graphic.FillPie(brush, 0, 0, 380, 380, start, val[i]);
            graphic.FillRectangle(brush, 410, ((i * (gap + thickness)) + 40), thickness, thickness);
            graphic.DrawString(nms[i], new Font("Arial", 8), BlackBrush, 420 + thickness, ((i * (gap + thickness)) + 38));
            start += val[i];
        }
    }
    public bool IsReusable {
        get {
            return false;
        }
    }
}
ContactInfo.ascx
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ContactInfo.ascx.cs" Inherits="ContactInfo" %>
   
       
       
   
   
       
       
   
   
       
       
   
Name : <%= this.UserName %>
Phone : <%= this.PhoneNumber %>
Address : <%= this.UserAddress %>
ContactInfo.ascx.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 ContactInfo : System.Web.UI.UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {
    }
    private string Name;
    private string Phone;
    private string Address;
    public string UserName
    {
        get { return Name; }
        set { Name = value; }
    }
    public string PhoneNumber
    {
        get { return Phone; }
        set { Phone = value; }
    }
    public string UserAddress
    {
        get { return Address; }
        set { Address = value; }
    }
}

Assignment 2

InsertProduct.aspx
<%@ Page Title="INSERT PRODUCT" Language="C#" MasterPageFile="~/SiteMaster.master" AutoEventWireup="true" CodeFile="InsertProduct.aspx.cs" Inherits="InsertProduct" %>
   
   
       
       
           
           
           
   
Insert product
   
       
           
           
           
           
       
       
           
           
           
           
       
       
           
           
           
           
       
       
           
           
           
           
       
   
                 
                 
                 
                 
               
           
               
           
               
           
               
           
               
           
               
                    No Image
                    iPhone
                    iPad
                    Camera
               
           
               
           
               
           
     
               
               
           
       
               
They start looking for asp.net assignments to solve their ASP.net assignment questions. Students always take help with asp.net homework in order to prepare themselves for their semester exams.
InsertProduct.aspx.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data.OleDb;
using System.Configuration;
public partial class InsertProduct : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        txtName.Focus();
        if (!IsPostBack)
            ddlImages.SelectedIndex = -1;
    }
    OleDbCommand cmd;
    OleDbConnection con;
    protected void btnAdd_Click(object sender, EventArgs e)
    {
        con = new OleDbConnection(ConfigurationManager.ConnectionStrings["mycon"].ConnectionString);
        string q = "insert into Products(ProductName,Price,Description,Img) values (@name,@price,@desc,@img)";
        cmd = new OleDbCommand(q, con);
        cmd.Parameters.Add("@name", OleDbType.VarChar).Value = txtName.Text;
        cmd.Parameters.Add("@price", OleDbType.VarChar).Value = txtPrice.Text;
        cmd.Parameters.Add("@desc", OleDbType.VarChar).Value = txtDesc.Text;
        cmd.Parameters.Add("@img", OleDbType.VarChar).Value = ddlImages.SelectedValue;
        try
        {
            con.Open();
            cmd.ExecuteNonQuery();
            con.Close();
            ClearAll();
            ScriptManager.RegisterStartupScript(this.Page, this.GetType(), "done", "javascript:alert('Product inserted successfully');", true);
        }
        catch
        {
            ScriptManager.RegisterStartupScript(this.Page, this.GetType(), "error", "javascript:alert('Product insertion failed. Please enter valid values');", true);
        }
        finally
        {
            if (con.State == System.Data.ConnectionState.Open)
                con.Close();
        }
    }
    void ClearAll()
    {
        txtName.Text = "";
        txtPrice.Text = "";
        txtDesc.Text = "";
        ddlImages.SelectedIndex = -1;
        txtName.Focus();
    }
    protected void btnClear_Click(object sender, EventArgs e)
    {
        ClearAll();
    }
}
DisplayProduct.aspx
<%@ Page Title="DISPLAY PRODUCTS" Language="C#" MasterPageFile="~/SiteMaster.master" AutoEventWireup="true" CodeFile="DisplayProduct.aspx.cs" Inherits="DisplayProduct" %>
   
   
       
           
       
   
               
PRODUCTS LIST
               
                   
                   
                   
                   
Product ID : <%# Eval("ID") %>
                         
                             
                                 
                                 
                                 
                             
                             
                                 
                                 
                             
                             
                                 
                                 
                             
                         
                                     
                                 
                                     
                                 
                                     
                                     
                                 
                                     
                                 
                                     
                                 
                                     
                                 
                   
                   
                   
                       
                   
           
DisplayProduct.aspx.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Drawing;
using System.Drawing.Imaging;
using System.Data.OleDb;
using System.Configuration;
using System.Data;
public partial class DisplayProduct : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
            LoadProducts();
    }
    void LoadProducts()
    {
        OleDbConnection con = new OleDbConnection(ConfigurationManager.ConnectionStrings["mycon"].ConnectionString);
        string query = "select p.ID,p.ProductName,p.Price,p.Description,p.Img from Products p order by p.ID";
        OleDbDataAdapter adap = new OleDbDataAdapter(query, con);
        DataSet ds = new DataSet();
        adap.Fill(ds);
        DataList1.DataSource = ds.Tables[0];
        DataList1.DataBind();
    }
}
Our online ASP.net experts discuss about the different stages of the ASP.net page like Page request, Starting of page life cycle, Page initialization, Page load Validation, Postback event handling when they offer ASP.net homework help.

Assignment 3

Registration.aspx
<%@ Page Title="Registration" Language="C#" MasterPageFile="~/SiteMaster.master" AutoEventWireup="true" CodeFile="Registration.aspx.cs" Inherits="Registration" %>
   
   
       
           
       
       
           
       
   
 
               
New Registration Form
               
                   
                       
                       
                       
                       
                   
                   
                       
                       
                       
                       
                   
                   
                       
                       
                       
                       
                   
                   
                       
                       
                       
                       
                   
                   
                       
                       
                       
                       
                   
                   
                       
                       
                       
                       
                   
               
                           
                       
                           
                       
                           
                       
                           
                               
                               
                           
                       
                             
                           
                       
                             
                           
                       
                           
                       
                           
                           
                       
                           
                       
                           
                       
                             
                           
                       
                             
                           
                       
                           
                       
                           
                       
 
                           
                           
                       
                             
                           
                       
   
                   
           
Registration.aspx.cs
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data.OleDb;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
public partial class Registration : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
            LoadAge();
        txtName.Focus();
    }
    OleDbCommand cmd;
    OleDbConnection con;
    void LoadAge()
    {
        for(int i=1;i<100;i++)
        {
            ddlAge.Items.Add(i.ToString());
        }
        ddlAge.SelectedIndex = 17;
    }
    void ClearAll()
    {
        txtAddress.Text = "";
        txtContact.Text = "";
        txtName.Text = "";
        ddlAge.SelectedIndex = 17;
        rblGender.ClearSelection();
        txtName.Focus();
    }
    protected void btnClear_Click(object sender, EventArgs e)
    {
        ClearAll();
    }
    protected void btnRegister_Click(object sender, EventArgs e)
    {
        string query = "insert into Registration(UserName,Age,Gender,ContactNumber,Address,RegistrationDatetime) values (@uname,@age,@gender,@contact,@add,@dt)";
        con = new OleDbConnection(ConfigurationManager.ConnectionStrings["mycon"].ConnectionString);
        cmd = new OleDbCommand(query, con);
        cmd.Parameters.Add("@uname", OleDbType.VarChar).Value = txtName.Text;
        cmd.Parameters.Add("@age", OleDbType.VarChar).Value = ddlAge.SelectedValue;
        cmd.Parameters.Add("@gender", OleDbType.VarChar).Value = rblGender.SelectedValue;
        cmd.Parameters.Add("@contact", OleDbType.VarChar).Value = txtContact.Text;
        cmd.Parameters.Add("@add", OleDbType.VarChar).Value = txtAddress.Text;
        cmd.Parameters.Add("@dt", OleDbType.VarChar).Value = DateTime.Now; ;
        try
        {
            con.Open();
            cmd.ExecuteNonQuery();
            con.Close();
            ClearAll();
            ScriptManager.RegisterStartupScript(this.Page, this.GetType(), "done", "javascript:alert('Registration successfully');", true);
        }
        catch
        {
            ScriptManager.RegisterStartupScript(this.Page, this.GetType(), "error", "javascript:alert('Registration failed. Please enter valid values');", true);
        }
        finally
        {
            if (con.State == System.Data.ConnectionState.Open)
                con.Close();
        }
    }
}
Beginners have found our asp.net assignments most helpful to solve their asp.net assignment questions. Learners avail the benefits of developing code in asp.net sample project where they get the support from our experts in coding.
Products.aspx
<%@ Page Title="Products" Language="C#" MasterPageFile="~/SiteMaster.master" AutoEventWireup="true" CodeFile="Products.aspx.cs" Inherits="Products" %>
   
       
           
       
       
           
       
   
 
               
PRODUCTS LIST - SELECT A PRODUCT TO VIEW DETAILS
                   
                       
                           
                               
                                   
                                        <%# Eval("ProductName") %>
                                   
                               
                               
                           
                             
                           
                           
                           
                           
                           
                           
                       
                   
               
           
Products.aspx.cs
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Data.OleDb;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
public partial class Products : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
            LoadProducts();
    }
    void LoadProducts()
    {
        OleDbConnection con = new OleDbConnection(ConfigurationManager.ConnectionStrings["mycon"].ConnectionString);
        string query = "select p.ID,p.ProductName,p.Price from Products p Order by ID";
        OleDbDataAdapter adap = new OleDbDataAdapter(query, con);
        DataSet ds = new DataSet();
        adap.Fill(ds);
        GridView1.DataSource = ds.Tables[0];
        GridView1.DataBind();
    }
}
ProductDetails.aspx
<%@ Page Title="PRODUCT DETAILS" Language="C#" MasterPageFile="~/SiteMaster.master" AutoEventWireup="true" CodeFile="ProductDetails.aspx.cs" Inherits="ProductDetails" %>
   
   
       
           
       
   
               
PRODUCT DETAILS
                   
                       
                       
                       
                       
Product ID : <%# Eval("ID") %>
                             
                                 
                                     
                                     
                                     
                                 
                                 
                                     
                                     
                                 
                                 
                                     
                                     
                                 
                             
                                         
                                     
                                         
                                     
                                         
                                         
                                     
                                         
                                     
                                         
                                     
                                         
                                     
                       
                       
                       
                   
               
           
ProductDetails.aspx.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Drawing;
using System.Drawing.Imaging;
using System.Data.OleDb;
using System.Configuration;
using System.Data;
public partial class ProductDetails : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            string id = Request.QueryString["ID"];
            LoadProducts(id);
        }
    }
    void LoadProducts(string ID)
    {
        OleDbConnection con = new OleDbConnection(ConfigurationManager.ConnectionStrings["mycon"].ConnectionString);
        string query = "select p.ID,p.ProductName,p.Price,p.Description,p.Img from Products p where p.ID="+ID;
        OleDbDataAdapter adap = new OleDbDataAdapter(query, con);
        DataSet ds = new DataSet();
        adap.Fill(ds);
        DataList1.DataSource = ds.Tables[0];
        DataList1.DataBind();
    }
}
Here is an example of an Asp homework, compare our solutions to anyone else. Check out our Asp programming homework help.

Problem:

This assignment introduces ASP.NET. We will continue to use the database tables from assignment 4 to store all
notes (and tags). Your application has largely the same functions from assignment 4, except that the user
interface is a web browser. The requirements are specified below.
  1. Provide a user interface to display all notes from the database. Provide options to sort notes based on the title, the creation time, and the most recent update time. Note that tags are required to be displayed in this view. In case that the text body or title of note is very long to be displayed nicely, you do not have to show the complete text.
  2. Provide a user interface to add a new note. Pay attention that neither the creation time nor the update time can be set by the user.
  3. Provide a user interface to select a note and display the complete information of this note, edit it, or delete it. Similar to the above requirement, pay attention that neither the creation time nor the update time can be set by the user.
  4. All the above changes need to be saved in the database.
  5. Your system shall provide a user interface to take an input tag and display the notes with the specified tag. Show the value of the number of found notes.
  6. Display all tags somewhere in your application. Allow the user to select a tag and display nicely all notes that are associated with this tag. Similar to requirement 5, show the number of notes.
  7. Pay attention to programming styles and documentation.
  8. Your database shall have at least 20 notes. At least five of them have a tag “test”. This requirement is for grading purposes. You do not get points for it. But if you do not provide a sufficient number of notes, your projects gets 0 points.
  9. If you implement some useful new features not specified above, you can get up to 10 more bonus points.
Provide documentation of your new features both in the source code and on the blackboard when you submit. You do not get bonus points without such documentation.

Solution:

Default.aspx
<%@ Page Language="C#" MasterPageFile="~/Site.master" CodeBehind="Default.aspx.cs" Inherits="mynotesasp._Default" %>
   
       
           

My Notes

           

           
           
                RepeatDirection="Horizontal" />
           
                BorderWidth="1px" CellPadding="4" ForeColor="#333333" GridLines="None" AllowSorting="true"
                AllowPaging="true" PageSize="5" OnPageIndexChanging="gvNote_PageIndexChanging"
                OnSorting="gvNotes_Sorting" OnRowEditing="gvNotes_RowEditing" OnRowDeleting="gvNotes_RowDeleting">
               
               
                   
                       
                           
                       
                   
                   
                       
                           
                       
                   
                   
                       
                           
                       
                   
                   
                       
                           
                       
                   
                   
                       
                           
                       
                   
                   
                       
                           
                       
                   
                   
                   
               
               
               
               
               
               
               
           
           
       
       
           

My Notes

           

           
           
               
                   
                   
               
               
                   
                   
               
               
                   
                   
               
               
                   
                   
               
               
                   
               
           
Title
Body
Created
Last modified
                       
                   
           
           
       
   
Default.aspx.cs
using System;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web.DynamicData;
using System.Data.Odbc;
using System.Configuration;
using System.Web.UI.WebControls;
using System.Data;
using MySql.Data.MySqlClient;
using System.Collections.Generic;
namespace mynotesasp
{
    public partial class _Default : System.Web.UI.Page
    {
        #region Session vars
        private DataView View
        {
            get
            {
                return Session["_Default_aspx_view"] as DataView;
            }
            set
            {
                Session["_Default_aspx_view"] = value;
            }
        }
        #endregion
        protected void Page_Load(object sender, EventArgs e)
        {
            if (View == null)
            {
                View = new DataView();
                View.Table = new DataTable("notes");
                View.Table.Columns.Add("id");
                View.Table.Columns.Add("title");
                View.Table.Columns.Add("body");
                View.Table.Columns.Add("tags");
                View.Table.Columns.Add("tagsFilter");
                View.Table.Columns.Add("created");
                View.Table.Columns.Add("modified");
            }
            if (!Page.IsPostBack)
            {
                List tags = TagDA.GetAll();
                chkTags.DataSource = tags;
                chkTags.DataBind();
                chkEditTags.DataSource = tags;
                chkEditTags.DataBind();
                GetNotes();
                Rebind();
                this.chkAllNotes.Checked = true;
                chkAllNotes_CheckedChanged(sender, e);
            }
        }
        private void Rebind()
        {
            gvNotes.Caption = View.Count + " notes found.";
            gvNotes.DataSource = View;
            gvNotes.DataBind();
        }
        private void GetNotes()
        {
            View.Table.Clear();
            try
            {
                foreach (Note note in NoteDA.GetAll())
                {
                    View.Table.Rows.Add(
                        note.Id,
                        note.Title,
                        note.Body,
                        String.Join(", ", note.Tags.Select(t => t.Description).ToArray()),
                        "-" + String.Join("-", note.Tags.Select(t => t.Id).ToArray()) + "-",
                        note.Created,
                        note.Modified);
                }
            }
            catch (Exception ex)
            {
                Response.Write("An error occured: " + ex.Message);
            }
        }
        public static String FormatDateTime(Object dateTime)
        {
            DateTime local = ((DateTime)dateTime).ToLocalTime();
            return local.ToString("yyyy/MM/dd HH:mm");
        }
        protected void gvNotes_Sorting(object sender, GridViewSortEventArgs e)
        {
            string sortingDirection = string.Empty;
            if (direction == SortDirection.Ascending)
            {
                direction = SortDirection.Descending;
                sortingDirection = "Desc";
            }
            else
            {
                direction = SortDirection.Ascending;
                sortingDirection = "Asc";
            }
            View.Sort = e.SortExpression + " " + sortingDirection;
            Rebind();
        }
        protected void gvNote_PageIndexChanging(object sender, GridViewPageEventArgs e)
        {
            gvNotes.PageIndex = e.NewPageIndex;
            Rebind();
        }
        private DataRow GetRow(int rowIndex)
        {
            return View.ToTable().Rows[5 * gvNotes.PageIndex + rowIndex];
        }
        public SortDirection direction
        {
            get
            {
                if (ViewState["directionState"] == null)
                {
                    ViewState["directionState"] = SortDirection.Ascending;
                }
                return (SortDirection)ViewState["directionState"];
            }
            set
            {
                ViewState["directionState"] = value;
            }
        }
        private void ShowNote(DataRow dr)
        {
            this.hddId.Value = string.Empty;
            this.txtTitle.Text = string.Empty;
            this.txtBody.Text = string.Empty;
            this.txtCreated.Text = string.Empty;
            this.txtModified.Text = string.Empty;
            foreach (ListItem item in chkEditTags.Items)
            {
                item.Selected = false;
            }
            if (dr != null)
            {
                this.hddId.Value = dr["id"] as string;
                this.txtTitle.Text = dr["title"] as string;
                this.txtBody.Text = dr["body"] as string;
                this.txtCreated.Text = dr["created"] as string;
                this.txtModified.Text = dr["modified"] as string;
                string selectedTags = dr["tagsFilter"] as string;
                foreach (ListItem item in chkEditTags.Items)
                {
                    item.Selected = selectedTags.Contains("-" + item.Value + "-");
                }
            }
            this.pnlEditDelete.Visible = true;
            this.pnlList.Visible = false;
        }
        private void HideNote()
        {
            this.pnlEditDelete.Visible = false;
            this.pnlList.Visible = true;
        }
        protected void btnAddNote_Click(object sender, EventArgs e)
        {
            this.lblEditDeleteTitle.InnerText = "Add new note";
            this.btnSave.Text = "Add";
            this.txtTitle.Enabled = true;
            this.txtBody.Enabled = true;
            this.chkEditTags.Enabled = true;
            ShowNote(null);
        }
        protected void gvNotes_RowEditing(object sender, GridViewEditEventArgs e)
        {
            DataRow dr = GetRow(e.NewEditIndex);
            this.lblEditDeleteTitle.InnerText = "Edit note " + dr["id"];
            this.btnSave.Text = "Save";
            this.txtTitle.Enabled = true;
            this.txtBody.Enabled = true;
            this.chkEditTags.Enabled = true;
            ShowNote(dr);
        }
        protected void gvNotes_RowDeleting(object sender, GridViewDeleteEventArgs e)
        {
            DataRow dr = GetRow(e.RowIndex);
            this.lblEditDeleteTitle.InnerText = "Delete note " + dr["id"];
            this.btnSave.Text = "Confirm Delete";
            this.txtTitle.Enabled = false;
            this.txtBody.Enabled = false;
            this.chkEditTags.Enabled = false;
            ShowNote(dr);
        }
        protected void btnSave_Click(object sender, EventArgs e)
        {
            Note note = new Note
                        {
                            Id = String.IsNullOrEmpty(this.hddId.Value) ? -1 : Int32.Parse(this.hddId.Value),
                            Title = this.txtTitle.Text,
                            Body = this.txtBody.Text,
                            Tags = new List()
                        };
            foreach (ListItem selectedTag in chkEditTags.Items.OfType().Where(i => i.Selected))
            {
                note.Tags.Add(new Tag { Id = Int32.Parse(selectedTag.Value), Description = selectedTag.Text });
            }
            switch (this.btnSave.Text)
            {
                case "Add":
                    {
                        NoteDA.Add(note);
                        break;
                    }
                case "Save":
                    {
                        NoteDA.Edit(note);
                        break;
                    }
                case "Confirm Delete":
                    {
                        NoteDA.Delete(note);
                        break;
                    }
            }
            GetNotes();
            Rebind();
            HideNote();
        }
        protected void btnCancel_Click(object sender, EventArgs e)
        {
            HideNote();
        }
        private void UpdateFilter()
        {
            var selectedTags = chkTags.Items.OfType().Where(i => i.Selected);
            View.RowFilter = String.Join(" OR ", selectedTags.Select(i => "tagsFilter LIKE '%-" + i.Value + "-%'").ToArray());
        }
        protected void chkAllNotes_CheckedChanged(object sender, EventArgs e)
        {
            if (chkAllNotes.Checked)
            {
                foreach (ListItem chk in chkTags.Items)
                {
                    chk.Selected = true;
                }
                UpdateFilter();
                Rebind();
            }
        }
        protected void chkTags_SelectedIndexChanged(object sender, EventArgs e)
        {
            UpdateFilter();
            Rebind();
        }
    }
}
Site.css
/* Global classes */
.DDMainHeader
{
    font: small-caps bold 1.6em Trebuchet MS, Arial, sans-serif;
    color:#888;
    padding-bottom: 12px;
    border-bottom: 1px dotted #bbbbbb;
}
.DDSubHeader
{
    margin-bottom: 10px;
    font:1.2em Trebuchet MS, Arial, sans-serif;
    color: #888;
}
.DD
{
    padding: 0px 8px;
    font: .75em Tahoma, Arial, sans-serif;
    color: #666;
}
.DDLightHeader
{
    font-weight: bold;
    background-color: #F7F7FF;
}
.DDTextBox, .DDDropDown
{
    color: #666;
    font: .95em Tahoma, Arial, Sans-Serif;
    border: solid 1px #dcdcdc;
    background-color: #FEFEFE;
}
.DDDropDown
{
    padding:2px;
}
.DDFilter
{
    font: .95em Tahoma, Arial, Sans-serif;
    color:#666;
}
.DDControl
{
    padding: 0px;
    font: .95em Tahoma, Arial, Sans-Serif;
    color: #666;
}
.DDFloatLeft
{
    float:left;
}
.DDFloatRight
{
    float:right;
}
.DDFooter
{
    background-color: #dbddff;
}
.DDSelected
{
    background-color: #fdffb8;
}
div.DDNoItem
{
    color:Red;
    font-family:Trebuchet MS, Arial, sans-serif;
}
.DDValidator
{
    color:Red;
    font-family:Trebuchet MS, Arial, sans-serif;
}
/* Navigation */
div.DDNavigation
{
    font:.75em Tahoma, Arial, Sans-Serif;
    position: relative;
    top: -28px;
    margin-bottom: -10px;
    padding: 0px 5px;
}
div.DDNavigation img
{
    position: relative;
    margin-top: 0em;
    padding: 0px 8px;
    border: none;
    background-color: #fff;
}
div.DDNavigation a
{
    color: #839ce7;
    text-decoration: none;
    background-color: #fff;
    padding-right: 8px;
    top: -.2em;
    left: .25em;
}
div.DDNavigation a:hover
{
    color: #000099;
    text-decoration: underline !important;
}
/* Details VIEW/EDIT */
table.DDDetailsTable
{
    color: #666;
    background-color: #FCFDFE;
    border: 1px solid #dbddff;
    border-bottom-width: 3px;
}
table.DDDetailsTable a
{
    color:#718ABE;
    text-decoration: none;
    padding-right: 6px;
}
table.DDDetailsTable a:hover
{
    color: #000099;
    text-decoration: underline !important;
}
table.DDDetailsTable .td
{
    padding: 3px 6px;
    border: 1px solid #dbddff;
    border-bottom-style: dotted;
    font-size: .7em;
    font-family:Tahoma, Arial, Sans-Serif;
}
/* DDGridView/DDListView */
table.DDGridView, table.DDListView
{
    width: 100%;
    color: #666;
    border:solid 1px #dbddff;
    font: .7em Tahoma, Arial, Sans-Serif;
}
table.DDGridView .th, table.DDGridView .td, table.DDListView .th, table.DDListView .td
{
    white-space: nowrap;
}
table.DDGridView .th, table.DDListView .th
{
    background: url(DynamicData/Content/Images/header_back.gif) repeat-x;
    line-height:1.3em;
    text-align: left;
    font-size: 1em;
    border:solid 1px #dbddff;
}
table.DDGridView .th a, table.DDListView .th a
{
    color: #666;
    text-decoration: none;
}
table.DDGridView .td, table.DDListView .td
{
    border: dotted 1px #dbddff;
    border-left-width:0px;
    border-right-width:0px;
    padding: 6px;
}
table.DDGridView .td a, table.DDListView .td a
{
    color: #718ABE;
    text-decoration: none;
    margin-right: 6px;
}
table.DDGridView .DDSelected a, table.DDListView .DDSelected a
{
    color: #718ABE;
    text-decoration: none;
    margin-right: 6px;
}
table.DDGridView .DDSelected a:hover, table.DDListView .DDSelected a:hover
{
    color: #000099;
    text-decoration: underline;
}
table.DDGridView .td a:hover, table.DDListView .td a:hover
{
    color: #000099;
    text-decoration: underline;
}
/* DataPager */
div.DDPager
{
    padding: 0px 6px;
}
/* Bottom hyperlink design*/
div.DDBottomHyperLink
{
    font: .75em Tahoma, Arial, Sans-Serif;
}
div.DDBottomHyperLink a
{
    color: #839ce7;
    text-decoration: none;
}
div.DDBottomHyperLink a:hover
{
    color: #000099;
    text-decoration: underline !important;
}
div.DDBottomHyperLink img
{
    padding-right: 5px;
    border: none;
}
Our tutors at programming homework help provide assistance to the learners so that they understand the concepts of coding in various languages of .net framework like C#, Visual Basic.Net, Jscript, J# in asp.net homework help.
NoteDA.cs
using MySql.Data.MySqlClient;
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Text;
namespace mynotesasp
{
    public class Note
    {
        public int Id { get; set; }
        public string Title { get; set; }
        public string Body { get; set; }
        public DateTime Created { get; set; }
        public DateTime Modified { get; set; }
        public List Tags { get; set; }
    }
    public static class NoteDA
    {
        public static List GetAll()
        {
            List res = new List();
            Dictionary allTags = TagDA.GetAll().ToDictionary(t => t.Id);
            using (MySqlConnection connection = new MySqlConnection(ConfigurationManager.ConnectionStrings["MySQLConnStr"].ConnectionString))
            {
                connection.Open();
                using (MySqlCommand command = new MySqlCommand("SELECT * FROM notes", connection))
                {
                    using (MySqlDataReader dr = command.ExecuteReader())
                    {
                        while (dr.Read())
                        {
                            res.Add(new Note
                            {
                                Id = dr.GetInt32("id"),
                                Tags = GetTags(dr.GetInt32("id"), allTags),
                                Title = dr.GetString("title"),
                                Body = dr.GetString("body"),
                                Created = dr.GetDateTime("created"),
                                Modified = dr.GetDateTime("modified")
                            });
                        }
                        dr.Close();
                    }
                }
                connection.Close();
            }
            return res;
        }
        private static List GetTags(int noteId, Dictionary allTags)
        {
            List res = new List();
            using (MySqlConnection connection = new MySqlConnection(ConfigurationManager.ConnectionStrings["MySQLConnStr"].ConnectionString))
            {
                connection.Open();
                using (MySqlCommand command = new MySqlCommand("SELECT tagid FROM notetags WHERE noteId = " + noteId, connection))
                {
                    using (MySqlDataReader dr = command.ExecuteReader())
                    {
                        while (dr.Read())
                        {
                            res.Add(allTags[dr.GetInt32("tagid")]);
                        }
                        dr.Close();
                    }
                }
                connection.Close();
            }
            return res;
        }
        public static void Add(Note note)
        {
            using (MySqlConnection connection = new MySqlConnection(ConfigurationManager.ConnectionStrings["MySQLConnStr"].ConnectionString))
            {
                connection.Open();
                using (MySqlCommand command = new MySqlCommand("INSERT INTO notes(title, body) VALUES ('" + note.Title + "', '" + note.Body + "')", connection))
                {
                    command.ExecuteNonQuery();
                }
                using (MySqlCommand command = new MySqlCommand("SELECT last_insert_id()", connection))
                {
                    note.Id = Int32.Parse(command.ExecuteScalar().ToString());
                }
                AddTags(connection, note);
                connection.Close();
            }
        }
        public static void Edit(Note note)
        {
            using (MySqlConnection connection = new MySqlConnection(ConfigurationManager.ConnectionStrings["MySQLConnStr"].ConnectionString))
            {
                connection.Open();
                using (MySqlCommand command = new MySqlCommand("UPDATE notes SET title = '" + note.Title + "', body = '" + note.Body + "' WHERE id = " + note.Id, connection))
                {
                    command.ExecuteNonQuery();
                }
                DeleteAllTags(connection, note);
                AddTags(connection, note);
                connection.Close();
            }
        }
        public static void Delete(Note note)
        {
            using (MySqlConnection connection = new MySqlConnection(ConfigurationManager.ConnectionStrings["MySQLConnStr"].ConnectionString))
            {
                connection.Open();
                DeleteAllTags(connection, note);
                using (MySqlCommand command = new MySqlCommand("DELETE FROM notes WHERE id = " + note.Id, connection))
                {
                    command.ExecuteNonQuery();
                }
                connection.Close();
            }
        }
        private static void AddTags(MySqlConnection connection, Note note)
        {
            foreach (Tag tag in note.Tags)
            {
                using (MySqlCommand command = new MySqlCommand("INSERT INTO notetags(noteId, tagId) VALUES(" + note.Id + "," + tag.Id + ")", connection))
                {
                    command.ExecuteNonQuery();
                }
            }
        }
        private static void DeleteAllTags(MySqlConnection connection, Note note)
        {
            using (MySqlCommand command = new MySqlCommand("DELETE FROM notetags WHERE noteId = " + note.Id, connection))
            {
                command.ExecuteNonQuery();
            }
        }
    }
}
As a demonstration of an Asp project, this demonstrates the type of solution we can offer.
Students seek help with asp.net homework for solving questions related to exceptions, event handlings, delegates, etc. Our experts offer asp.net assignment help to the students by providing several assignment questions with proper solutions. Students also seek our help with asp.net assignments just because of our excellent service and accurate solutions.

Problem

You will create an application that collects data about the popularity of different types of
biscuits. The application must work in a Windows environment.
The application will contain a form that collects three pieces of information: the name of the
user, the type of biscuit, and a score marked out of 100. The biscuit types that scores can
be submitted for are: Digestive, Chocolate Digestive, Rich Tea, Ginger Nuts and Custard
Creams.
The application will permanently store this information. The application will also display a report for the
collected information. The report will give summaries for each biscuit type including the maximum, minimum, and average score and the total number of scores submitted. The report will also display all submitted scores
ranked by the score, highest first.
You will need to write the code to save the form data to the data store and fetch the data
for the report and display the report to the user. You should feel free to use development bases that you feel
are appropriate such as javascript, jquery or CSS baselines.

Solution

Biscuitscript.sql
USE [dbBiscuit]
GO
/****** Object: Table [dbo].[BiscuitType] Script Date: 09/17/2014 01:21:34 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [dbo].[BiscuitType](
    [Id] [int] IDENTITY(1,1) NOT NULL,
    [Type] [varchar](50) NOT NULL,
 CONSTRAINT [PK_BiscuitType] PRIMARY KEY CLUSTERED
(
    [Id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
/****** Object: Table [dbo].[BiscuitData] Script Date: 09/17/2014 01:21:34 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [dbo].[BiscuitData](
    [Id] [int] IDENTITY(1,1) NOT NULL,
    [UserName] [varchar](100) NOT NULL,
    [BiscuitType] [int] NOT NULL,
    [Score] [int] NOT NULL,
 CONSTRAINT [PK_BiscuitData] PRIMARY KEY CLUSTERED
(
    [Id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
/****** Object: StoredProcedure [dbo].[sp_GetReportData] Script Date: 09/17/2014 01:21:37 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE PROCEDURE [dbo].[sp_GetReportData]
AS
BEGIN
    SELECT bt.Type AS BiscuitType,AVG(bd.score) AS AverageScore, MAX(bd.score)AS MaxScore,
MIN(bd.score)AS Minscore, SUM(bd.score) AS Total
FROM dbo.BiscuitData AS bd INNER JOIN dbo.BiscuitType AS bt
ON bd.BiscuitType= bt.Id
GROUP BY bt.Type ORDER BY MAX(bd.score) Desc
END
GO
/****** Object: ForeignKey [FK_BiscuitData_BiscuitType] Script Date: 09/17/2014 01:21:34 ******/
ALTER TABLE [dbo].[BiscuitData] WITH CHECK ADD CONSTRAINT [FK_BiscuitData_BiscuitType] FOREIGN KEY([BiscuitType])
REFERENCES [dbo].[BiscuitType] ([Id])
GO
ALTER TABLE [dbo].[BiscuitData] CHECK CONSTRAINT [FK_BiscuitData_BiscuitType]
GO
Report.aspx
<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="Report.aspx.cs" Inherits="BiscuitApp.Site.Report" %>
   
       

            Report

       
       
       

            The report will give summaries for each biscuit type including the maximum, minimum
            and average score and the total number of scores submitted
       

   
   
       
       
           
               
                   
                       
                       
                       
                       
                       
                   
           
           
               
                   
                   
                   
                   
                   
               
           
           
               
                            Biscuit Type
                       
                            Maximum Score
                       
                            Minimum Score
                       
                            Average Score
                       
                            Total Score
                       
                        <%#Eval("BiscuitType")%>
                   
                        <%#Eval("MaxScore")%>
                   
                        <%#Eval("Minscore")%>
                   
                        <%#Eval("AverageScore")%>
                   
                        <%#Eval("Total")%>
                   
           
       
       
   
Report.aspx.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using BiscuitApp.Data;
namespace BiscuitApp.Site
{
    public partial class Report : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                BindGrid();
            }
        }
        ///
        /// Method for bind the report grid
        ///
        void BindGrid()
        {
            List _reportData = Repository.GetReportData();
            rptReport.DataSource = _reportData;
            rptReport.DataBind();
        }
    }
}
Register.aspx
<%@ Page Title="Register" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
    CodeBehind="Register.aspx.cs" Inherits="BiscuitApp.Account.Register" %>
   
       
           
           
       
       
           
               
                   

                        Create a New Account                    

                   

                        Use the form below to create a new account.
                   

                   

                        Passwords are required to be a minimum of <%= Membership.MinRequiredPasswordLength %> characters in length.
                   

                   
                       
                   
                   
                         ValidationGroup="RegisterUserValidationGroup"/>
                   
                       
                            Account Information
                           

                                User Name:
                               
                               
                                     CssClass="failureNotification" ErrorMessage="User Name is required." ToolTip="User Name is required."
                                     ValidationGroup="RegisterUserValidationGroup">*
                           

                           

                                E-mail:
                               
                               
                                     CssClass="failureNotification" ErrorMessage="E-mail is required." ToolTip="E-mail is required."
                                     ValidationGroup="RegisterUserValidationGroup">*
                           

                           

                                Password:
                               
                               
                                     CssClass="failureNotification" ErrorMessage="Password is required." ToolTip="Password is required."
                                     ValidationGroup="RegisterUserValidationGroup">*
                           

                           

                                Confirm Password:
                               
                               
                                     ErrorMessage="Confirm Password is required." ID="ConfirmPasswordRequired" runat="server"
                                     ToolTip="Confirm Password is required." ValidationGroup="RegisterUserValidationGroup">*
                               
                                     CssClass="failureNotification" Display="Dynamic" ErrorMessage="The Password and Confirmation Password must match."
                                     ValidationGroup="RegisterUserValidationGroup">*
                           

                       
                       

                           
                                 ValidationGroup="RegisterUserValidationGroup"/>
                       

                   
               
               
               
           
       
   
Register.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;
namespace BiscuitApp.Account
{
    public partial class Register : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            RegisterUser.ContinueDestinationPageUrl = Request.QueryString["ReturnUrl"];
        }
        protected void RegisterUser_CreatedUser(object sender, EventArgs e)
        {
            FormsAuthentication.SetAuthCookie(RegisterUser.UserName, false /* createPersistentCookie */);
            string continueUrl = RegisterUser.ContinueDestinationPageUrl;
            if (String.IsNullOrEmpty(continueUrl))
            {
                continueUrl = "~/";
            }
            Response.Redirect(continueUrl);
        }
    }
}
ChangePassword.aspx
<%@ Page Title="Change Password" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
    CodeBehind="ChangePassword.aspx.cs" Inherits="BiscuitApp.Account.ChangePassword" %>
   

        Change Password    

   

        Use the form below to change your password.
   

   

        New passwords are required to be a minimum of <%= Membership.MinRequiredPasswordLength %> characters in length.
   

   
         SuccessPageUrl="ChangePasswordSuccess.aspx">
       
           
               
           
           
                 ValidationGroup="ChangeUserPasswordValidationGroup"/>
           
               
                    Account Information
                   

                        Old Password:
                       
                       
                             CssClass="failureNotification" ErrorMessage="Password is required." ToolTip="Old Password is required."
                             ValidationGroup="ChangeUserPasswordValidationGroup">*
                   

                   

                        New Password:
                       
                       
                             CssClass="failureNotification" ErrorMessage="New Password is required." ToolTip="New Password is required."
                             ValidationGroup="ChangeUserPasswordValidationGroup">*
                   

                   

                        Confirm New Password:
                       
                       
                             CssClass="failureNotification" Display="Dynamic" ErrorMessage="Confirm New Password is required."
                             ToolTip="Confirm New Password is required." ValidationGroup="ChangeUserPasswordValidationGroup">*
                       
                             CssClass="failureNotification" Display="Dynamic" ErrorMessage="The Confirm New Password must match the New Password entry."
                             ValidationGroup="ChangeUserPasswordValidationGroup">*
                   

               
               

                   
                   
                         ValidationGroup="ChangeUserPasswordValidationGroup"/>
               

           
       
   
ASP assignment help is a jewel in the crown of our offerings. The experts that provide ASP homework help are excellent programmers hence they are fully capable of providing high quality code. Students seeking ASP project help can approach us for quick assistance.