ASP.NET Web Controls.

Slides:



Advertisements
Similar presentations
DREAMWEAVER Welcome to our website!
Advertisements

Chapter 3 – Web Design Tables & Page Layout
Cascading Style Sheets
Making Things Look Nice: Visual Appearance and CSS CMPT 281.
Chapter 3 – Designing your web pages Dr. Stephanos Mavromoustakos.
Project 8 Creating Style Sheets.
Chapter 8 Creating Style Sheets.
Web Design with Cascading Style Sheet Lan Vu. Overview Introduction to CSS Designing CSS Using Visual Studio to create CSS Using template for web design.
Ch. 5 Web Page Design – Templates and Style Sheets Mr. Ursone.
Tutorial 3 Introducing Cascading Style Sheets. XP New Perspectives on Blended HTML, XHTML, and CSS2 Objectives Learn about Cascading Style Sheets Write.
IT533 Lecture ASP.NET Controls. Installations Microsoft® SQL Server® 2008 Express.
Intermediate Level Course. Text Format The text styles, bold, italics, underlining, superscript and subscript, can be easily added to selected text. Text.
Chapter 3 Working with Text and Cascading Style Sheets.
Chapter 3 Tables and Page Layout
XHTML1 Tables and Lists. XHTML2 Objectives In this chapter, you will: Create basic tables Structure tables Format tables Create lists.
Tutorial 3: Adding and Formatting Text. 2 Objectives Session 3.1 Type text into a page Copy text from a document and paste it into a page Check for spelling.
Chapter 19 – Macromedia Dreamweaver MX 2004
Working with Text and Cascading Style Sheets Adobe Dreamweaver Chapter 3.
Chapter 4 Dreamweaver: Part II The Web Warrior Guide to Web Design Technologies.
© 2010 Delmar, Cengage Learning Chapter 7 Using Styles and Style Sheets for Design.
Chapter 3 Working with Text and Cascading Style Sheets.
Copyright © Texas Education Agency, All rights reserved. 1 Web Technologies Website Development with Dreamweaver.
Dreamweaver -- CSS. Dreamweaver -- MX New icons are added in MX Most of the features commonly used in web design, and are same as FrontPage. New feature.
HTML, Third Edition--Illustrated Introductory 1 HTML, Third Edition Illustrated Introductory Unit F Working with Tables.
Using Styles and Style Sheets for Design
Web Technologies Website Development Trade & Industrial Education
© Copyright by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. 1 Introducing Web Controls Outline 29.1 Analyzing the.
Web Controls Dr. Awad Khalil Computer Science & Engineering Department AUC.
1 Macromedia Dreamweaver Outline Introduction Macromedia Dreamweaver Text Styles Images and Links Symbols and Lines Tables Forms Scripting in Dreamweaver.
Intro to Dreamweaver Web Design Section 7-1 Part or all of this lesson was adapted from the University of Washington’s “Web Design & Development I” Course.
Website Development with Dreamweaver
Microsoft Expression Web-Illustrated Unit I: Working with Tables.
Microsoft Visual Basic 2008 CHAPTER SEVEN Creating Web Applications.
Tutorial 7 Creating Forms. Objectives Session 7.1 – Create an HTML form – Insert fields for text – Add labels for form elements – Create radio buttons.
Domain 3 Understanding the Adobe Dreamweaver CS5 Interface.
Microsoft Visual Basic 2005 CHAPTER 7 Creating Web Applications.
T U T O R I A L  2009 Pearson Education, Inc. All rights reserved Bookstore Web Application: Client Tier Introducing Web Controls.
Positioning Objects with CSS and Tables
OV Copyright © 2008 Element K Content LLC. All rights reserved. Working with Web Pages  An Introduction to Cascading Style Sheets  Format a Web.
Make an HTML table using Visual Studio. Approach 1: drag table from Toolbox.
Web and Multimedia Development Copyright © Genetic Computer School 2007WM LESSON OVERVIEW  Use of Tables  Creating Tables  Try It – 1  Creating.
CASCADING STYLE SHEET CSS. CSS stands for Cascading Style Sheets Styles define how to display HTML elements Styles were added to HTML 4.0 to solve a problem.
CSS Introductions. Objectives To take control of the appearance of a Web site by creating style sheets. To use a style sheet to give all the pages of.
Working with Cascading Style Sheets
ASP.NET Forms.
Getting Started with CSS
Intro to Dreamweaver Web Design Section 8-1
Positioning Objects with CSS and Tables
Chapter 2 – Introduction to the Visual Studio .NET IDE
Using Cascading Style Sheets Module B: CSS Structure
3.01 Apply Controls Associated With Visual Studio Form
Intro to CSS CS 1150 Fall 2016.
IS333: MULTI-TIER APPLICATION DEVELOPMENT
Website Design 3
Cascading Style Sheets - Building a stylesheet
Unit I: Collecting Data with Forms
Intro to CSS CS 1150 Spring 2017.
Working with Text and Cascading Style Sheets
Cascading Style Sheets™ (CSS)
Using Cascading Style Sheets (CSS)
ASP.NET.
Web Development Using ASP .NET
Exercise 9 Skills You create and use styles to create formatting rules that can easily by applied to other pages in the Web site. You can create internal.
Understand basic HTML and CSS terminology, concepts, and basic operations. Objective 3.01.
Cascading Style Sheets - Building a stylesheet
5.00 Apply procedures to organize content by using Dreamweaver. (22%)
Step 1:. Open Microsoft FrontPage application.
Positioning Objects with CSS and Tables
Programming with Microsoft Visual Basic 2008 Fourth Edition
Presentation transcript:

ASP.NET Web Controls

Web Form that demonstrates web controls. (Part 1 of 6. ) Outline A simple form for gathering user input WebControls.aspx ( 1 of 6 ) In the head element of your .aspx file, the style element defines embedded style sheets. Web Form that demonstrates web controls. (Part 1 of 6. )

Web Form that demonstrates web controls. (Part 2 of 6. ) Outline WebControls.aspx ( 2 of 6 ) In the head element of your .aspx file, the style element defines embedded style sheets. An Image control inserts an image into a web page. A TextBox control allows you to obtain text from the user and display text to the user. Web Form that demonstrates web controls. (Part 2 of 6. )

Web Form that demonstrates web controls. (Part 3 of 6. ) Outline WebControls.aspx ( 3 of 6 ) Web Form that demonstrates web controls. (Part 3 of 6. )

Web Form that demonstrates web controls. (Part 4 of 6. ) Outline WebControls.aspx ( 4 of 6 ) A TextBox control allows you to obtain text from the user and display text to the user. The HyperLink control adds a hyperlink to a web page. Web Form that demonstrates web controls. (Part 4 of 6. )

Web Form that demonstrates web controls. (Part 5 of 6. ) Outline WebControls.aspx ( 5 of 6 ) The RadioButtonList control provides a series of radio buttons from which the user can select only one. A Button web control represents a button that triggers an action when clicked, and typically maps to an XHTML input element of type "button". Web Form that demonstrates web controls. (Part 5 of 6. )

Web Form that demonstrates web controls. (Part 6 of 6. ) Outline WebControls.aspx ( 6 of 6 ) Image control TextBox control DropDownList control HyperLink control RadioButtonList Button control Web Form that demonstrates web controls. (Part 6 of 6. )

Web Controls (Cont.) The code in the last slides was generated by Visual Web Developer using Design mode. • To begin, create an ASP.NET Web Site named WebControls. • The page contains an h3 heading element, followed by a series of additional XHTML blocks. • We use an XHTML table element to organize the Image and TextBox controls in the user-information section of the page.

Adding an XHTML Table to a Web Form Select Insert Table from the Table menu to display the Insert Table dialog. Insert Table dialog.

 Web Controls (Cont.) In the Size group box, change the values of Rows and Columns to 2. • Click OK to close the Insert Table dialog and create the table.

Web Controls (Cont.) We changed the vertical alignment of all cells in the table (i.e., td elements) by setting the valign property to top in the Properties window. We also changed the width of the cells in the left column by modifying the style property in the Properties window. Click the ellipsis next to the style property to display the Modify Style dialog. In this case, we set the width (in the Position category) to 225px.

Setting the Color of Text on a Web Form To set the color of a specific piece of text, highlight the text and select Format > Font…. In the Font dialog that appears, choose a color or click More Colors…. he More Colors dialog offers a greater selection of colors and allows you to specify a custom color by clicking the Colors… button. The IDE places the colored text in an XHTML span element and applies the color using CSS styling.

Examining Web Controls on a Sample Registration Form An Image control inserts an image into a web page. We added an Images folder to this project by right clicking the location of the project in the Solution Explorer and selecting New Folder. We then added each of the images used in the example to this folder by right clicking the folder and selecting Add Existing Item…. The ImageUrl property specifies the location of the image to display.

Web Controls (Cont.) To select an image, click the ellipsis next to the ImageUrl property and use the Select Image dialog. A TextBox control allows you to obtain text from the user and display text to the user.

Web Controls (Cont.) A DropDownList is similar to the Windows Forms ComboBox control. However, a DropDownList does not allow users to type text. Each item in the drop-down list is defined by a ListItem element. You can add items to a DropDownList using the ListItem Collection Editor. This process is similar to customizing a ListBox in a Windows application. Visual Web Developer displays smart-tag menus for many ASP.NET controls to facilitate common tasks.

Fig. 22.20 | DropDownList Tasks smart-tag menu.  Web Controls (Cont.) Fig. 22.20 | DropDownList Tasks smart-tag menu.

Web Controls (Cont.) The HyperLink control adds a hyperlink to a web page. The Navigate­Url property of this control specifies the resource that is requested when a user clicks the hyperlink. Setting the Target property to _blank specifies that the requested web page should open in a new window or tab. The RadioButtonList control provides a series of radio buttons from which the user can select only one. Like options in a DropDownList, individual radio buttons are defined by ListItem elements. A Button web control represents a button that triggers an action when clicked, and typically maps to an XHTML input element of type "button".

CSS Inline Styles and Embedded Style Sheets Visual Web Developer often generates CSS (Cascading Style SheetsTM) code to specify the presentation of an element. In the head element of your .aspx file, the style element defines embedded style sheets. The style element’s type attribute specifes the MIME type of its content. The body of the style sheet declares CSS rules (styles). A CSS rule is composed of a CSS selector and a series of property specifications separated by semicolons (;) and enclosed in curly braces ({}). Each specification is composed of a property followed by a colon and a value.

Web Controls (Cont.) When you use one of the visual programming tools to define an element’s appearance, the IDE sometimes creates a style class, which can be used as a selector by prefixing it with a period. The style class can then be applied to any element in the document by setting the XHTML attribute class. Another way to apply styles is to use inline styles, which declare an individual element’s format using the XHTML attribute style.