This book is for anyone who wants to learn about using .NET for web interface design. Beginner or hobbyist .NET developers can certainly get a good foundation of .NET web interface design by going through this book from cover to cover. However, more seasoned .NET professionals, especially if they tend to steer away from the GUI of their projects, can also pick up a thing or two by focusing on certain chapters that appeal to them. This book is meant to take a reader from the beginning of a project to the completion of the interface design. Along the way, concepts are illustrated to show how the different pieces play together. So, anyone who really wants to understand the concepts presented in this book will be able to do so by reading the entire thing. However, this book should also serve as a good reference after you have read it or, in some cases, in place of reading it.
All of the early chapters provide useful information and examples for any web developer. Many of the concepts presented after Chapter 4 are more specifically targeted at .NET developers. In the later chapters, the target audience is .NET developers or, at least, people who want to become .NET developers. In those chapters, you should probably have at least a basic understanding of the .NET Framework and some experience with Visual Studio 2005 (or possibly Visual Studio 2003). If you are completely new to .NET, you may find it useful to pick up a beginning ASP.NET 2.0 book before delving too deeply into those chapters. If you want to learn about .NET 2.0 web interface design, you are the intended audience.
It should be noted that all of the .NET code samples in this book are in C#. However, this shouldn't limit other developers, such as VB.NET developers, from understanding the concepts or being able to replicate the code in their own projects. The actual managed code examples are pretty limited and, when they are used, they should be fairly easy to port over to VB.NET.
This book covers the concepts serious developers need to begin designing cool and consistent web layouts. The early chapters focus on general web design standards that you need to grasp in order to move into the later chapters. Specifically, these concepts are:
Basic web design considerations (colors, fonts, images, accessibility, and so on) (Chapter 2)
Photoshop basics to get you started making your own graphics and color schemes (Chapter 3)
Cascading Style Sheets (CSS) and their use in web design layout (Chapter 4)
When you finish these chapters, you will have the basic shell for the project that you will continue to develop throughout the book. You will have the header graphic, color scheme, and CSS layout that you will begin to incorporate .NET-specific concepts to in the later chapters. This includes:
How to make .NET controls render accessible CSS code rather than their default: tables (Chapter 5)
Using the built-in controls of .NET to create easily maintainable and consistent site navigation (and how to make them render CSS divs instead of tables) (Chapter 6)
Creating your web site template with Master Pages (Chapter 7)
Creating themes and skins to style your .NET controls (Chapter 8)
Applying themes to your projects through various approaches, including base classing (Chapter 9)
The final "regular" chapter ends with you building an entirely new mobile device theme using all of the concepts learned in the previous chapters. In Chapter 10, you will start with modifying your graphic to better fit the resolution of your mobile devices. You will also learn how to modify your stylesheets and apply them programmatically to be used only for this theme. You will have a new Master Page and an entirely new theme. You will also see one way of switching themes based on your criteria (in this example, your criterion will be whether your client browser is a mobile device).
Beyond these chapters, you will get a "forward look" at some of the new technologies coming down the pipeline that affect these some of the material you learned in the preceding chapters. In Appendix A, you will get a glimpse at the upcoming release for Visual Studio, codenamed "Orcas." This will almost exclusively focus on the new CSS features because they are the most relevant to the other chapters of the book, and there are so many new features regarding CSS management in this release that they warrant their own chapter (nested Master Pages are also included, but CSS takes up most of the appendix).
Finally, with Appendix B, the Visual Studio Codename "Orcas" discussion is extended to include Microsoft Silverlight. You will learn how to create drawing object, incorporate images, animate your objects, and affect the rendered output through your managed code.
If you read this book from cover to cover, you should end up with a really solid understanding of the current technologies for .NET developers to create consistent and accessible web interfaces, as well as a feeling of excitement for the new stuff that should be coming soon to a computer near you.
Table of contents
- About the Author
- 1. aesthNETics
2. Web Design 101
- 2.1. Design Basics
- 2.2. Accessibility
- 2.3. Summary
3. Photoshop: Cool Tips and Tricks for Developers
- 3.1. Prerequisites
- 3.2. Project Guidelines
- 3.3. Photoshop: An Overview
- 3.4. Your First Graphics
- 3.5. A Second Graphic
- 3.6. A Mobile Browser Graphic
- 3.7. Extending Your Photoshop Skills
- 3.8. Summary
4. Cascading Style Sheets (CSS)
- 4.1. Prerequisites
- 4.2. That Looks Like Table-Based Design
- 4.3. Creating a Stylesheet
- 4.4. Browser Check
- 4.5. Your Final CSS File
- 4.6. Summary
5. ASP.NET 2.0 CSS Friendly Control Adapters
- 5.1. What Is a CSS Friendly Control Adapter?
- 5.2. Installing the Control Adapters
5.3. Integrating the Control Adapters
- 5.3.1. A New Project
5.3.2. Adding the Control Adapters to an Existing Project
- 18.104.22.168. Step 1: Installing the CSS Friendly Control Adapters
- 22.214.171.124. Step 2: Creating a Reference Directory
- 126.96.36.199. Step 3: Importing the Directories and Files
- 188.8.131.52. Step 4: Using the Adapters!
- 5.3.3. Using the Control Adapters in Your Project
- 5.3.4. Is It Working?
- 5.3.5. Stylin' and Profilin'
- 5.4. For More Information
- 5.5. Summary
6. Consistent Navigation
- 6.1. Overview: ASP.NET Navigation Controls
- 6.2. Getting Started
- 6.3. The SiteMapDataSource Control
- 6.4. Using the CSS Friendly Control Adapters
- 6.5. Browser Check
- 6.6. Extra Credit: Breadcrumbs
- 6.7. Summary
7. Master Pages
- 7.1. How Did We Get Here?
- 7.2. What is a Master Page?
- 7.3. Enough Talk; Time to Code
- 7.4. Partial Classes
- 7.5. Passing Data between Master and Child
- 7.6. Setting the Master Page Globally
- 7.7. Programmatically Setting Master Pages
- 7.8. Nested Master Pages
- 7.9. One Last Concept
- 7.10. Bringing It All Together: Updating the surfer5 Project
- 7.11. Summary
- 8.1. What Are Themes?
- 8.2. Your First Theme!
8.3. CSS in Themes
- 8.3.1. Problem: The Way Themes Apply Included Stylesheets
- 8.3.2. Adding a CSS File to Your Theme
- 8.3.3. One Solution
- 8.3.4. Other Potential Solutions
- 8.3.5. A Final Thought on CSS in Themes
- 8.4. Skins
- 8.5. Images
- 8.6. Updating the surfer5 Project
- 8.7. Browser Check
- 8.8. Summary
9. Applying Themes
- 9.1. Before You Begin: Setting the Theme in the Master Page
- 9.2. The Default Approach: A Refresher
- 9.3. Partial Resolution #1: Setting Themes Programmatically
- 9.4. Partial Resolution #2: Setting It Globally
- 9.5. Partial Resolution #3: The Inherited Base Class
- 9.6. Updating the surfer5 Project
- 9.7. Summary
- 10. Bringing It All Together — A New Theme
A. Microsoft Visual Studio Codename "Orcas"
- A.1. Feels Like Home . . . Sort Of
A.2. CSS and Orcas
- A.2.1. The CSS Properties Window
- A.2.2. Adding New Style Definitions
- A.2.3. CSS Properties Windows Buttons and Settings
- A.2.4. Conflicts and Resolution
- A.2.5. Manage and Apply Styles
- A.2.6. Themes and the New CSS Tools
- A.2.7. Modifying a CSS Document
- A.2.8. The CSS Outline Window
- A.2.9. A Final Tip
- A.2.10. So What's Coming Next?
- A.2.11. Summary of CSS and Orcas
- A.3. Nested Master Pages
- A.4. Summary
B. An Introduction to Microsoft Silverlight
- B.1. Prerequisites
- B.2. About the Project
B.3. The Tick Tock Clock Project
- B.3.1. Step 1: Creating Your Project in Orcas
- B.3.2. Step 2: Setting Up the Dimensions
- B.3.3. Step 3: Drawing the Clock
- B.3.4. Step 4: Adding the Tick Marks
- B.3.5. Step 5: Adding the Clock Hands
- B.3.6. Step 6: Animating the Clock Hands
- B.3.7. Step 7: Setting the Time
- B.3.8. The Clock Project Code
- B.4. Silverlight Considerations
- B.5. Summary
- Title: Professional ASP.NET 2.0 Design: CSS, Themes, and Master Pages
- Release date: September 2007
- Publisher(s): Wrox
- ISBN: 9780470124482
You might also like
Kafka: The Definitive Guide, 2nd Edition
Every enterprise application creates data, whether it consists of log messages, metrics, user activity, outgoing messages, …
Designing Data-Intensive Applications
Data is at the center of many challenges in system design today. Difficult issues need to …
Building Microservices, 2nd Edition
Distributed systems have become more fine-grained as organizations shift from code-heavy monolithic applications to smaller, self-contained …
Hands-On Machine Learning with Scikit-Learn, Keras, and TensorFlow, 2nd Edition
Through a series of recent breakthroughs, deep learning has boosted the entire field of machine learning. …