SAMS ASP.NET Evolution (2004).pdf

(1795 KB) Pobierz
1015570563.003.png
Dan Kent
ASP . NET
E VOLUTION
800 East 96th Street, Indianapolis, Indiana 46240
1015570563.004.png 1015570563.005.png
ASP.NET Evolution
Copyright © 2004 by Sams Publishing
All rights reserved. No part of this book shall be reproduced, stored in a
retrieval system, or transmitted by any means, electronic, mechanical, photo-
copying, recording, or otherwise, without written permission from the
publisher. No patent liability is assumed with respect to the use of the infor-
mation contained herein. Although every precaution has been taken in the
preparation of this book, the publisher and author assume no responsibility
for errors or omissions. Nor is any liability assumed for damages resulting
from the use of the information contained herein.
International Standard Book Number: 0-672-32647-7
Library of Congress Catalog Card Number: 2004091250
Printed in the United States of America
First Printing: June 2004
7 6 5 4
Associate Publisher
Michael Stephens
Acquisitions Editor
Neil Rowe
Development Editor
Mark Renfrow
Managing Editor
Charlotte Clapp
Project Editor
Tonya Simpson
Copy Editor
Jessica McCarty
4321
Indexer
Mandie Frank
Trademarks
All terms mentioned in this book that are known to be trademarks or service
marks have been appropriately capitalized. Sams Publishing cannot attest to
the accuracy of this information. Use of a term in this book should not be
regarded as affecting the validity of any trademark or service mark.
Proofreader
Tonya Fenimore
Technical Editor
Doug Holland
Warning and Disclaimer
Every effort has been made to make this book as complete and as accurate as
possible, but no warranty or fitness is implied. The information provided is
on an “as is” basis. The author and the publisher shall have neither liability
nor responsibility to any person or entity with respect to any loss or damages
arising from the information contained in this book or from the use of the
CD or programs accompanying it.
Publishing Coordinator
Cindy Teeters
Multimedia Developer
Dan Scherf
Bulk Sales
Sams Publishing offers excellent discounts on this book when ordered in
quantity for bulk purchases or special sales. For more information, please
contact
U.S. Corporate and Government Sales
1-800-382-3419
corpsales@pearsontechgroup.com
For sales outside of the U.S., please contact
International Sales
1-317-428-3341
international@pearsontechgroup.com
Book Designer
Gary Adair
1015570563.006.png
Contents at a Glance
Introduction .................................................................................. 1
1
Getting Started .............................................................................. 3
2
The Online Community Application .................................................... 11
3
Exploring the Code ........................................................................ 25
4
Experimenting with the Code ........................................................... 69
5
Improving the User Interface ............................................................ 91
6
Improving the Modules ................................................................. 135
7
Managing Members ..................................................................... 169
8
Keeping Members Under Control .................................................... 207
9
Improving the Code ..................................................................... 247
10
Extending the Application .............................................................. 295
Index ....................................................................................... 345
1015570563.001.png
Table of Contents
Introduction
1
1
Getting Started 3
What You Need to Run the Application ......................................................... 3
Versions of the Application on the CD-ROM ........................................... 4
STEP-BY-STEP GUIDE: Installing the Application ................................. 4
Copying the Source Code Files .......................................................... 4
STEP-BY-STEP GUIDE: Setting Up the Web Application ......................... 5
STEP-BY-STEP GUIDE: Compiling the Source Code .............................. 6
Setting Up the Database .................................................................. 7
Checking the Application Configuration ................................................ 8
Copying the WebControl Client Script Files ............................................ 9
Testing the Application ..................................................................... 9
Troubleshooting ..................................................................................... 9
Access Is Denied Microsoft.Web.UI.WebControls .......................... 9
Directory Not Found Exception for C:\Inetpub\wwwroot\community\
global\OJB.NET\repository.xml ............................................. 9
SQL Server Does Not Exist or Access Denied ...................................... 10
Could Not Load Type ...................................................................... 10
Moving On .......................................................................................... 10
2
The Online Community Application 11
What Does the Online Community Application Do? ........................................ 11
Members .................................................................................... 13
Modules ..................................................................................... 14
Global Module Instances ................................................................ 16
Adding Information to Module Instances ............................................. 18
Member Settings .......................................................................... 19
Search ....................................................................................... 22
Moving On .......................................................................................... 23
1015570563.002.png
Zgłoś jeśli naruszono regulamin