Library tutorials & articles
New features for web developers in ASP.NET 2.0
- Working with Data
- Consistent Page Design with Master Pages
- Security & Personalisation
- Configuration, Management & New Controls
Consistent Page Design with Master Pages
Consistent Page Design
Most Web sites maintain a consistent ‘look and feel' across the pages using standard sections of HTML or dynamic content that is injected into every page - perhaps using #include directives, or through user controls. In version 2.0, Microsoft has added a new feature called Master Pages which allows you to create the outline for all your pages as a single template file, and then insert the content that differs on each page into this. You can include headers, images, menus, and other content in the master page, and edit the master page at any time to change the appearance of the whole site.
Shown below is what happens in Visual Studio 2005 when you are working on a section of content that uses the common UI from a master page: the master page content is visible, but greyed out because it cannot be edited in this view.
Furthermore, by taking advantage of the new navigation controls included in version 2.0, you can easily add dynamic menus and other features to the master page, or indeed any other ASP.NET page. There are Menu and TreeView controls to provide the visible menu in the page, and a SiteMapPath control that automatically provides a ‘breadcrumb trail' indication of the location of the current page within the site's page hierarchy. All these are powered by a special data source control named SiteMapDataSource which works with an XML file that defines the structure of your site. There's also the new ImageMap control which makes it easy to create clickable image maps, and handle user interaction as they click on the image map.
Other new features help to make page design easier, and support visitors with special needs. You can add custom styles to sets of UI controls as a single operation through the new Themes feature; make it easier for visually-impaired visitors to access the site by taking advantage of new accessibility support features of many of the ASP.NET server controls; and use the built-in Internationalization features to support multiple languages.
Related articles
Related discussion
-
Profile Class does not work after Translation
by converter2009 (1 replies)
-
what is the SQL Server Provider
by hayperaktib (1 replies)
-
Very Urgent regarding deleting the images from a folder
by Nanosteps (6 replies)
-
Java Script, File uploading on ftp server using java script code
by h_c_a_andersen (2 replies)
-
sharepoint calendar web part with events from sql table
by converter2009 (2 replies)
Related podcasts
-
StackOverflow uses ASP.NET MVC - Jeff Atwood and his technical team
Scott chats with Jeff Atwood of CodingHorror.com and most recently, StackOverflow.com. Jeff and Joel Spolsky and their technical team have created a new class of application using ASP.NET MVC. What works, what doesn't, and how did it all go down?
Events coming up
-
Mar
15
DevWeek 2010
London, United Kingdom
DevWeek is Europe’s leading independent conference for software developers, database professionals and IT architects, and features expert speakers on a wide range of topics, including .NET 4.0, Silverlight 3, WCF 4, Visual Studio 2010, REST, Windows Workflow 4, Thread Synchronization, ASP.NET 4.0, SQL Server 2008 R2, LINQ, Unit Testing, CLR & C# 4.0, .NET Patterns, WPF 4, F#, Windows Azure, ADO.NET, Entity Framework, Debugging, T-SQL Tips & Tricks, and more.
This thread is for discussions of New features for web developers in ASP.NET 2.0.