Site Maps and Navigation

Slides:



Advertisements
Similar presentations
Malek Kemmou Technology Architect, Application Platform Microsoft Middle East and Africa Overview of ASP.NET 2.0.
Advertisements

Master Pages, User Controls, Site Maps, Localization Svetlin Nakov Telerik Corporation
Introducing new web content management tools for Priority...
Unit 5: Building Presentation Layer Applications with ASP.NET 2.0.
Telerik Software Academy HTML Basics.
Navigation Controls MacDonald Ch. 11 MIS 424 MIS 424 Professor Sandvig Professor Sandvig.
Performed by:Gidi Getter Svetlana Klinovsky Supervised by:Viktor Kulikov 08/03/2009.
1 Agenda Overview Review Roles Lists Libraries Columns.
Course Content, Evaluation, Exams Telerik Software Academy ASP.NET Web Forms.
Creating and Running Your First C# Program Telerik Software Academy Telerik School Academy.
1 Designing & Developing Web- Based Solutions in ASP.NET Week 3 Website Navigation & Resources.
Web Site Navigation How to get around in an ASP.NET web application 1Web Site Navigation.
JavaScript & jQuery the missing manual Chapter 11
Ch6:creating consistent looking web sites. Master pages Master page defines a combination of fixed content and content place holder to hold the web page(.aspx)
Forms Authentication, Users, Roles, Membership Svetlin Nakov Telerik Corporation
CMS I – BASIC WEB EDITING INTRODUCTION TO THE CMS Presented By: Rodneikka Scott, MS – Implementation Project Manager Lila Elliott, MA – Manager Client.
Copyright © Eric Liria Web Site Builder This application allows you to build and manage web sites. It provides the following functionnalities: use.
Chapter 7 – Navigation Dr. Stephanos Mavromoustakos.
Joe Hummel, PhD Dept of Mathematics and Computer Science Lake Forest College
Unleash the Power of jQuery Doncho Minkov Telerik Software Academy academy.telerik.com Senior Technical Trainer
Microsoft ASP.NET Beginning Object-Oriented Web Design Bryan Jenks © Integrated Ideas 2005.
1 CS 3870/CS 5870: Note 19 SiteMap and AJAX Lab 8.
Unleash the Power of jQuery Learning & Development Team Telerik Software Academy.
JS Course Program, Evaluation, Exams, Resources Telerik Software Academy JavaScript Fundamentals.
Adxstudio Portals Training
1 CS 3870/CS 5870: Note 18 SiteMap Prog8. Test 2 50 Points Thursday, Nov 12 2:00 PM – 4:00 PM Lab
Adxstudio Portals Training
ASP.NET Rehab AlFallaj. Manualy type the following code for iframe tag in the aspx source code.
Marco Bellinaso Senior Trainer & Consultant Code Architects Srl Building Dynamic Navigation Systems with Visual Studio 2005 and ASP.NET 2.0.
A Lap Around New Enhancements for Web Developers in Visual Studio 2005 Alexander Holy Developer Evangelist, Microsoft EMEA
Module 10: Data Access in ASP.NET. Overview Overview of the ASP.NET Data Access What is Data Access List of Data Source Control What is Data Bound How.
Easy Site Navigation Getting organized, staying organized Creating custom site-navigation controls Using Menu, TreeView, and SiteMenuPath controls Make.
XP New Perspectives on Macromedia Dreamweaver MX 2004 Tutorial 5 1 Adding Shared Site Elements.
Main Concepts of Web Testing Telerik Software Academy Software Quality Assurance.
Developer Exam Preparation Thom Robbins Bryan Soltis
S'n'D Course Program, Evaluation, Exams, Resources Doncho Minkov Telerik Software Academy academy.telerik.com Technical Trainer
JS Course Program, Evaluation, Exams, Resources Doncho Minkov Telerik Software Academy academy.telerik.com Technical Trainer
Making the Most of Search in SharePoint 2013 Christina Wheeler.
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 1 Getting Started with ASP.NET Objectives Why ASP? To get familiar with our IDE (Integrated Development Environment ), Visual Studio. Understand.
Kendo UI ASP.NET MVC Wrappers
Creating and Processing Web Forms
DHTML.
Internet Made Easy! Make sure all your information is always up to date and instantly available to all your clients.
NoSQL Databases NoSQL Concepts Databases Telerik Software Academy
Cms Full-featured Flexible Web Content Management System for All Your Needs.
Windows System Administration
ASP.NET AJAX – Basics Svetlin Nakov Telerik Corporation
Google APIs and Facebook API
CMS I – BASIC WEB EDITING INTRODUCTION TO THE CMS
Unleash the Power of jQuery
Using ASP.NET Master Pages
Kendo UI ASP.NET MVC Wrappers
Objectives Design a form Create a form Create text fields
© 2016, Mike Murach & Associates, Inc.
Website Navigation.
Prepared for Md. Zakir Hossain Lecturer, CSE, DUET Prepared by Miton Chandra Datta
Reaching more customers with accessible Metro style apps using HTML5
CS 3870 Prog6 Roles Management Due Monday, November 5 Group Assignment.
State management & Master Pages in asp.net
CS 3870/CS 5870 Prog 6 Site Map.
CHƯƠNG IX: SITE NAVIGATION & USER CONTROL
Module 10: Creating a Web Application with Web Forms
Building ASP.NET Applications
Web Design and Development
Web Development Using ASP .NET
Menu.
NAVIGATION CONTROLS.
Active server pages (ASP.NET)
Website Navigation.
Presentation transcript:

Site Maps and Navigation * 4/13/201807/16/96 Site Maps and Navigation Using ASP.NET Navigation Controls and Site Maps Svetlin Nakov Telerik Software Academy academy.telerik.com (c) 2005 National Academy for Software Development - http://academy.devbg.org. All rights reserved. Unauthorized copying or re-distribution is strictly prohibited.*

Table of Contents Site Navigation and Site Maps Web.sitemap * 4/13/201807/16/96 Table of Contents Site Navigation and Site Maps Web.sitemap Menu, TreeView, SiteMapPath Controls SiteMapDataSource (c) 2005 National Academy for Software Development - http://academy.devbg.org. All rights reserved. Unauthorized copying or re-distribution is strictly prohibited.*

Site Navigation

Site Navigation Site maps and navigation controls provide an easy way to create navigation in ASP.NET Site map Describes the logical structure of a site Built in support for XML Site Map Object model Programming API for accessing the Site Map SiteMapDataSource Used for data binding

What is Site Map? Site Map A way to describe and store the logical structure of the site A tree-like data structure Visual Studio and ASP.NET support Site Maps stored in XML files To use another storage mechanism you must use a custom SiteMapProvider

XML Site Map Create an XML file named Web.sitemap in the application root Automatically detected by the default ASP.NET SiteMapProvider Add a siteMapNode element for each page in your Web site Nest siteMapNode elements to create a hierarchy Should have only one root siteMapNode element

Web.sitemap – Example <?xml version="1.0" encoding="utf-8" ?> <siteMapNode title="Home" description="Home" url="~/Default.aspx"> <siteMapNode title="Products" description= "Our products" url="~/Products.aspx" /> <siteMapNode title="Hardware" description= "Hardware choices" url="~/Hardware.aspx" /> <siteMapNode title="Software" description= "Software choices" url="~/Software.aspx" /> </siteMapNode> … </siteMap>

siteMapNode Attributes Title – a friendly name of the node (page) Description – used as a tool tip description in Site Map controls URL – the URL of the page Usually starting with "~/" meaning the application root

Site Map Controls Site Map Controls Menu TreeView SiteMapPath

Site Navigation & Controls

Menu Control The <asp:Menu> is a fully functional menu Customizable visual styles Images, effects, direction, … But it puts inline CSS styles Two modes Static – all of the menu is visible Dynamic – visible only when the mouse pointer is over some of the MenuItem-s

Menu Control (2) StaticDisplayLevels MaximumDynamicDisplay The number of statically displayed levels starting from the root MaximumDynamicDisplay The number of dynamically displayed levels after the last of the static ones Element onclick() event Navigation to another page Postback to the same page

TreeView Control TreeView is a control used to display data in a hierarchical view Supports settings for various images and visual adjustments Supports navigation and postback We can create nodes at design time or through code behind We can fill the nodes on demand (when there is lots of data) Used together with SiteMapDataSource

SiteMapPath Control Allows the user to see where he is in the site hierarchy Displayed in a straightforward fashion We can set: PathDirection – RootToCurrent and CurrentToRoot PathSeparator – a separator between the levels in the hierarchy ParentLevelsDisplayed – how many parent elements to display

SiteMapDataSource SiteMapPath has integrated support for Site Map (it reads automatically Web.sitemap) A SiteMapDataSource object is used to bind the Web.sitemap to a navigation control First drop one on the page Set the DataSourceID property of the bound control to point to the SiteMapDataSource ShowStartingNode – show hide the root

Navigation Controls Live Demo

Navigation based on Users and Roles Site Maps and Security Navigation based on Users and Roles

Navigation and Security To hide all restricted pages from the navigation menu put the following in Web.config: To filter menu items based on logged in user / role use the OnMenuItemDataBound event <siteMap defaultProvider="secureProvider"> <providers> <add name="secureProvider" type="System.Web.XmlSiteMapProvider" siteMapFile="Web.sitemap" securityTrimmingEnabled="true" /> </providers> </siteMap>

Filtering the Menu Items Filtering the menu items loaded from Web.sitemap base on custom logic: protected void NavigationMenu_MenuItemDataBound( object sender, MenuEventArgs e) { if (ShouldRemoveItem(e.Item.Text)) e.Item.Parent.ChildItems.Remove(e.Item); } private bool ShouldRemoveItem(string menuText) // Custom filtering logic …

Site Maps and Security Live Demo

Site Maps and Navigation ? ? ? ? ? ? ? ? ? http://academy.telerik.com

Exercises Create a Web application with two-levels of site navigation with the following structure: Home Offices Bulgaria Sofia, Varna, Plovdiv U.K. London, Bristol, Manchester About Contacts Use master pages, menus, breadcrumbs and site map.

Free Trainings @ Telerik Academy "Web Design with HTML 5, CSS 3 and JavaScript" course @ Telerik Academy html5course.telerik.com Telerik Software Academy academy.telerik.com Telerik Academy @ Facebook facebook.com/TelerikAcademy Telerik Software Academy Forums forums.academy.telerik.com