CSCI 6962: Server-side Desig n and Programming ASP Server Controls.

Slides:



Advertisements
Similar presentations
The Web Wizards Guide To JavaScript Chapter 3 Working with Forms.
Advertisements

Teacher Functions. Teacher Functions in OAS Create Tests Assign Tests to a Class View Reports of Student Performance.
Microsoft Expression Web-Illustrated Unit J: Creating Forms.
CSCI 6962: Server-side Design and Programming Input Validation and Error Handling.
Web Development Using ASP.NET CA – 240 Kashif Jalal Welcome to week – 3-1 of…
Group Boxes and Panels Arrange components on a GUI Buttons and etc. can be placed inside a group box or panel. All these buttons move together when the.
Python and Web Programming
ASP.NET Programming with C# and SQL Server First Edition
Forms, Validation Week 7 INFM 603. Announcements Try placing today’s example in htdocs (XAMPP). This will allow you to execute examples that rely on PHP.
CST JavaScript Validating Form Data with JavaScript.
Tutorial: Introduction to ASP.NET Internet Technologies and Web Application 4 th February 2010.
4-Sep-15 HTML Forms Mrs. Goins Web Design Class. Parts of a Web Form A Form is an area that can contain Form Control/Elements. Each piece of information.
1 CS 3870/CS 5870 Static and Dynamic Web Pages ASP.NET and IIS.
Lecture 6 – Form processing (Part 1) SFDV3011 – Advanced Web Development 1.
Database-Driven Web Sites, Second Edition1 Chapter 8 Processing ASP.NET Web Forms and Working With Server Controls.
1 CS 3870/CS 5870 Static and Dynamic Web Pages ASP.NET and IIS.
Chapter 5 Java Script And Forms JavaScript, Third Edition.
Chapter 6: Forms JavaScript - Introductory. Previewing the Product Registration Form.
XHTML Introductory1 Forms Chapter 7. XHTML Introductory2 Objectives In this chapter, you will: Study elements Learn about input fields Use the element.
Ch 11: Userforms CP212 Winter Topics Designing User Forms o Controls Setting Properties o Tab Order o Testing Writing Event Handlers o Userform_Initialize.
CSCI 6962: Server-side Design and Programming Support Classes and Shopping Carts.
Web Development Using ASP.NET CA – 240 Kashif Jalal Welcome to week – 4-1 of…
ASP.NET Web Server Controls Basic Web Server Controls.
CSCI 6962: Server-side Design and Programming Introduction to Java Server Faces.
ASP.NET Controls. Slide 2 Lecture Overview Identify the types of controls supported by ASP.NET and the differences between them.
CSCI 6962: Server-side Design and Programming Java Server Faces Components and Tags.
Section 17.1 Add an audio file using HTML Create a form using HTML Add text boxes using HTML Add radio buttons and check boxes using HTML Add a pull-down.
08/10/ Iteration Loops For … To … Next. 208/10/2015 Learning Objectives Define a program loop. State when a loop will end. State when the For.
Chapter 8: Writing Graphical User Interfaces Visual Basic.NET Programming: From Problem Analysis to Program Design.
CSCI 6962: Server-side Design and Programming Introduction to Active Server Pages.
Tutorial 111 The Visual Studio.NET Environment The major differences between Visual Basic 6.0 and Visual Basic.NET are the latter’s support for true object-oriented.
Tutorial 7 Creating Forms. Objectives Session 7.1 – Create an HTML form – Insert fields for text – Add labels for form elements – Create radio buttons.
ASP.NET.. ASP.NET Environment ASP.NET is Microsoft's programming framework that enables the development of Web applications and services. It is an easy.
© 2010 Delmar, Cengage Learning Chapter 8 Collecting Data with Forms.
Using Client-Side Scripts to Enhance Web Applications 1.
JavaScript, Fourth Edition Chapter 5 Validating Form Data with JavaScript.
 Whether using paper forms or forms on the web, forms are used for gathering information. User enter information into designated areas, or fields. Forms.
CSCI 6962: Server-side Design and Programming Database Manipulation in ASP.
HTML FORMS GET/POST METHODS. HTML FORMS HTML Forms HTML forms are used to pass data to a server. A form can contain input elements like text fields, checkboxes,
Dale Roberts GUI Programming using Java - GUI Components Dale Roberts, Lecturer Computer Science, IUPUI Department of Computer.
1 Chapter Ten Using Controls. 2 Objectives Learn about Controls How to create a Form containing Labels How to set a Label’s Font How to add Color to a.
1 Creating Windows GUIs with Visual Studio. 2 Creating the Project New Project Visual C++ Projects Windows Forms Application Give the Project a Name and.
Chapter 4: Working with ASP.NET Server Controls OUTLINE  What ASP.NET Server Controls are  How the ASP.NET run time processes the server controls on.
CSCI 6962: Server-side Design and Programming Master Pages.
1.
CSCI 6962: Server-side Design and Programming JSF DataTables and Shopping Carts.
The Web Wizard’s Guide To JavaScript Chapter 3 Working with Forms.
Form Components and Elements
2d – CheckBox Lingma Acheson Department of Computer and Information Science, IUPUI CSCI N331 VB.NET Programming.
COMPUTER PROGRAMMING I 3.02 Apply Properties Associated with the Controls.
Lecy ∙ Data-Driven Management Lecture 12 Building Shiny Apps.
8 Chapter Eight Server-side Scripts. 8 Chapter Objectives Create dynamic Web pages that retrieve and display database data using Active Server Pages Process.
Teacher Functions. Teacher Functions in OAS Create Tests Assign Tests to a Class View Reports of Student Performance.
Controls Part 2. DateTimePicker Control Used for representing Date/Time information and take it as input from user. Date information is automatically.
COMPUTER PROGRAMMING I 3.01 Apply Controls Associated With Visual Studio Form.
Copyright (c) 2004 Prentice-Hall. All rights reserved. 1 Committed to Shaping the Next Generation of IT Experts. Project 6: Creating XHTML Forms Kelly.
JavaScript II ECT 270 Robin Burke. Outline Functions Events and event handling Form validation.
Radio Buttons. Input/Form/Radio Group Use the dialog to enter label and values for the radio buttons.
Java Swing Controls. JButton One of the most commonly used swing component is Push Button or simply button which is created through JButton class of Swing.
Form Data (part 2) MIS 3502, Fall 2015 Brad N Greenwood, PhD Department of MIS Fox School of Business Temple University 11/10/2015 Slide 1.
COMPUTER PROGRAMMING I 3.01 Apply Controls Associated With Visual Studio Form.
HTML III (Forms) Robin Burke ECT 270. Outline Where we are in this class Web applications HTML Forms Break Forms lab.
Lesson 5 Introduction to HTML Forms. Lesson 5 Forms A form is an area that can contain form elements. Form elements are elements that allow the user to.
Ashima Wadhwa Java Script And Forms. Introduction Forms: –One of the most common Web page elements used with JavaScript –Typical forms you may encounter.
Chapter 5 Validating Form Data with JavaScript
Form Data (part 2) MIS 3502, Fall 2015 Jeremy Shafer Department of MIS
A First Look at GUI Applications Radio Buttons and Check Boxes
Form Data (part 2) MIS 3501 Jeremy Shafer Department of MIS
Form Data (part 2) MIS 3501 Jeremy Shafer Department of MIS
Web Development Using ASP .NET
Presentation transcript:

CSCI 6962: Server-side Desig n and Programming ASP Server Controls

Outline Creating complex UI components from toolbox – Checkboxes – Radio buttons – Lists Extracting data from components using code Multiple-select elements and array iteration Dynamic list generation

Complex Form Elements Checkboxes – Text property gives label to display next to box Radio buttons Lists – SelectionMode can be Single or Multiple

Lists and List Items Edit Items interface to add/edit items in this list – Add items to list – Set Text to appear next to it – Set Value to be passed as parameter if selected

Radio Button Lists Create as RadioButtonList to group together Same Edit Items interface

ASP vs. HTML

Reading CheckBoxes Checkboxes have Checked property (True or False) – Use to add “Monitor” to peripheralLabel – Like string-based conditional output in JSF ( adds line)

Reading Radio Buttons/Lists Simplest way to find out which element selected:.Text property – Returns value associated with element (“” if none selected) – Single-select Lists handled same way

Reading Multiple-Select Lists List stores array of all options (not just those selected) Use loop to iterate through all items – Listname.Items.Count gives number of items (loop from 0 to Count – 1) – Listname.Items[i] refers to i th item in list – Listname.Items[i].Selected true if i th item selected – Listname.Items[i].Value gives value of i th item

Reading Multiple-Select Lists Number of items in SoftwareList Was i th item selected? Get value associated with i th item Keep count of selected items so know whether any selected

Dynamic List Generation Adding items to list using code (usually in Page_Load): listname.Items.Add(new ListItem(string)) Example: generating list of months using loop from 1 to 12

Dates in ASP Key: Date object – Date.Today used to get current time/date – Date.Today.property gets specific values (Year, Month, Day, Hour, …)