Web Site Navigation How to get around in an ASP.NET web application 1Web Site Navigation.

Slides:



Advertisements
Similar presentations
ASP.NET User Controls Make your own controls by grouping other controls 1ASP.NET User Controls.
Advertisements

4.01 How Web Pages Work.
Web Development in Microsoft Visual Studio Slide 2 Lecture Overview Introduce Visual Studio 2013 Create a first ASP.NET application.
Dreamweaver MX ? Create professional web pages Visual editing functions –No need to write HTML Includes complete FTP client software Recognises.
Internet – Part II. What is the World Wide Web? The World Wide Web is a collection of host machines, which deliver documents, graphics and multi-media.
ASP.NET Validating user input Validating user input on the client and/or server side 1ASP.NET Validating User Input.
Topics in this presentation: The Web and how it works Difference between Web pages and web sites Web browsers and Web servers HTML purpose and structure.
Lecture 13. A Very Brief Introduction to HTML and XHTML, part II Instructor: Jie Yang Department of Computer Science University of Massachusetts Lowell.
Chapter 2 Introduction to HTML5 Internet & World Wide Web How to Program, 5/e Copyright © Pearson, Inc All Rights Reserved.
Images: HTML and CSS. The Bells page without images in Source View and Design View.
1 Web Developer & Design Foundations with XHTML Chapter 6 Key Concepts.
Internal and External Links Web Design – Section 3-6 Part or all of this lesson was adapted from the University of Washington’s “Web Design & Development.
Adobe Dreamweaver CS3 Revealed CHAPTER ONE: GETTING STARTED WITH DREAMWEAVER.
9-1 aslkjdhfalskhjfgalsdkfhalskdhjfglaskdhjflaskdhjfglaksjdhflakshflaksdhjfglaksjhflaksjhf.
Tutorial: Introduction to ASP.NET Internet Technologies and Web Application 4 th February 2010.
1 CS 3870/CS 5870 Static and Dynamic Web Pages ASP.NET and IIS.
Copyright © Texas Education Agency, All rights reserved. 1 Web Technologies Website Development with Dreamweaver.
Chapter 3 Dreamweaver: Part I The Web Warrior Guide to Web Design Technologies.
DR.JOHN ABRAHAM PROFESSOR UTPA ASP.NET. ACTIVE SERVER PAGES (ASP) Web application development environment Web applications use web browser to display.
1 CS 3870/CS 5870 Static and Dynamic Web Pages ASP.NET and IIS.
Dr. Azeddine Chikh IS444: Modern tools for applications development.
ASP.NET AJAX 1. Ordinary web applications vs. AJAX Ordinary web application The full page is updated at each request The page is not available while being.
Web Technologies Website Development Trade & Industrial Education
XP New Perspectives on Browser and Basics Tutorial 1 1 Browser and Basics Tutorial 1.
Web Design (5) Navigation (1). Creating a new website called ‘Navigation’ In Windows Explorer, open the folder “CU3A Web Design Group”; and then the sub-folder.
Copyright (c) 2004 Prentice-Hall. All rights reserved. 1 Committed to Shaping the Next Generation of IT Experts. Project 4: Creating Hyperlinks Kelly L.
Web Programming: Client/Server Applications Server sends the web pages to the client. –built into Visual Studio for development purposes Client displays.
Website Development with Dreamweaver
Tutorial 4: Working with Hyperlinks. Objectives Session 4.1 – Place bookmarks on a Web page – Create a link to a bookmark – Create a link to another Web.
CIS 205—Web Design & Development Dreamweaver Chapter 1.
1.  Use the anchor element to link from page to page  Configure absolute, relative, and hyperlinks  Configure relative hyperlinks to web pages.
DataSource controls in.NET How to access databases.
Chapter 7 – Navigation Dr. Stephanos Mavromoustakos.
Joe Hummel, PhD Dept of Mathematics and Computer Science Lake Forest College
Web Development in Microsoft Visual Studio Slide 2 Lecture Overview How to create a first ASP.NET application.
Week Developing Web Applications 12. Programming for the Web A Web Application Runs on a Web Server and Presents Its Content to the User Across a Network,
CIS 375—Web App Dev II ASP.NET 3 Working With Server Controls.
Internal and External Links Web Design – Section 3-6 Part or all of this lesson was adapted from the University of Washington’s “Web Design & Development.
Module: Software Engineering of Web Applications Chapter 2: Technologies 1.
The Internet and World Wide Web Sullivan University Library.
Marco Bellinaso Senior Trainer & Consultant Code Architects Srl Building Dynamic Navigation Systems with Visual Studio 2005 and ASP.NET 2.0.
Web Development in Microsoft Visual Studio 2013 / 2015.
1 More About HTML Images and Links. 22 Objectives You will be able to Include images in your HTML page. Create links to other pages on your HTML page.
Chapter 27 Getting “Web-ified” (Web Applications) Clearly Visual Basic: Programming with Visual Basic nd Edition.
1111 Master Pages Beginning ASP.NET in C# and VB Chapter 6.
Microsoft Office 2008 for Mac – Illustrated Unit D: Getting Started with Safari.
E-commerce Foundations By Dr. Gabriel. Using 3-Tier/N-Tier Architecture The presentation tier The business tier The data tier.
Creating a Web Site Creating a new Web site Defining and using folders Creating and editing Web pages Viewing pages in a Web browser.
Easy Site Navigation Getting organized, staying organized Creating custom site-navigation controls Using Menu, TreeView, and SiteMenuPath controls Make.
Blended HTML and CSS Fundamentals 3 rd EDITION Tutorial 2 Creating Links.
Hyperlinks Links for Other Pages. Hyperlink (aka Link) Text (or image) user can click Takes user to different location In general, location can be: On.
Building CSS in Visual Studio Slide 2 Introduction Using the different HTML (and other) Visual Studio Editors CSS tools.
Chapter 7 Navigation. Objectives How to move around in your site using server controls and plain HTML How to address pages and other resources like images.
Chapter 2 Creating Website with Web Forms. Objectives Understand the different project types and templates when building ASP.NET web sites. The different.
HTML5 and CSS3 Illustrated Unit E: Inserting and Working with Links.
4.01 How Web Pages Work.
4.01 How Web Pages Work.
4.01 How Web Pages Work.
Objective % Select and utilize tools to design and develop websites.
Internal and External Links
Sec (4.3) The World Wide Web.
Internal and External Links
Link Label Text Label… Click Here… Image Image Lorem Ipsum Lorem Ipsum
Objective % Select and utilize tools to design and develop websites.
Web Development in Microsoft Visual Studio 2013
Hyperlinks, Images and Tables
Planning and Storyboarding a Web Site
NAVIGATION CONTROLS.
4.01 How Web Pages Work.
4.01 How Web Pages Work.
Presentation transcript:

Web Site Navigation How to get around in an ASP.NET web application 1Web Site Navigation

Links HTML anchor – Text ASP.NET HyperLink control – Text – Can be manipulated in the code-behind Example: aspnet/navigation/links 2Web Site Navigation

URL Uniform Ressource Locator Absolute URL – – Protocol://host/ressource Relative URL – Relative to the current page – /file.txt File in current folder – /subfolder/file.txt File in subfolder –../file.txt File in parent folder 3Web Site Navigation

Default documents URLS may lead to a folder, not a file – The web server will look for a default document in the folder Web servers can be configured to handled a list of default documents like 1.Default.aspx 2.Index.htm 3.Index.html 4.Etc. 4Web Site Navigation

ASP.NET navigation controls ASP.NET includes a few navigation controls – Menu – TreeView – SiteMapPath (aka. Bread crumps) – Visual studio The controls uses a logical structure of the web site defined in the file web.sitemap Example: aspnet/navigation/sitemap 5Web Site Navigation

Web.sitemap XML file with the logical structure of the web site – Not much help from Visual Studio to create this file  6Web Site Navigation

Menu Control Menu sub-items a unfolded as you hover the mouse over an item Uses the web.sitemap through a DataSource control – May also use other data sources than web.sitemap Can be styled in many different ways – Using CSS 7Web Site Navigation

TreeView Control Sub-trees can be collapsed / expanded by clicking Uses the web.sitemap through a DataSource control – May also use other data sources than web.sitemap Can be styled in many different ways – Using CSS 8Web Site Navigation

SiteMapPath Also known ad bread crumps Typically shown at the top of each page to tell the user where in the web site’s structure. Uses the file web.sitemap directly – No DataSource control used Typically included in a master page … … 9Web Site Navigation

Programmatic Redirection A web form usually submits data back the itself. – Sometimes you might want to go to a different page Client-side redirects – The client is responsible for the redirect. – Requires extra request/response – Can redirect to any web site Server-side redirect – The server is responsible for the redirect – No extra request/response – Can only redirect to other pages in this web site 10Web Site Navigation

Client-side redirects Client does the redirect ASP.NET Response object – Response.Redirect(newUrl) HTTP response: 303 moved temporarily – Response.RedirectPermanent(newUrl) HTTP response: 301 moved permanent Search engines will stop looking for the page 11Web Site Navigation

Server-side redirects Server does the redirect URL in browser not changed – Browser does not know about the redirect ASP.NET – Server.Transfer(url); – Server.Transfer(url?parameterName:value) Get the parameter value using Request.QueryString(parameterName) 12Web Site Navigation

Further readings, etc. Imar Spaanjaars Beginning ASP.NET 4 in C# and VB, Wrox 2010 – Chapter 7 Navigation, page Bill Evjen Professional ASP.NET 4 in C# and VB, Wrox 2010 – Chapter 13 Site Navigation, page George Shepherd Microsoft ASP.NET 4 Step by Step, Microsoft Press 2010 – Chapter 11 Web Site Navigation, page W3Schools.com ASP.NET 2.0 – Navigation – Chris Peels How Do I Implements Site Navigation in ASP.NET (video) – navigation-in-aspnet, navigation-in-aspnet 13Web Site Navigation