Friday, February 16, 2007

Build Your Own ASP.NET 2.0 Web Site Using C# & VB

Build Your Own ASP.NET 2.0 Web Site Using C# & VB
By Cristian Darie, Zak Ruvalcaba
Second Edition October 2006
Publisher: SitePoint
Pages: 712


Using a practical step-by-step approach, the authors introduce the ASP.NET framework, teach you about database design, and walk you through obtaining, installing and configuring all the freely available software you need to use ASP.NET 2.0. The second edition of this guide will help you get your database-driven ASP.NET web site up and running in no time. This book does not assume prior ASP.NET experience, and includes all code samples in both C# & VB.

ASP.NET is one of the most widely adopted and powerful web application platforms available today. It's becoming increasingly important for web developers to expand their skills and learn the ins and outs of this technology, which is now used by major organizations such as Accenture, Compaq, AIG, Disney, Adobe, Dell, Ford, and many others.
Using a practical step-by-step approach, the authors of Build Your Own ASP.NET 2.0 Web Site Using C# & VB, 2nd Edition show you how to obtain, install and configure the software you’ll need. They then introduce the ASP.NET framework, VB and C#, and guide you through the process of building a fully functional web application. All you need to get started is an understanding of HTML and the basics of web site design – you won’t need to spend a cent on software.

This second edition of this bestselling ASP.NET book has been completely revised for ASP.NET 2.0, with greatly expanded coverage of best practice techniques like code-behind, usage of Visual Web Developer and SQL Server Express Edition, and coverage of powerful new ASP.NET 2.0 functionality, including the GridView control and Master Pages.

Table Of Contents


  1. Preface

  2. Introducing ASP.NET and the .NET Platform

    • What is ASP.NET?

    • Installing the Required Software

      • Installing the Web Server

      • Installing the .NET Framework and the SDK

      • Configuring the Web Server

      • Installing SQL Server 2005 Express Edition

      • Installing SQL Server Management Studio Express

      • Installing Visual Web Developer 2005



    • Writing your First ASP.NET Page

    • Getting Help

    • Summary



  3. ASP.NET Basics

    • ASP.NET Page Structure

      • Directives

      • Code Declaration Blocks

      • Code Render Blocks

      • ASP.NET Server Controls

      • Server-side Comments

      • Literal Text and HTML Tags



    • View State

    • Working with Directives

    • ASP.NET Languages

      • Visual Basic

      • C#



    • Summary



  4. VB and C# Programming Basics

    • Programming Basics

      • Control Events and Subroutines

      • Page Events

      • Variables and Variable Declaration

      • Arrays

      • Functions

      • Operators

      • Conditional Logic

      • Loops



    • Object Oriented Programming Concepts

      • Objects and Classes

      • Properties

      • Methods

      • Classes

      • Constructors

      • Scope

      • Events

      • Understanding Inheritance

      • Objects In .NET

      • Namespaces



    • Using Code-behind Files

    • Summary



  5. Constructing ASP.NET Web Pages

    • Web Forms

    • HTML Server Controls

      • Using the HTML Server Controls



    • Web Server Controls

      • Standard Web Server Controls

      • List Controls

      • Advanced Controls



    • Web User Controls

      • Creating a Web User Control



    • Master Pages

    • Using Cascading Style Sheets (CSS)

      • Types of Styles and Style Sheets



    • Summary



  6. Building Web Applications

    • Introducing the Dorknozzle Project

    • Using Visual Web Developer

      • Meeting the Features



    • Executing your Project

      • Using Visual Web Developer’s Built-in Web Server

      • Using IIS



    • Core Web Application Features

      • Web.config

      • Global.asax

      • Using Application State

      • Working with User Sessions

      • Using the Cache Object

      • Using Cookies



    • Starting the Dorknozzle Project

      • Preparing the Sitemap

      • Using Themes, Skins, and Styles

      • Building the Master Page

      • Using the Master Page



    • Extending Dorknozzle

    • Debugging and Error Handling

      • Debugging with Visual Web Developer

      • Other Kinds of Errors

      • Custom Errors

      • Handling Exceptions Locally



    • Summary



  7. Using the Validation Controls

    • Introducing the ASP.NET Validation Controls

      • Enforcing Validation on the Server



    • Using Validation Controls

      • RequiredFieldValidator

      • CompareValidator

      • RangeValidator

      • ValidationSummary

      • RegularExpressionValidator

      • CustomValidator



    • Validation Groups

    • Updating Dorknozzle

    • Summary



  8. Database Design and Development

    • What is a Database?

    • Creating your First Database

      • Creating a New Database Using Visual Web Developer

      • Creating a New Database Using SQL Server Management
        Studio



    • Creating Database Tables

      • Data Types

      • Column Properties

      • Primary Keys

      • Creating the Employees Table

      • Creating the Remaining Tables

      • Populating the Data Tables



    • Relational Database Design Concepts

      • Foreign Keys

      • Using Database Diagrams

      • Implementing Relationships in the Dorknozzle Database

      • Diagrams and Table Relationships



    • Summary



  9. Speaking SQL

    • Reading Data from a Single Table

      • Using the SELECT Statement

      • Selecting Certain Fields

      • Selecting Unique Data with DISTINCT

      • Row Filtering with WHERE

      • Selecting Ranges of Values with BETWEEN

      • Matching Patterns with LIKE

      • Using the IN Operator

      • Sorting Results Using ORDER BY

      • Limiting the Number of Results with TOP



    • Reading Data from Multiple Tables

      • Subqueries

      • Table Joins



    • Expressions and Operators

    • Transact-SQL Functions

      • Arithmetic Functions

      • String Functions

      • Date and Time Functions



    • Working with Groups of Values

      • The COUNT Function

      • Grouping Records Using GROUP BY

      • Filtering Groups Using HAVING

      • The SUM, AVG, MIN, and MAX Functions



    • Updating Existing Data

      • The INSERT Statement

      • The UPDATE Statement

      • The DELETE Statement



    • Stored Procedures

    • Summary



  10. ADO.NET

    • Introducing ADO.NET

      • Importing the SqlClient Namespace

      • Defining the Database Connection

      • Preparing the Command

      • Executing the Command

      • Setting up Database Authentication

      • Reading the Data

      • Using Parameters with Queries

      • Bulletproofing Data Access Code

      • Using the Repeater Control



    • Creating the Dorknozzle Employee Directory

      • More Data Binding

      • Inserting Records

      • Updating Records

      • Deleting Records

      • Using Stored Procedures



    • Summary



  11. Displaying Content Using Data Lists

    • DataList Basics

    • Handling DataList Events

    • Editing DataList Items and Using
      Templates

    • DataList and Visual Web Developer

    • Styling the DataList

    • Summary



  12. Managing Content Using Grid View and Details View

    • Using the GridView Control

      • Customizing the GridView Columns

      • Styling the GridView with Templates, Skins, and CSS

      • Selecting Grid Records



    • Using the DetailsView Control

      • Styling the DetailsView



    • GridView and DetailsView Events

      • Entering Edit Mode

      • Using Templates

      • Updating DetailsView Records



    • Summary



  13. Advanced Data Access

    • Using Data Source Controls

      • Binding the GridView to a
        SqlDataSource

      • Binding the DetailsView to a
        SqlDataSource

      • Displaying Lists in DetailsView

      • More on SqlDataSource



    • Working with Data Sets and Data Tables

      • What is a Data Set Made From?

      • Binding DataSets to Controls

      • Implementing Paging

      • Storing Data Sets in View State

      • Implementing Sorting

      • Filtering Data



    • Updating a Database from a Modified DataSet

    • Summary



  14. Security and User Authentication

    • Basic Security Guidelines

    • Securing ASP.NET 2.0 Applications

      • Working with Forms Authentication



    • ASP.NET 2.0 Memberships and Roles

      • Creating the Membership Data Structures

      • Using your Database to Store Membership Data

      • Using the ASP.NET Web Site Configuration Tool

      • Creating Users and Roles

      • Changing Password Strength Requirements

      • Securing your Web Application

      • Using the ASP.NET Login Controls



    • Summary



  15. Working with Files and Email

    • Writing and Reading Text Files

      • Setting Up Security

      • Writing Content to a Text File

      • Reading Content from a Text File



    • Accessing Directories and Directory Information

      • Working with Directory and File Paths



    • Uploading Files

    • Sending Email with ASP.NET

      • Configuring the SMTP Server

      • Sending a Test Email

      • Creating the Company Newsletter Page



    • Summary




Appendix



  1. A. Web Control Reference

    • The WebControl Class

      • Properties

      • Methods



    • Standard Web Controls

      • AdRotator

      • BulletedList

      • Button

      • Calendar

      • CheckBox

      • CheckBoxList

      • DropDownList

      • FileUpload

      • HiddenField

      • HyperLink

      • Image

      • ImageButton

      • ImageMap

      • Label

      • LinkButton

      • ListBox

      • Literal

      • MultiView

      • Panel

      • PlaceHolder

      • RadioButton

      • RadioButtonList

      • TextBox

      • Xml



    • Validation Controls

      • CompareValidator

      • CustomValidator

      • RangeValidator

      • RegularExpressionValidator

      • RequiredFieldValidator

      • ValidationSummary



    • Navigation Web Controls

      • SiteMapPath

      • Menu

      • TreeView



    • HTML Server Controls

      • HtmlAnchor Control

      • HtmlButton Control

      • HtmlForm Control

      • HtmlGeneric Control

      • HtmlImage Control

      • HtmlInputButton Control

      • HtmlInputCheckBox Control

      • HtmlInputFile Control

      • HtmlInputHidden Control

      • HtmlInputImage Control

      • HtmlInputRadioButton Control

      • HtmlInputText Control

      • HtmlSelect Control

      • HtmlTable Control

      • HtmlTableCell Control

      • HtmlTableRow Control

      • HtmlTextArea Control





  2. Index




Sample Chapter: Here
Amazon Link:Build Your Own ASP.NET 2.0 Web Site Using C# & VB

Tuesday, February 13, 2007

Windows Forms 2.0 Programming (2nd Edition) (Microsoft .NET Development Series)

Windows Forms 2.0 Programming (2nd Edition) (Microsoft .NET Development Series)
Authors: Chris Sells, Michael Weinhardt
Publisher: Addison-Wesley Professional
Copyright: 2006
Format: Paper; 1296 pp
ISBN-10: 0321267966
ISBN-13: 9780321267962
Published: 05/16/2006

Windows Forms 2.0 Programming is the successor to the highly praised Windows Forms Programming in C#. This edition has been significantly updated to amalgamate the sheer mass of new and improved support that is encompassed by Windows Forms 2.0, the .NET Framework 2.0, and Visual Studio 2005. This is the one book developers need in order to learn how to build and deploy leading-edge Windows Forms 2.0 applications.


Readers will gain a deep understanding from Sells and Weinhardt’s practical, well-balanced approach to the subject and clear code samples.


  • Windows Forms 2.0 fundamentals, including forms, dialogs, data validation, help, controls, components, and rendering
  • Static and dynamic layout, snap lines, HTML-style flow and table layout, automatic resizing, and automatic cross-DPI scaling
  • Office 2003-style tool strip control coverage, including dynamic layout and custom rendering
  • Design-time integration with the Visual Studio 2005 Properties Window and Smart Tags
  • Resource management, strongly typed resources, and internationalization considerations
  • Strongly typed application and user settings
  • SDI, MDI, Single Instancing, Multiple-Instance SDI, Single-Instance MDI, database-centric, and document-centric applications
  • Databinding data-source management, drag-and-drop databinding, the BindingSource, the BindingNavigator, and applied databinding
  • Events, delegates, multithreaded UIs, long-running operations, simplified multithreading with the BackgroundWorker, and asynchronous web service calls
  • ClickOnce application development publishing, shell integration, and partial trust security
  • Best practices for developers transitioning from Windows Forms 1.0 and MFC


About the Authors

Chris Sells
is a program manager for the Connected Systems Division. He’s written several books, including Programming Windows Presentation Foundation (O’Reilly), Windows Forms Programming in C# (Addison-Wesley), and ATL Internals (Addison-Wesley). In his free time, Chris hosts various conferences and makes a pest of himself on Microsoft internal product team discussion lists. More information about Chris–and his various projects–is available at www.sellsbrothers.com.

Michael Weinhardt is a programmer/writer at Microsoft, working on the Windows Client SDK. Michael has coauthored a variety of articles with Chris, contributed to the “Wonders of Windows Forms” column at MSDN Online, reviewed several Windows technology books, and generally loves communicating the whys and wherefores of technology to his peers. Michael is sure that his parents attribute his fascination in technology to their purchase of an Amiga 1000 in the mid-80s. They would be right.


Table of Contents
About the Authors xxv
Foreword xxvii
Preface xxxi

Chapter 01 Hello, Windows Forms 1
Chapter 02 Forms 41
Chapter 03 Dialogs 99
Chapter 04 Layout 137
Chapter 05 Drawing Basics 179
Chapter 06 Drawing Text 231
Chapter 07 Advanced Drawing 265
Chapter 08 Printing 291
Chapter 09 Components 327
Chapter 10 Controls 353
Chapter 11 Design-Time Integration: The Properties Window 399
Chapter 12 Design-Time Integration: Designers and Smart Tags 453
Chapter 13 Resources 505
Chapter 14 Applications 549
Chapter 15 Settings 579
Chapter 16 Data Binding Basics 629
Chapter 17 Applied Data Binding 681
Chapter 18 Multithreaded User Interfaces 737
Chapter 19 ClickOnce Deployment 775

Appendix A What’s New in Windows Forms 2.0 829
Appendix C Delegates and Events 867
Appendix D Component and Control Survey 881
Appendix E Drag and Drop 901
Appendix F Document Management 927

Bibliography 957
Index 961


Sample Chapter: Chapter 14 Applications

Amazon Link: Windows Forms 2.0 Programming (2nd Edition) (Microsoft .NET Development Series)

Monday, February 12, 2007

ASP.NET 2.0 Web Parts in Action

ASP.Net 2.0 Web Parts in Action: Building Dynamic Web Portals (In Action)
Author: Darren Neimke
Foreword by Andres Sanabria

Published October, 2006
344 pages
ISBN: 1-932394-77-X


The static Web is going out of style. Its click-and-wait user experience is giving way to dynamic personalized content and intuitive interactions. With ASP 2.0, a web developer can compose a page out of separate working parts "Web Parts" that independently communicate with the server to produce rich interactive portals like Yahoo!, Google/ig, and Live.com. The new Web Parts API makes it easy to centrally manage a portal's parts.

ASP.NET 2.0 Web Parts in Action is packed with annotated code, diagrams, and crystal-clear discussions. You'll develop a sample project from design to deployment, adding content zones, personalization, and a custom look-and-feel. Since any website is invariably a work-in-progress, you'll appreciate learning how to upgrade your portals on the fly. Along the way you'll pick up handy code instrumentation techniques and a few tricks to help your portals manage themselves. As an added bonus, the book introduces the Microsoft Ajax Library ("Atlas") and shows how you can add Ajax to a web part. You¹ll even create a Live.com gadget.

This book is for web developers familiar with ASP.NET.




contents


Foreword


Preface


Acknowledgments


About this book


About the title


About the cover illustration

Part 1 Portals and web parts


1 Introducing portals and web parts

1.1 Introduction

1.2 What is a portal?

1.3 Using the ASP.NET 2.0 portal framework

1.4 Introducing Adventure Works Cycles database

1.5 Summary

2 Web parts: the building blocks of portals

2.1 Introduction

2.2 Exploring web parts

2.3 Understanding the WebPart class

2.4 Understanding web part internals

2.5 Applying themes and styles

2.6 Adding web parts to the Adventure Works Solution

2.7 Summary

3 Using web part connections

3.1 Dissecting connections

3.2 Creating simple connections

3.3 Sorting out connection types

3.4 Using transformers

3.5 Adventure Works—implementing connections for HR

3.6 Summary

4 The Web Part Manager

4.1 Introduction

4.2 The Page Lifecycle

4.3 Page display modes

4.4 Web part authorization

4.5 Importing and exporting web parts

4.6 Using WebPartManager with master pages

4.7 Adventure Works—additions to the HR code

4.8 Summary

5 Working with zones

5.1 Introduction

5.2 Classifying zones

5.3 Custom rendering of zones

5.4 Using WebPartChrome

5.5 Explaining parts

5.6 Zone additions to the Adventure Works Portal

5.7 Summary

6 Understanding personalization

6.1 Introduction

6.2 Defining personalization

6.3 Personalization in action

6.4 Lifecycle of personalization data

6.5 Working with personalization data

6.6 Personalization of the Adventure Works portal

6.7 Summary

Part 2 Extending the portal framework


7 Creating an enhanced editing experience

7.1 Introduction

7.2 Supplying custom editing controls

7.3 Improving usability

7.4 Summary

8 Useful portal customizations

8.1 Introduction

8.2 Making common tasks accessible

8.3 Versioned personalization data

8.4 Creating an area for tool zones

8.5 Adding a CatalogZone dialog

8.6 Summary

9 Portal management

9.1 Introduction

9.2 Preparing for deployment

9.3 Recovering from errors gracefully

9.4 When all else fails

9.5 Summary

10 Into the future

10.1 Introduction

10.2 Reflecting on the portal

10.3 A world of web portals

10.4 Ajax behavior

10.5 Introducing Live.com—a modern mega-portal

10.6 Call to action



appendix Creating the Adventure Works project


index






Sample Chapter 2:Web parts: the building blocks of portals
Sample Chapter 9:Portal management

Amazon Link: ASP.Net 2.0 Web Parts in Action: Building Dynamic Web Portals (In Action)

Thursday, February 1, 2007

XAML in a Nutshell

Title: XAML in a Nutshell
First Edition: March 2006
Series: In a Nutshell
ISBN 10: 0-596-52673-3
ISBN 13: 9780596526733
Pages: 302


Book description
The Windows Vista operating system will support applications that employ graphics now used by computer games--clear, stunning, and active. The cornerstone for building these user interfaces is XAML, the XML-based markup language that works with Windows Presentation Foundation, Vista's new graphics subsystem. This book teaches you everything necessary to design the new generation of user interfaces and .NET applications, with plenty of examples to get you started.


When Microsoft releases Windows Vista, the new operating system will support applications that employ graphics now used by computer games--clear, stunning, and active. The cornerstone for building these new user interfaces is XAML ("Zammel"), the XML-based markup language that works with Windows Presentation Foundation (WPF), Vista's new graphics subsystem.

An acronym for Extensible Application Markup Language, XAML offers a wealth of new controls and elements with exciting capabilities, including animation and rendering of 3D graphics. Windows developers are already jazzed by the possibilities of using XAML for fixed and flow format documents like PDF and HTML, 2D and 3D vector-based graphics, form development, animation, audio and video, transparent layering, and a lot more. Many feel that XAML will eliminate the need for multiple file formats or plug-ins (read: Flash), while lowering development costs and reducing time to market.

The problem is, most developers don't know XAML. While it is fairly easy to understand, you still need a quick guide to bring you up to speed before Vista's release, and that's where this book's simple, no nonsense approach comes in.

XAML in a Nutshell covers everything necessary to design user interfaces and .NET applications that take advantage of WPF. Prerequisites such as Microsoft's new unified build system, MSBuild, and core XAML constructs and syntax--including shortcuts--are all presented with plenty of examples to get you started. The Core XAML Reference section lets you dig even deeper into syntax rules and attributes for all XAML elements with a series of quick-reference chapters. This section divides XAML elements into logical categories of elements, controls, shapes and geometry, layout, animations, and transformations for easy reference.

XAML in a Nutshell helps you learn, firsthand, how to use this XML-based markup language to implement the new generation of user interface graphics. As one reviewer noted, "Strong code examples and an efficient, conversational style take the tedium out of learning XAML and make the subject understandable--even interesting."




Table of Contents
Chapter 1

Preface
I. Introducing XAML


1. Introducing XAML
The Benefits of XAML
What XAML Is Not
XAML Development Resources
2. Getting Started with XAML
XAML Prerequisites
Defining XAML Applications
Building XAML Applications
XAML Applications and Visual Studio

II. XAML Concepts

3. The Basics of XAML
Core XAML Syntax
Elements
Attributes
Attached Properties
Binding Properties
codebehind
4. Layout and Positioning
StackPanel and DockPanel
Using Width and Alignment
Margins and Padding
Grid
Absolute Positioning
5. Resources
Using Resources
Using Styles
Triggers
6. Storyboards and Animations
Storyboards
Controlling Animations
Animation Using Key Frames

III. Core XAML Reference

7. Elements
8. Controls
Base Control Reference
Common Event Reference
Core Control Reference
9. Shapes and Geometry
10. Layout
11. Animations and Transformations
12. Events

Routing Strategies
Event Argument Reference
Event Reference

IV. Appendixes

A. System.Windows.Controls
B. System.Windows.Documents
C. System.Windows.Shapes
D. System.Windows
E. System.Windows.Media
F. System.Windows.Input.ApplicationCommands
G. Predefined Colors
H. XAML Interface in Code
Index


Amazon link: XAML in a Nutshell
Sample Chapter: