Introduction to ASP.NET, Second Edition2 Chapter Objectives.

Slides:



Advertisements
Similar presentations
1 Web Site Design Overview of the Internet Cookie Setton.
Advertisements

Chapter 3 – Designing your web pages Dr. Stephanos Mavromoustakos.
Creating and Editing a Web Page Using Inline Styles
Using Advanced Cascading Style Sheets
Web Pages and Style Sheets Bert Wachsmuth. HTML versus XHTML XHTML is a stricter version of HTML: HTML + stricter rules = XHTML. XHTML Rule violations:
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.
Chapter 3 Working with Text and Cascading Style Sheets.
 2006 Pearson Education, Inc. All rights reserved Introduction to the Visual C# 2005 Express Edition IDE.
Cascading Style Sheets. Slide 2 Lecture Overview Overview of Cascading Style Sheets (CSS) Ways to declare a CSS CSS formatting capabilities New features.
Chapter 2: The Visual Studio.NET Development Environment Visual Basic.NET Programming: From Problem Analysis to Program Design.
4.01 Cascading Style Sheets
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 2 Introduction to HTML5 Internet & World Wide Web How to Program, 5/e Copyright © Pearson, Inc All Rights Reserved.
With Alex Conger – President of Webmajik.com FrontPage 2002 Level I (Intro & Training) FrontPage 2002 Level I (Intro & Training)
HTML 1 Introduction to HTML. 2 Objectives Describe the Internet and its associated key terms Describe the World Wide Web and its associated key terms.
Working with Text and Cascading Style Sheets Adobe Dreamweaver Chapter 3.
2. Introduction to the Visual Studio.NET IDE 2. Introduction to the Visual Studio.NET IDE Ch2 – Deitel’s Book.
Getting Started with Dreamweaver
© 2011 Delmar, Cengage Learning Chapter 2 Developing a Web Page.
 Using Microsoft Expression Web you can: › Create Web pages and Web sites › Set what you site will look like as you design it › Add text, images, multimedia.
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.
Getting Started with Expression Web 3
HTML Applications with Visual Studio.NET ASP.NET.
Using Styles and Style Sheets for Design
© Ms. Masihi.  The Dreamweaver Welcome Screen first opens when you start Dreamweaver.  This screen gives you quick access to previously opened files,
INTRODUCTION TO FRONTPAGE. TOPICS TO BE DISCUSSED……….  Introduction Introduction  Features Features  Starting Front Page Starting Front Page  Components.
CHAPTER 3 Working with Templates and Styles. CHAPTER OBJECTIVES  Create an Expression Web site from a template  Rename a page  Rename a folder  Add.
Chapter 2 Developing a Web Page. A web page is composed of two distinct sections: –The head content –The body Creating Head Content and Setting Page Properties.
Bare bones notes. Suggested organization for main folder. REQUIRED organization for the 115 folder.
E-Commerce: Introduction to Web Development 1 Dr. Lawrence West, Management Dept., University of Central Florida Topics What is a Web.
Website Development with Dreamweaver
SEG3210 DHTML Tutorial. DHTML DHTML is a combination of technologies used to create dynamic and interactive Web sites. –HTML - For creating text and image.
XP Dreamweaver 8.0 Tutorial 3 1 Adding Text and Formatting Text with CSS Styles.
Programming in HTML.  Programming Language  Used to design/create web pages  Hyper Text Markup Language  Markup Language  Series of Markup tags 
T U T O R I A L  2009 Pearson Education, Inc. All rights reserved. 1 2 Welcome Application Introducing the Visual Basic 2008 Express Edition IDE.
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
2. Introduction to the Visual Studio.NET IDE. Chapter Outline Overview of the Visual Studio.NET IDE Overview of the Visual Studio.NET IDE Menu Bar and.
XP New Perspectives on The Internet, Sixth Edition— Comprehensive Tutorial 8 1 Creating Effective Web Pages Creating HTML Documents Tutorial 8.
Session 1 SESSION 1 Working with Dreamweaver 8.0.
© 2011 Delmar, Cengage Learning Chapter 8 Using Styles and Design Style Sheets for Design.
XP New Perspectives on Microsoft Office FrontPage 2003 Tutorial 1 1 Microsoft Office FrontPage 2003 Tutorial 1 – Creating a Web Site.
FILES AND ASSETS PANELS
Chapter 2 1 Introduction to Visual Studio.NET Introduction to ASP.NET By Kathleen Kalata.
© Copyright by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. 1 Outline 2.1 Test-Driving the Welcome Application 2.2.
Tutorial 3 Adding and Formatting Text with CSS Styles.
HTML Concepts and Techniques Fifth Edition Chapter 1 Introduction to HTML.
Object-Oriented Application Development Using VB.NET 1 Chapter 2 The Visual Studio.NET Development Environment.
Lecture Set 2 Part A: Creating an Application with Visual Studio – Solutions, Projects, Files 8/10/ :35 PM.
Chapter 1 Introduction to HTML, XHTML, and CSS HTML5 & CSS 7 th Edition.
Web Development Using ASP.NET CA – 240 Kashif Jalal Welcome to week – 2-2 of…
IE 411/511: Visual Programming for Industrial Applications Lecture Notes #2 Introduction to the Visual Basic Express 2010 Integrated Development Environment.
Creating Web Pages with Links, Images, and Embedded Style Sheets
CREATING MASTER PAGES Creating a Master Page Using Master Pages Giving your site a professional look and feel Adding Master Page content to existing pages.
 2002 Prentice Hall. All rights reserved. 1 Introduction to the Visual Studio.NET IDE Outline Introduction Visual Studio.NET Integrated Development Environment.
Microsoft Expression Web - Illustrated Unit A: Getting Started With Microsoft Expression Web.
COMP 143 Web Development with Adobe Dreamweaver CC.
Chapter 2: The Visual Studio.NET Development Environment Visual Basic.NET Programming: From Problem Analysis to Program Design.
Project 1 Introduction to HTML.
Objective % Select and utilize tools to design and develop websites.
Chapter 2: The Visual Studio .NET Development Environment
Chapter 2 Developing a Web Page.
ASP.NET Web Controls.
Project 1 Introduction to HTML.
Introduction to XHTML.
5.00 Apply procedures to organize content by using Dreamweaver. (22%)
Presentation transcript:

Introduction to ASP.NET, Second Edition2 Chapter Objectives

Introduction to ASP.NET, Second Edition3 Visual Studio.NET User Interface Integrated Development Environment (IDE) – shared development environment Document windows (Edit & view documents) Resource Tools (Windows, Toolbox, Toolbars) – Main Window – create and view project files – Solution Explorer – manage project files and resources – Server Explorer window – access server public components, manage connections to databases

Introduction to ASP.NET, Second Edition4 Visual Studio.NET IDE Layout

Introduction to ASP.NET, Second Edition5 The Solution Explorer Window

Introduction to ASP.NET, Second Edition6 Visual Studio.NET User Interface (continued) Resource Tools (continued) – Properties window – set properties for objects, controls, and classes – Document Tab – allows you to easily switch between open documents – Toolbox – contains commonly used controls – Task window – contains a to do list

Introduction to ASP.NET, Second Edition7 Creating a Web Application A solution may contain pointers to many projects – Solution files are stored in a folder in the Visual Studio Projects folder Project name is the folder name – By default, project name is the solution name – Project files are stored in the same folder or with the Web site Web Server name – localhost, the machine name, IP address or – Default Web site is such as

Introduction to ASP.NET, Second Edition8 Creating a Web Application (continued) Create the Chapter2 project (Page 47) – Make sure to verify that Visual Basic Projects is selected in Project Types pane – Select the ASP.NET Web Application template – Name the solution & project Chapter2, so the location is – View the default files, the hidden files within the Solution Explorer window

Introduction to ASP.NET, Second Edition9 The Start Page Provides access to recently created applications and help resources – Some resources require access to the Internet You can reopen solutions by clicking on the hyperlink on the Projects tab Extensive documentation is provided on MSDN to customize the Start Page

Introduction to ASP.NET, Second Edition10 Navigating the Windows Window layout can be customized – Dockable – windows can be placed on top of each other – Hide – closes the window – Floating – drag and drop the window – Auto Hide – stores the window as a tab; the window comes out like a drawer when you click on the tab

Introduction to ASP.NET, Second Edition11 The Solution Explorer Window Contains folders, project files, and hidden files Contains Reference folder – references for base class libraries and namespaces Contains a bin directory – stores the compiled application – Compiled application is named after the project name with the file extension.dll – ProjectName.dll

Introduction to ASP.NET, Second Edition12 The Solution Explorer Window (continued) Working with the Solution Explorer (Page 49) – Create the images folder – Import the images from Chapter02Data folder – Add New Item – Web Form named home.aspx – Save the project

Introduction to ASP.NET, Second Edition13 The Solution Explorer Window (continued)

Introduction to ASP.NET, Second Edition14 The Toolbox Commonly used controls Organizes as tabs – HTML tab – HTML controls – Web Forms tab – ASP.NET Server controls Can be hidden and can slide out like the other windows

Introduction to ASP.NET, Second Edition15 Properties Window Set the properties for objects, controls, and classes Can set properties at design time or in the program code behind the page

Introduction to ASP.NET, Second Edition16 Properties Window (continued)

Introduction to ASP.NET, Second Edition17 HTML Controls HTML is a markup language HTML standards set by World Wide Web Consortium (W3C) XHTML is current version (XML compliant) – Requires beginning and closing tags – If no closing tag, use

Introduction to ASP.NET, Second Edition18 HTML Controls (continued) HTML Designer – Design view – a graphical user interface – HTML view – HTML code editor MS_POSITIONING property of BODY tag – GridLayout – absolute position objects on the page – FlowLayout – position elements in top-down format The targetSchema property – browser version IntelliSense – tries to predict what you will type

Introduction to ASP.NET, Second Edition19 Creating an HTML Page Create the feedback.htm page (Page 53) – Add the new page – Set the page properties – Insert an image – Insert tags in code view, in Design view – Modify the position of elements – Insert tags in Design view using the Toolbox Save and build the solution

Introduction to ASP.NET, Second Edition20 Creating an HTML Page (continued)

Introduction to ASP.NET, Second Edition21 IntelliSense

Introduction to ASP.NET, Second Edition22 Previewing Your HTML Page Preview the page in the external and internal browser Note: If you preview the page by starting the application, the default page will appear in the browser. You can change the start page.

Introduction to ASP.NET, Second Edition23 Previewing Your HTML Page (continued)

Introduction to ASP.NET, Second Edition24 User Controls Separate content and programming code that can be reused Easier to maintain Examples: – heading, footers, menus – lists of records returned from a database – commonly used forms The User Control – compiled file ends in.ascx – first line identifies the file using the keyword Control – cannot have tags

Introduction to ASP.NET, Second Edition25 User Controls (continued) Create the control (Ch2_Months.ascx) January February March April May June July August September October November December

Introduction to ASP.NET, Second Edition26 User Controls (continued) Registered with the Web page directive – TagPrefix is used to identify the User Control’s namespace – TagName is the name of the control

Introduction to ASP.NET, Second Edition27 User Controls (continued) Register the control in the Web page Insert the control anywhere in the page – can reuse any user control many times – must provide a unique ID

Introduction to ASP.NET, Second Edition28 Creating and Registering a User Control Create and Register a User Control (Page 60) – Create header.ascx – Insert an image – Add code to display a message and the date date is an object format date with ToShortDateString Modify the home.aspx page in HTML code view – Register the User Control – Insert the User Control – Save, build, an preview the page

Introduction to ASP.NET, Second Edition29 Creating and Registering a User Control (continued)

Introduction to ASP.NET, Second Edition30 Creating Cascading Style Sheets Store information on how to present the site Separates content from presentation W3C sets standards for CSS Style Builder is graphical user interface to CSS

Introduction to ASP.NET, Second Edition31 CSS Overview A style rule is the information that is applied to a single HTML tag, or a group of tags Name and value of the style is stored Syntax for the rules vary – Inline rules apply to a single tag – Embedded rules apply to all elements within a single Web page – External rules apply to all elements within multiple Web pages

Introduction to ASP.NET, Second Edition32 Inline Style Sheets Placed inside the tag – Use the keyword style – Separate name and value pair with semicolon <tagname style= "property1:value1;property2:value2"> Content goes here Welcome to Tara Store!

Introduction to ASP.NET, Second Edition33 Embedded Style Sheets Placed in the heading section – Use the tags – Separate name and value with = – Separate pairs with ; Sample Embedded Style Sheet H1{ color=green; font-size=12; } Welcome to Tara Store!

Introduction to ASP.NET, Second Edition34 External Style Sheets tag attaches the style sheet to the page – Rel – the file is a CSS – TYPE – the file is a text/css MIME type – No need for tag, same format as embedded – HREF – the location of the file (relative or absolute URL) – Placed in the heading section

Introduction to ASP.NET, Second Edition35 Comments Within Cascading Style Sheets /* */ can be added to embedded or external style sheets /* Styles.CSS Created By: Katie Kalata Date Created: 9/5/2005 This style sheet is used to format the main menu */ /* Corporate logo */ H1 {color:green} /* Red heading */ H2 {color:red} /* Blue heading */ H3 {color:blue}

Introduction to ASP.NET, Second Edition36 Cascading Style Sheet Rules Cascading style sheets can contain conflicting styles rules. This rule puts the “cascading” in cascading style sheets, in general: – Inline takes precedence over Embedded – Embedded takes precedence over External

Introduction to ASP.NET, Second Edition37 Classes Class can be used to format a group of different tags or a subgroup of a specific tag Prefix the name of the class with a period Sample Embedded Style Sheet H1 {color:green}.SelCat {color:red}.BlueHead {color:blue}

Introduction to ASP.NET, Second Edition38 Classes (continued) Apply the class with the keyword class Welcome to Tara Store! Product Listing: Gifts Jewelry China & Crystal Food Clothing Books, Music, & Videos

Introduction to ASP.NET, Second Edition39 Classes (continued) Both headings would appear in blue About Tara Store What’s New Current Sales Location Contact Us Members Only

Introduction to ASP.NET, Second Edition40 CSS Editor CSS editor called the Style Builder includes the IntelliSense feature Color Picker – Web Colors tab colors supported by the majority of computers and browsers – Named Colors tab - the 16 Windows colors and the 122 other named colors – System Colors tab - select a color that matches the colors used to create system graphical user interfaces such as windows, menus, scrollbars, and buttons – Custom Color tab - three slider controls to select the red, green, and blue (RGB) values

Introduction to ASP.NET, Second Edition41 Creating a Cascading Style Sheet Modify the styles.css sheet (Page 68) – Modify the style properties and values – Edit the style sheet manually, use IntelliSense and use the Style Builder – Add style rules – Save the file – Link the file to the feedback.htm page – Preview the page in the browser

Introduction to ASP.NET, Second Edition42 Creating a Cascading Style Sheet (continued)

Introduction to ASP.NET, Second Edition43 Creating a Cascading Style Sheet (continued)

Introduction to ASP.NET, Second Edition44 Creating a Cascading Style Sheet (continued)

Introduction to ASP.NET, Second Edition45 Customizing the Toolbox Customize the Toolbox (Page 74) – Create a new tab – Add a markup code fragment to tab and rename the control Toolbox – add additional tabs to organize controls Clipboard Ring - stores the list of items copied to the Clipboard Clipboard – area in memory that Windows uses to copy information

Introduction to ASP.NET, Second Edition46 Using Visual Studio.NET Help Resources You can view the actual URL of the help files in the URL drop-down list box on the Web toolbar Results in a ranked list Double-click on the items in the list to view the documentation from within the user interface – Dynamic - help for the currently selected item – Search - a textbox to enter a search phrase – Index - a dictionary index that you can search for a term alphabetically – Contents - navigate the help documentation using a table of contents

Introduction to ASP.NET, Second Edition47 Using Visual Studio.NET Help Resources (continued)

Introduction to ASP.NET, Second Edition48 Summary Visual Studio.NET IDE layout can be customized Solution Explorer manages files and folders in one location Properties window sets properties for objects Toolbox organizes commonly used controls and can be customized HTML editor is used to create HTML pages in Design View or Code View

Introduction to ASP.NET, Second Edition49 Summary (continued) User Controls – Contain controls and programming code; must be registered in the ASP.NET page before they are used Inline style sheets apply style rules to a single tag; embedded to a Web page; external to more than one page Help is provided within Visual Studio.NET through Dynamic, Index, Search, and Contents windows