CSCI 4230 Homework #3 Group Three Samer Al Jefri * Kevin Odom * David Hood * JD * Phil.

Slides:



Advertisements
Similar presentations
MARKETPLACE TRANSITION FROM CLASSIC INTERFACE TO PHOENIX INTERFACE.
Advertisements

Back Office Tutorial Basic Navigation New Consultant Sign Up Shopping.
Welcome to WebCRD.
Login to eShip Global eShip Global is an online shipping service providing access to contracted shipping carriers for outbound letters and packages. For.
Tutorial 6 Creating a Web Form
Library Online Catalog Tutorial Pentagon Library Last Updated March 2008.
JavaScript Forms Form Validation Cookies. What JavaScript can do  Control document appearance and content  Control the browser  Interact with user.
1 1 User Manual for Approver Approving Orders on the SKF Giftzone.
Assignment 5 COMP 6620 André Murphy. Conceptual Model This interface is designed to allow Auburn University students and employees to order pizzas through.
JavaScript Forms Form Validation Cookies CGI Programs.
XP Tutorial 9 New Perspectives on JavaScript, Comprehensive1 Working with Cookies Managing Data in a Web Site Using JavaScript Cookies.
Chapter 3: Develop A Multi-Page Web Application Liu, Jie Professor Department of Computer Science Western Oregon University.
New Features in Release 5.3 (October 2, 2006). 2 Release 5.3 New Features New “Attention To” Field Redesigned Shopping Cart, Requisition and PO Navigation.
Blackbaud Web Purchasing Training Session 1. Agenda What is Blackbaud Web Purchasing? How to login to Blackbaud Web Purchasing Create a purchase requisition.
“It’s My Information” My Biz (My Business) - Presented by Jean Coulter.
CST JavaScript Validating Form Data with JavaScript.
Tutorial: Introduction to ASP.NET Internet Technologies and Web Application 4 th February 2010.
CSCI 6962: Server-side Design and Programming Course Introduction and Overview.
WEB FORM DESIGN. Creating forms for a web page For your web project you have to design a form for inclusion on your web site (the form information should.
CHAPTER 12 COOKIES AND SESSIONS. INTRO HTTP is a stateless technology Each page rendered by a browser is unrelated to other pages – even if they are from.
Module 7: Validating User Input.
Telerik Software Academy ASP.NET Web Forms Data Validation, Data Validators, Validation Groups Telerik Software Academy
VA Advantage!
Overview of Previous Lesson(s) Over View  ASP.NET Pages  Modular in nature and divided into the core sections  Page directives  Code Section  Page.
Blackbaud Web Purchasing Training Session 1. Agenda What is Blackbaud Web Purchasing? How to login to Blackbaud Web Purchasing Create a purchase requisition.
Robinson_CIS_285_2005 HTML FORMS CIS 285 Winter_2005 Instructor: Mary Robinson.
Creating Custom Controls with User Controls. Including Standard Content with User Controls Global Super Company Global Super Company We mean business!
CSCI 6962: Server-side Design and Programming Introduction to Java Server Faces.
Lead Management Tool Partner User Guide March 15, 2013
1 1 User Manual Purchase and Order Tracking on the SKF Giftzone.
MARKETING PORTAL PRESENTED TO YOU BY CABLES TO GO.
R.A.P.S Dan Hudlow Kyle Lee Mike Fisher Brad Justice Team no. 3.
Chapter 8 Cookies And Security JavaScript, Third Edition.
ASP.NET Event Handlers Database -> Browser ->Shopping Basket Validators.
JavaScript, Fourth Edition Chapter 5 Validating Form Data with JavaScript.
Accessing E-DRIVER File for the first time Critical Steps to Assuring Success O nline S afety & C ompliance E lectronic R eporting System.
Global.asax file. Agenda What is Global.asax file How to add the Global.asax file What are the default events available Explanation to Application_Level.
Chapter 9 Session Tracking. Session Tracking Basics Accessing the session object associated with the current request: Call request.getSession to get an.
Dynamic Dropdown Lists 1. Objectives You will be able to Use Dropdown Lists to solicit multiple choice user input in an ASPX web page. Populate a Dropdown.
Session and Cookie Management in.Net Sandeep Kiran Shiva UIN:
Confidential Web Ordering Overview. Confidential LOG ON:   Enter your login name &
Building Applications using ASP.NET and C# / Session 4 / 1 of 15 Session 4.
Session 6: Validating User Input. Outline Overview of User Input Validation Client-Side and Server-Side Validation ASP.NET Validation Controls Using Validation.
© FPT SOFTWARE – TRAINING MATERIAL – Internal use 04e-BM/NS/HDCV/FSOFT v2/3 User Input Validating.
Online Submission and Management Information -- Authors AMS Annual Conference / AMS WMC Click on play to begin show.
8 Chapter Eight Server-side Scripts. 8 Chapter Objectives Create dynamic Web pages that retrieve and display database data using Active Server Pages Process.
WEB FORM DESIGN. Creating forms for a web page For your web project you have to design a form for inclusion on your web site (the form information should.
CSCI 4230 Homework #3 Group Three Samer Al Jefri * Kevin Odom * David Hood * JD Wells * Philippe Gambling.
CSCI 6962: Server-side Design and Programming Shopping Carts and Databases.
Navigation: If the tutorial opens up in your web browser, simply click your mouse to advance to the next slide. Use the “Backspace”
Complete Ordering System for Promotional Literature and Samples Quick Reference and Training Guide.
Tutorial 6 Creating a Web Form
ASP.NET Part 2 Instructor: Charles Moen CSCI/CINF 4230.
Online Submission and Management Information -- Authors
Training Demo: DuPont Vendor Clients December 2016
Computing with C# and the .NET Framework
Coldpruf Online Order Form
Session Variables and Post Back
Sessions Many interactive Web sites spread user data entry out over several pages: Ex: add items to cart, enter shipping information, enter billing information.
Training Demo: Mary Kay Vendor Clients
Checkout and Electronic Payment Processing
Transition from Classic Interface Phoenix Interface to
How to Create and Start a Test Session
CS 3870 Prog5 Shopping Bag.
Sessions Many interactive Web sites spread user data entry out over several pages: Ex: add items to cart, enter shipping information, enter billing information.
Today’s Objectives Week 12 Announcements ASP.NET
Kudler Fine Foods Frequent Shopper Program
Welcome to WebCRD.
Coldpruf Online Order Form
Presentation transcript:

CSCI 4230 Homework #3 Group Three Samer Al Jefri * Kevin Odom * David Hood * JD * Phil

SITE WALKTHROUGH Section One:

USER INTERFACE DESIGN Section Two:

Phase II Design Elements (#1) Home Page (#2) Phase III Navigation (#2)

SITE REQUIREMENTS & IMPLEMENTATION OF CODE Section Three:

Sign-in Page Sign-in Components Use Valid Address Store Info In Session Initiate Shopping Session Return To Previous Page

Input Field Validation Controls <asp:RegularExpressionValidator ID="loginRegExValidator" runat="server" ControlToValidate="txtUserName" ErrorMessage="Please, enter a valid address." /> Submission Button

protected void cmdLogin_Click(object sender, EventArgs e) { //Clear session for new user Session.Clear(); //Save the user id to the Session Session["userID"] = txtUserName.Text; // Goto default page unless a different path is requested string path = "Default.aspx"; if (Request.Params["returnTo"] != null) { path = Request.Params["returnTo"]; } Response.Redirect(path); }

Shipping Page Shipping Components Remove Leading & Trailing Whitespace Reject Invalid Characters From Input Ensure Input Length is Reasonable Use Server-side Code For Field Validation

Input Field Validation Controls <asp:RequiredFieldValidator ID="nameRequiredFieldValidator" runat="server" ErrorMessage="Required“ ControlToValidate="txtName“ Display="Dynamic"/> <asp:RegularExpressionValidator ID="nameRegExValidator" runat="server" ErrorMessage="Please only enter letters, numbers, spaces, or periods." ControlToValidate="txtName“ ValidationExpression="\s*[a-zA-Z\s\.]+\s*" Display="Dynamic" /> <asp:RegularExpressionValidator ID="nameRegExFirstLast" runat="server" Display="Dynamic" ErrorMessage="Please enter a first and last name, no middle names" ControlToValidate="txtName“ ValidationExpression="\s*[A-Za-z]+\s+[A-Za-z]+\s*" />

<asp:RegularExpressionValidator ID="street1RegExValidator" runat="server" ErrorMessage="Please enter a street number and name“ ControlToValidate="txtStreet1“ ValidationExpression="^\d+\s+[A-Za-z\s\.]+“ Display="Dynamic" /> <asp:RequiredFieldValidator ID="zipRequiredFieldValidator" runat="server“ ErrorMessage="Required“ ControlToValidate="txtZip“ Display="Dynamic" /> <asp:RegularExpressionValidator ID="zipRegExValidator" runat="server" ErrorMessage="Please enter in the form of #####.“ ControlToValidate="txtZip“ ValidationExpression="^\d{5}\s*$“ Display="Dynamic" />

protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { Page.Form.DefaultFocus = txtName.ClientID; Page.Form.DefaultButton = cmdShipFormSubmit.UniqueID; // Populate fields with existing shipping info if (Session["ShippingData"] != null) { ShippingData shipping = (ShippingData)Session["ShippingData"]; txtName.Text = shipping.FullName; txtStreet1.Text = shipping.Street1; txtStreet2.Text = shipping.Street2; txtCity.Text = shipping.City; ddState.SelectedValue = shipping.State; txtZip.Text = shipping.Zip; }}}

protected void cmdShipFormSubmit_Click(object sender, EventArgs e) { //check for valid page if (!Page.IsValid) { return; } ShippingData shipping = new ShippingData(); shipping.FullName = txtName.Text.ToString(); shipping.Street1 = txtStreet1.Text.ToString(); shipping.Street2 = txtStreet2.Text.ToString(); shipping.City = txtCity.Text.ToString(); shipping.State = ddState.SelectedValue.ToString(); shipping.Zip = txtZip.Text.ToString(); Session["ShippingData"] = shipping; Response.Redirect("Checkout.aspx"); }

Invalid Submission

Phase III DATABASE ACCESS & SESSION TRACKING SLIDES HERE (1, 3, 4, and 5 – David) (6, 7, and 8 – Samer)

David Hood Default Page * Sign-in Page * Shopping Cart * CartData class

The CartData Class Static Methods –getCartFromSession() –saveCartToSession() Public Methods –addItem() –removeItem() –reset() –setQuantity() –getTotal() –exists() –getCartTable()

Default Page User Not Logged In User Logged in

Default Page Login Restriction Returns Boolean value indicating if user is logged in.

Default Page Adding an item to the cart

The Shopping Cart

Cart GridView control binding

COLLABORATION & DEVELOPMENT TOOLS Section Four:

Team Web Site, Yahoo Groups, and Google Code slides here