PART 2.

Slides:



Advertisements
Similar presentations
Chapter 7 JavaScript: Introduction to Scripting. Outline Simple Programs Objects and Variables Obtaining User Input with prompt Dialogs – –Dynamic Welcome.
Advertisements

IT533 Lecture ASP.NET Controls. Installations Microsoft® SQL Server® 2008 Express.
web controls  standard controls  validation controls  rich controls.
Web App Development with ASP.NET. Introduction In this chapter, we introduce web-app development with Microsoft’s ASP.NET technology. Web-based apps create.
 2006 Pearson Education, Inc. All rights reserved ASP.NET 2.0, Web Forms and Web Controls.
ASP.NET Validating user input Validating user input on the client and/or server side 1ASP.NET Validating User Input.
ASP.NET Programming with C# and SQL Server First Edition
CST JavaScript Validating Form Data with JavaScript.
Chapter 9 Web Applications Copyright © 2011 by The McGraw-Hill Companies, Inc. All Rights Reserved. McGraw-Hill.
XP Tutorial 14 New Perspectives on HTML, XHTML, and DHTML, Comprehensive 1 Working with Forms and Regular Expressions Validating a Web Form with JavaScript.
9-1 aslkjdhfalskhjfgalsdkfhalskdhjfglaskdhjflaskdhjfglaksjdhflakshflaksdhjfglaksjhflaksjhf.
4.1 JavaScript Introduction
Database-Driven Web Sites, Second Edition1 Chapter 8 Processing ASP.NET Web Forms and Working With Server Controls.
Module 7: Validating User Input.
.NET Validation Controls MacDonald Ch. 8 MIS 324 MIS 324 Professor Sandvig Professor Sandvig.
Chapter 3 Using Validation Controls. What is a Validation Control? A control that validates the value in another control Renders as an HTML tag with an.
Chapter 5 Java Script And Forms JavaScript, Third Edition.
1 Web-Enabled Decision Support Systems Introduction to ASP.NET Prof. Name Position (123) University Name.
Telerik Software Academy ASP.NET Web Forms Data Validation, Data Validators, Validation Groups Telerik Software Academy
Overview of Previous Lesson(s) Over View  ASP.NET Pages  Modular in nature and divided into the core sections  Page directives  Code Section  Page.
XHTML Introductory1 Forms Chapter 7. XHTML Introductory2 Objectives In this chapter, you will: Study elements Learn about input fields Use the element.
Christopher M. Pascucci.NET Programming: Forms & Controls.
ASP.NET 2.0 Chapter 5 Advanced Web Controls. ASP.NET 2.0, Third Edition2 Objectives.
Web Application and Development Digital Media Department Unit Credit Value : 4 Essential Learning time : 120 hours Digital Media.
Web Development Using ASP.NET CA – 240 Kashif Jalal Welcome to week – 4-1 of…
Creating Web Applications Using ASP.NET Chapter Microsoft Visual Basic.NET: Reloaded 1.
Web Controls Dr. Awad Khalil Computer Science & Engineering Department AUC.
 2008 Pearson Education, Inc. All rights reserved ASP.NET 2.0 and ASP.NET Ajax.
ASP.Net, Web Forms and Web Controls 1 Outline Web Controls Text and Graphics Controls AdRotator Control Validation Controls.
Web Programming: Client/Server Applications Server sends the web pages to the client. –built into Visual Studio for development purposes Client displays.
Section 4.1 Format HTML tags Identify HTML guidelines Section 4.2 Organize Web site files and folder Use a text editor Use HTML tags and attributes Create.
Validation and Rich controls 1www.tech.findforinfo.com.
McGraw-Hill © 2009 The McGraw-Hill Companies, Inc. All rights reserved. Programming with Visual Web Developer Chapter 9.
Microsoft Visual Basic 2005 CHAPTER 7 Creating Web Applications.
JavaScript, Fourth Edition Chapter 5 Validating Form Data with JavaScript.
XHTML1 Images N100 Building a Simple Web Page. XHTML2 The Element The src attribute specifies the filename of an image file To include the src attribute.
JavaScript - A Web Script Language Fred Durao
Lesson 12 Adding Validation To The Movie Database.
 2008 Pearson Education, Inc. All rights reserved ASP.NET 2.0 and ASP.NET Ajax.
AUC Technologies Projects Consulting, Development, Mentoring, and Training Company ASP.NET Validation Control Presented By : Muhammad Atif Hussain Deputy.
VALIDATION CONTROLS.  Validation Controls are primarily used to validate, or verify the data entered by user into a web form.  Validation controls attempt.
4 HTML Basics Section 4.1 Format HTML tags Identify HTML guidelines Section 4.2 Organize Web site files and folder Use a text editor Use HTML tags and.
ASP.NET 4 Unleashed Chapter 1. .aspx page: contains C# script and HTML code including tags. Listing 1.1 FirstPage.aspx.
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.
ASP (COMPONENTS) Active Server Pages (cont..) 1. global.asa file The Global.asa file is an optional file that can contain declarations of objects, variables,
Vijayalakshmi G M Validation Controls.
IT533 Lectures ASP.NET AJAX.
Document Object Model Nasrullah. DOM When a page is loaded,browser creates a Document Object Model of the Page.
Validation Controls Assist your users with providing the correct type of input for your application Assist your users with providing the correct type of.
Chapter 5 Validating Form Data with JavaScript
Objective % Select and utilize tools to design and develop websites.
Section 4.1 Section 4.2 Format HTML tags Identify HTML guidelines
In this session, you will learn to:
CIIT-Human Computer Interaction-CSC456-Fall-2015-Mr
Web Application Web Application are programs that can be executed either on a Web server or in a Web browser. An Online store accessed through a browser.
Web Forms, HTML, and ASP.NET
Section 17.1 Section 17.2 Add an audio file using HTML
25 ASP.NET 2.0 and ASP.NET Ajax.
Introduction to XHTML.
Objective % Select and utilize tools to design and develop websites.
Unit 27 - Web Server Scripting
Chapter 23 – ASP.NET Outline 23.1 Introduction NET Overview
Chapter 7 - JavaScript: Introduction to Scripting
JavaScript: Introduction to Scripting
Web Development Using ASP .NET
Chapter 9 Programming with Web Forms
Chapter 7 - JavaScript: Introduction to Scripting
Server Controls Validation Controls
.NET Validation Controls
Presentation transcript:

PART 2

25.3.2 AdRotator Control AdRotator control Randomly selects an image to display Generates a hyperlink to the Web page associated with that image Browsers that do not support images display alternate text that is specified in the XML document The browser loads the Web page associated with that image when a user clicks the image or substituted text

25.3.2 AdRotator Control (Cont.) Accesses an XML file to determine what advertisement image, hyperlink URL and alternate text to display and include in the page Create an XmlDataSource control to connect to the XML file ImageUrl Element Specifies the path (location) of the advertisement’s image NavigateUrl Element Specifies the URL for the Web page that loads when a user clicks the advertisement The URL cannot contain any whitespace AlternateText Element Contains text that displays in place of the image when the browser cannot locate or render the image Also a tooltip Impressions Element Specifies how often a particular image appears, relative to the other images

Defines an AdRotator control Outline FlagRotator.aspx (1 of 2) Defines an AdRotator control Defines an XmlDataSource control, which supplies the data to the AdRotator control

Outline FlagRotator.aspx (2 of 2)

Outline AdRotatorInforma tion.xml (1 of 4) Each Ad element represents an advertisement that will be displayed by the AdRotator control Specifies the path of the advertisement’s image Specifies the URL for the Web page that loads when user clicks on the advertisement Text that displays in place of the image when the browser cannot render the image Specifies how often a particular image appears

Outline AdRotatorInforma tion.xml (2 of 4)

Outline AdRotatorInforma tion.xml (3 of 4)

Outline AdRotatorInforma tion.xml (4 of 4)

25.3.3 Validation Controls Validation Control Determines whether the data in another Web control is in the proper format Provide a mechanism for validating user input on the client The validator is converted into JavaScript when the XHTML for the page is created Java Script is a scripting language that enhances the functionality and appearance of Web pages For security reasons, validation is always performed on the server

25.3.3 Validation Controls (Cont.) RequiredFieldValidator ControlToValidate property Indicates Validator verifies a control’s contents ErrorMessage Property Text displayed if the validation fails Display property Determines if the validator is displayed only when validation fails RegularExpressionValidator Matches a Web control’s content against a regular expression That expression is assigned to ValidationExpression property IsPostBack property Determines whether the page is being loaded due to a postback The current page reloads when the user submits the form

Outline Validation.aspx (1 of 5) Defines a RequiredFieldValidator which confirms the TextBox is not empty

Outline Defines a RequiredFieldValidator which confirms the TextBox is not empty Validation.aspx (2 of 5) Defines a RegularExpressionValidator control to determine whether data is entered in a valid format

Defines a RequiredFieldValidator which confirms the TextBox is not empty Outline Validation.aspx (3 of 5) Defines a RegularExpressionValidator control to determine whether data is entered in a valid format

Outline Validation.aspx (4 of 5)

Outline Validation.aspx (5 of 5)

Outline Determines whether the page is being loaded due to a postback Validation.aspx .vb Determines whether the page is being loaded due to a postback Retrieves the values of the TextBoxes