MIS 3200 – Unit 5.2 ListItem controls and accumulation

Slides:



Advertisements
Similar presentations
Excel 2007 ® Business and Personal Finances How can Excel 2007 help you create data and content in a worksheet?
Advertisements

KompoZer. This is what KompoZer will look like with a blank document open. As you can see, there are a lot of icons for beginning users. But don't be.
Reinstating a previously cancelled section. As can be noted the Motorcycle section (example) is no longer active, which can be verified by the absence.
E-Portfolio July2014 Managing Multi-source Feedback.
MIS 3200 – Unit 4 Complex Conditional Statements – else if – switch.
Asp.NET Core Server Controls. Slide 2 Lecture Overview Understanding the types of ASP.NET controls HTML controls ASP.NET (Web) controls.
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
This is Google Drive. It stores all the documents you have made here.
U:/msu/course/cse/103 Day 25, Slide 1 Back-up PHP Files If you have not yet passed the 3.0 BT, make back-up copies of ALL.
Google Training By: Amy Shannon and Dave Auwerda.
MIS 3200 – Unit 6.2 Learning Objectives How to move data between pages – Using Query Strings How to control errors on web pages – Using Try-catch.
A Guide to the BIZNET Online Filing System STATE OF CONNECTICUT DEPARTMENT OF CHILDREN & FAMILIES (DCF) DEPARTMENT OF DEVELOPMENTAL SERVICES (DDS) DEPARTMENT.
Unit 8.2 Learning Objectives How data can be used – The Money Ball Example The Money Ball Example Data Warehouses – The Role of Data Warehouses The Role.
AESuniversity Program Development Tool. Program Development Tool What is the Program Development Tool? Why use it? How to create a Program Template How.
Chapter 4 – Working with ASP.NET Controls Dr. Stephanos Mavromoustakos.
® IBM Software Group © 2006 IBM Corporation Programmatically Rendering and Hiding JSF Controls This section describes how to hide and show JSF controls.
Introduction to Arrays. definitions and things to consider… This presentation is designed to give a simple demonstration of array and object visualizations.
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.
MIS 3200 – Unit 4.2 ListItem controls – CheckBoxList – ListBox.
Unit 8.3 Learning Objectives Insert users into the ASP.NET Membership system from code Capture data being sent to the database Capture Exceptions that.
MIS 3200 – Unit 3 What can computers do – Follow a sequence of instructions – Follow different paths of instructions based on decisions – Do things over.
Nickelodeon – Blogs User Guide. 1. Introduction The admin tool allows you to create and publish blog posts easily and efficiently along with managing.
Forms and Server Side Includes. What are Forms? Forms are used to get user input We’ve all used them before. For example, ever had to sign up for courses.
MIS 3200 – Unit 5.3 Manipulating ListItem controls – Moving ListItems between ListItem controls – Removing ListItems from ListItem controls.
Saint James School of Medicine.  Objectives:  Add course Information  syllabus  Lecture Notes, handouts, slides  Problem solving or discussion areas.
Go to your school’s web locker site Your user name is the first letter of your first name, the first four letters of.
USING WORDPRESS TO CREATE A WEBSITE (RATHER THAN A BLOG) STEP-BY-STEP INSTRUCTIONS.
® IBM Software Group © 2006 IBM Corporation Finding Out Which Submit Button Was Clicked – and Other JSF Command Button Techniques This section describes.
MIS 3200 – Unit 5.1 Iteration (looping) – while loops – for loops Working with List Items.
Adding Comments. XHTML Comments: Are useful for making notes to yourself (or future web designers working on your page.) Can function as reminders to.
Visual Basic.NET BASICS Lesson 11 List Boxes, For Next Loops, and Label Settings.
Creating a Form. Accessing Docs Log into your USD 465 Google Account Click on the “Documents” link at the top of.
Unit 6 Repetition Processing Instructor: Brent Presley.
Unit 8.2 Learning Objectives Data Warehouses – The Role of Data Warehouses The Role of Data Warehouses – Group Exercise Accessing Data in Views – Accessing.
MIS 3200 – C# (C Sharp)
JavaScript, Sixth Edition
T3/Tutorials: Data Submission
Unit 7 Learning Objectives
Unit 9.1 Learning Objectives Data Access in Code
Single Sample Registration
Database application MySQL Database and PhpMyAdmin
3.01 Apply Controls Associated With Visual Studio Form
Unit 8.2 How data can be used Accessing Data in Views
Core LIMS Training: Advanced Administration
Unit 9.2 Database access from code Database Cycle Review
MIS 3200 – Unit 3 What can computers do
Microsoft Word Reviewing Documents.
MIS 3200 – Unit 4 Complex Conditional Statements else if switch.
How to Create a PBWorks Site
Setting up a WordPress Site
Academic Search Premier Theory Searching
Together Let’s Design an Online Quiz
Unit 9.3 Learning Objectives Review database access in code
Building Web Applications
Basic HTML and Embed Codes
ARTstor Workshop Add an ARTstor URL within Blackboard
In Class Programming BIS1523 – Lecture 11.
CIS 16 Application Development Programming with Visual Basic
Setting up a WordPress Site
Module 05: Building ASP .NET Applications
Web Development Using ASP .NET
Hints on Chapter 5.
Managing Multi-source Feedback
Creating your CITATIONS
MIS 3200 – Unit 5.1 Iteration (looping) Working with List Items
MIS 3200 – Unit 6.1 Moving between pages by redirecting
Lecture 20 – Practice Exercises 4
Lecture 20 – Practice Exercises 4
Completing the Primary Reference portion of the Student Profile
Presentation transcript:

MIS 3200 – Unit 5.2 ListItem controls and accumulation Converting ListItem controls Accumulation with while loops Accumulation with for loops

Converting ListItems Assume we have created a CheckBoxList called cblMenu which looks like this: The source view of cblMenu might look like this:

Converting ListItems #2 We can easily convert a CheckBoxList into a ListBox (or visa versa) by changing the description in the source, like this: Properties that are not described by the control are simply ignored (RepeatDirection is not a property of a ListBox – see the next slide) Don’t forget to change the ID to an appropriate name like, lbMenu

Working with ListItems #3 You will get a message that RepeatDirection is invalid, but it will not prevent the page from running and you can remove it from the statement.

Accumulating with While Loops

Accumulating with For Loops

Time to try it out – Unit 5 L2 Accumulation with While and For loops Copy your lastnameU5L1.aspx and paste it in the Unit 5 as lastnameU5L2.aspx Re-name the heading to UNIT 5 L2 WORKING WITH LOOPS – LISTBOX Remove the CHECKBOXLIST H3 heading Set the Visible property of both Demonstrate buttons to false

L2 #2 Previously, you were accumulating the values from the CheckBoxList by using several if statements to test whether or not each checkbox was selected; replace your existing if statements (those related only to accumulating fees) with a for loop which should make the code easier to read and allow for many more fees to be considered without adding any additional code (note, your control and variable names may not be the same):

L2 #3 Let’s allow for many more fees to be added without making the page considerably longer; to do this, change to the source view and change the word CheckBoxList to ListBox before after Best practice says to change the ID to something like lbFees

L2 #4 Switch back to design view and change the Rows property of the ListBox to 5 (it should now look like this) Add two more fees to the ListBox: Tow Fee (value set to 50.00) Impound Fee (value set to 100.00) see the Unit 4.2 slides if you need help editing ListControl items

L2 #5 The ListBox now should have a scrollbar on the right-hand side like this Change the check all fees that apply to select all fees that apply Set the SelectionMode property of the ListBox to multiple this will allow us to select multiple items at the same time

L2 #6 Add appropriate comments to explain what the for loop is doing for the method Create a link to your U5L2 page from your MIS3200 page and copy everything to ASPNET and submit your MIS Portfolio URL to the drop box.

Think About It! While and for loops made accumulation easier, but did the listbox improve the usability of our L2?