1 Project 5 Eyeglass Rx User Control. Eyeglass Rx Earlier in the semester we looked at an eyeglass prescription as an example of an HTML table. 2.

Slides:



Advertisements
Similar presentations
The Librarian Web Page Carol Wolf CS396X. Create new controller  To create a new controller that can manage more than just books, type ruby script/generate.
Advertisements

CTEC2902 Advanced Programming in Visual Studio (ASP. NET + C#
1 Project 6: Tic Tac Toe. 2 Tic Tac Toe A Challange Project 10 Points extra credit on final grade OK to work in groups of 2 or 3.
11 User Controls II Chapter Objectives You will be able to Create a realistic reusable user control. Use data binding in a user control. Change.
Macros Tutorial Week 20. Objectives By the end of this tutorial you should understand how to: Create macros Assign macros to events Associate macros with.
ASP.NET Programming with C# and SQL Server First Edition Chapter 8 Manipulating SQL Server Databases with ASP.NET.
Computer Science 101 Web Access to Databases Overview of Web Access to Databases.
Figure 1. Hit analysis in 2002 of database-driven web applications Hits by Category in 2002 N = 73,873 Results Reporting 27% GME 26% Research 20% Bed Availability.
MBAC 611.  We have been using MS Access to query and modify our databases.  MS Access provides a GUI (Graphical User Interface) that hides much of the.
1 Project 6: Cats in Tree. 2 Project 3: Cats in Tree In this project you will Create a class definition for a Cat class. Populate a BST with Cat information.
1 Project 7: Huffman Code. 2 Extend the most recent version of the Huffman Code program to include decode information in the binary output file and use.
MS FrontPage 2: Developing a web site for the Sunny Morning Products Yong Choi CSU Bakersfield.
1 Working with MS SQL Server. 2 Objectives You will be able to Use Visual Studio for GUI based interactive access to a Microsoft SQL Server database.
Copyright © Texas Education Agency, All rights reserved. 1 Web Technologies Website Development with Dreamweaver.
Session 5: Working with MySQL iNET Academy Open Source Web Development.
1 Project 7: My Photo Album Graded Project. 2 Assignment Write a web app to permit users to upload and view photos. User can keep up to five photos on.
SqlReports Dean Dahlvang PSUG-MO March About Dean Dean Dahlvang Director of Administrative Technology for the Proctor.
Web Technologies Website Development Trade & Industrial Education
1 Project 4: XML Product Browser (Not Graded). Objectives This project is an exercise of the following knowledge and skills: Accessing and displaying.
Web Programming: Client/Server Applications Server sends the web pages to the client. –built into Visual Studio for development purposes Client displays.
Website Development with Dreamweaver
9 Chapter Nine Compiled Web Server Programs. 9 Chapter Objectives Learn about Common Gateway Interface (CGI) Create CGI programs that generate dynamic.
1 Data Bound Controls II Chapter Objectives You will be able to Use a Data Source control to get data from a SQL database and make it available.
1 Working with MS SQL Server Textbook Chapter 14.
© FPT SOFTWARE – TRAINING MATERIAL – Internal use 04e-BM/NS/HDCV/FSOFT v2/3 Working with MSSQL Server Code:G0-C# Version: 1.0 Author: Pham Trung Hai CTD.
15/10/20151 PHP & MySQL 'Slide materials are based on W3Schools PHP tutorial, 'PHP website 'MySQL website.
1 Project 4: Vehicle Inventory. 2 Write a program to read a text file containing information about vehicles and output the information First in the order.
Relational Databases (MS Access)
11 Using ADO.NET II Textbook Chapter Getting Started Last class we started a simple example of using ADO.NET operations to access the Addresses.
CSCI 6962: Server-side Design and Programming Database Manipulation in ASP.
1 Project 3: Chomp (Not graded). 2 Project 3 The game of Chomp was described in a Math Trek column in Science News:
1 Project 5: New Venue. 2 New Venue Based on the posted New Venue scenario 077_Ticket_Booth_Scenarios.pdf.
1 Project 7: Northwind Traders Order Entry. 2 Northwind Order Entry Extend the Select Customer program from Project 6 to permit the user to enter orders.
Use CSS to Implement a Reusable Design Selecting a Dreamweaver CSS Starter Layout is the easiest way to create a page with a CSS layout You can access.
Apperson (model 1200)  Instant student performance data  Quickly determine objectives requiring remediation  PM Session data as simple as cut/paste.
11 Project 2 Towers of Hanoi. 22 Towers of Hanoi is a well known puzzle that can be very difficult to solve manually but can be programmed very easily.
1 Project 5: Printing Address Labels. 2 Assignment Write a Windows forms program to display and print a set of address labels. Input from a csv file.
Microsoft FrontPage 2003 Illustrated Complete Integrating a Database with a Web Site.
1 Project 3 The Kumquat Society Conference. 2 Conference Registration In this project you will write a program to handle a conference registration. The.
Project 3: Ticket Printer
® IBM Software Group © 2006 IBM Corporation JSF Rich Text Area Component This Learning Module describes the use of the JSF Rich Text Area component – for.
1 Project 2: Using Variables and Expressions. 222 Project 2 Overview For this project you will work with three programs Circle Paint Ideal_Weight What.
Positioning Objects with CSS and Tables
1 Project 3 String Methods. Project 3: String Methods Write a program to do the following string manipulations: Prompt the user to enter a phrase and.
1 Project 1: Tickets. 2 Class Ticket Write a definition for class Ticket. A Ticket object corresponds to a physical ticket for a stage show. Attributes.
1 Project 2: Sorting Cats. Write a C++ console application to read a text file containing information about cats and output the information to the screen.
1 Project 4 Address Lookup. Project 4 Write an ASP.NET app that permits users to retrieve addresses from a potentially large list of addresses. There.
1 Project 3: Farey Sequences. 2 Farey Sequences Further details about Farey sequences, and more examples, can be found in the Wikipedia article:
1 Low Level ADO.NET Operations II Microsoft Visual C# 2008 Step by Step Chapter 25.
11 User Controls Beginning ASP.NET in C# and VB Chapter 8.
11 Project 2 Temperature Conversion. 22 Project 2: Temperature Conversion Write an ASP.NET Web Forms app to convert temperatures from Fahrenheit to Celsius.
1 Working with MS SQL Server Beginning ASP.NET in C# and VB Chapter 12.
1 Project 5: Leap Years. 222 Leap Years Write a program that reads an integer value from the user representing a year and determines if the year is a.
1 Project 4: Computing Distance. 222 Computing Distance Write a program to compute the distance between two points. Recall that the distance between the.
1 Project 4: Palindrome Detector. 2 Assignment Write a C++ program that reads a line of text from the keyboard and reports to the user whether the text.
1 Project 4: Venue Sort. 2 This project is an exercise in Using C++ strings. Operator overloading. Text File Input.
1 Project 15: Animals Using Derived Classes and Inheritance.
111 State Management Beginning ASP.NET in C# and VB Chapter 4 Pages
1 Project 6: New Venue. 2 New Venue Based on the posted New Venue scenario
1 Project 8: Tic Tac Toe. 2 Assignment Write an HTML and JavaScript page that pemits users to play Tic Tac Toe. Both players use a single browser. Alternating.
1 Project 7: Ticket_Booth_0 Using XML. 2 Ticket Booth 0 Base Level 0 of the real Ticket Booth program. Gets information for a single venue from an XML.
1 Project 12: Cars from File. This is an extension of Project 11, Car Class You may use the posted solution for Project 11 as a starting point for this.
1 Project 6: Northwind Orders. 2 The Northwind Traders Database The Northwind Traders database was created by Microsoft for training and demonstration.
ASP.NET Programming with C# and SQL Server First Edition
Required Data Files Review
Unit 8.2 How data can be used Accessing Data in Views
Jerrell Jackson
Introduction to web design discussing which languages is used for website designing
Building ASP.NET Applications 2
Step 1:. Open Microsoft FrontPage application.
Presentation transcript:

1 Project 5 Eyeglass Rx User Control

Eyeglass Rx Earlier in the semester we looked at an eyeglass prescription as an example of an HTML table. 2

Project 5 In this project we will create an ASPX user control to display eyeglass prescriptions in the same format. The user control is to be a reusable component. Content for the user control will be provided from the enclosing page. 3

Assignment Write an ASP.NET app to display Eyeglass Prescriptions from a local database table. Let the display be done by a user control suitable for reuse in other pages and apps. User selects the Rx to view. App displays the selected Rx in the user control. 4

Requirements Create a table named Rx in your local database. Details later in this presentation. Populate the table with data from a csv file from the class web site. Described on following slides. 5

The Data File Download file Rx.csv from the class web site: Downloads/095_Eyeglass_Rx/ 6 The first row contains column names. You will need to delete this row before using the file to populate your database table.

Rx.csv 7

The Database Table Create a database table called Rx in your local database. Use column headings from the csv file as column names for the database table. See table definition on the following slide. You can use the SQL command on the next slide to create the table. Populate the table with information from Rx.csv Delete the column headings before using the csv file to populate the database table. 8

Table Rx 9

Table Creation Command CREATE TABLE [dbo].[Rx] ( [RxID] INT NOT NULL, [RSphere] DECIMAL (6, 2) NOT NULL, [RCylinder] DECIMAL (6, 2) NOT NULL, [RAxis] INT NOT NULL, [RPrism] DECIMAL (6, 2) NOT NULL, [RBase] INT NOT NULL, [RAdd] DECIMAL (6, 2) NOT NULL, [RSeg] INT NOT NULL, [RPD] DECIMAL (6, 2) NOT NULL, [RNPD] DECIMAL (6, 2) NOT NULL, [LSphere] DECIMAL (6, 2) NOT NULL, [LCylinder] DECIMAL (6, 2) NOT NULL, [LAxis] INT NOT NULL, [LPrism] DECIMAL (6, 2) NOT NULL, [LBase] INT NOT NULL, [LAdd] DECIMAL (6, 2) NOT NULL, [LSeg] INT NOT NULL, [LPD] DECIMAL (6, 2) NOT NULL, [LNPD] DECIMAL (6, 2) NOT NULL, PRIMARY KEY CLUSTERED ([RxID] ASC) ); 10

Specifications Define a class, Rx, to hold Eyeglass Rx information. Use the.NET decimal type for all member variables that can have fractional parts decimal(6,2) in the table definition An object of this class will hold one eyeglass presecription. Constructor takes a SqlDataReader as parameter. Initializes the Rx object with the current result in the SqlDataReader Use Rx objects wherever you need Rx information. 11

Example of Use 12 User selects Rx ID 8. Initial screen

Example of Use 13

Example of Use 14 App displays Rx 8

Specifications Your app should look similar to the example and should behave identically. Note cell padding. Use New Web Site (not New Project) to create your app in Visual Studio. 10 point penalty for failing to follow this specification. 15

Specifications Use the.NET generic List class to hold a collection of Rx objects List Save the list as an Application State variable. Get Rx data from the database only if you have to because the Application variable does not exist. Normally only on initial page load by the first user of the application. 16

User Control Specifications The eyeglass Rx should be displayed in a user control. The user control should use an ASP Table control to display the Rx information. Contents are conveniently settable by C# code. Will be rendered as an HTML table. The user control should have a public property of type Rx. Setting the property causes the user control to display that Rx. 17

Additional Specifications Define a class to do the database query. This class should encapsulate all knowledge of how to do the query. The Rx class encapsulates knowledge of how to interpret the query result. 18

Implementation Tips Review the slides and examples from class presentations. It is OK to copy and modify code from class presentations and the Downloads area of the class web site. Look up documentation on the ASPX Table class. The markup in your.aspx file is different from HTML markup. Contents settable by page code. Renders as HTML 19

20 Submission Submit your web site files via Canvas Assignments. Zip your web site folder using the Windows “Send to Compressed Folder” command. Submit the.zip file.

21 Ground Rules You may work with one or two other students. OK to work alone if you prefer. If you do collaborate All group members are expected to contribute. Only one group member should submit the website files in Canvas. Include a comment with the names of all group members. Other group members submit just a comment with the names of all group members.

22 Ground Rules Do not share your work with other students (outside your group.) Before or after submitting the project. OK to discuss the project. Do not copy any other student’s code. Or even look at it. Do not let anyone copy or examine your code.

23 Ground Rules Except for code posted on the class web site Do not copy code from the Internet or any other source. Write your own code.

24 Due Date Project is due by 11:59 PM, Wednesday, March 9. Projects submitted after the deadline will be subject to a penalty of 10 points per hour. End of Presentation