1. Trang chủ
  2. » Công Nghệ Thông Tin

Build your own ASP NET4 website using CSharp and VB 4th edition

834 1,8K 0

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Định dạng
Số trang 834
Dung lượng 33,67 MB

Nội dung

Pantone: CMYK: BUILD YOUR OWN ASP.NET WEBSITE Grey scale PANTONE Orange 021 C PANTONE 2955 C CMYK O, 53, 100, CMYK 100, 45, 0, 37 Black 50% Black 100% USING C# & VB BY CRISTIAN DARIE WYATT BARNETT & TIM POSEY 4TH EDITION THE ULTIMATE ASP.NET BEGINNER’S GUIDE Summary of Contents Foreword xxi Preface xxiii Introducing ASP.NET and the NET Platform ASP.NET Basics 27 VB and C# Programming Basics 47 Constructing ASP.NET Web Pages 97 Building Web Applications 159 Using the Validation Controls 235 Database Design and Development 273 Speaking SQL 317 ADO.NET 363 10 Displaying Content Using Data Lists 435 11 Managing Content Using GridView and DetailsView 463 12 Advanced Data Access 507 13 Security and User Authentication 569 14 Working with Files and Email 615 15 Introduction to LINQ 655 16 Introduction to MVC 671 17 ASP.NET AJAX 701 A Web Control Reference 723 B Deploying ASP.NET Websites 763 Index 775 BUILD YOUR OWN ASP.NET WEBSITE USING C# & VB BY CRISTIAN DARIE WYATT BARNETT TIM POSEY 4TH EDITION iv Build Your Own ASP.NET Website Using C# & VB by Cristian Darie, Wyatt Barnett, and Tim Posey Copyright © 2011 SitePoint Pty Ltd Expert Reviewer: Pranav Rastogi Editor: Sarah Broomhall Product Editor: Simon Mackie Index Editor: Michelle Combs Technical Editor: Ricky Onsman Cover Design: Alex Walker Printing History: Latest Update: Fourth Edition: September First Edition: April 2004 Second Edition: October 2006 Third Edition: September 2008 2011 Notice of Rights All rights reserved No part of this book may be reproduced, stored in a retrieval system or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embodied in critical articles or reviews Notice of Liability The author and publisher have made every effort to ensure the accuracy of the information herein However, the information contained in this book is sold without warranty, either express or implied Neither the authors and SitePoint Pty Ltd., nor its dealers or distributors, will be held liable for any damages to be caused either directly or indirectly by the instructions contained in this book, or by the software or hardware products described herein Trademark Notice Rather than indicating every occurrence of a trademarked name as such, this book uses the names only in an editorial fashion and to the benefit of the trademark owner with no intention of infringement of the trademark Published by SitePoint Pty Ltd 48 Cambridge Street Collingwood VIC Australia 3066 Web: www.sitepoint.com Email: business@sitepoint.com ISBN 978-0-9870908-6-7 (print) ISBN 978-0-9871530-3-6 (ebook) Printed and bound in the United States of America v About the Authors Cristian Darie is a software engineer with experience in a wide range of modern technologies, and the author of numerous technical books, including the popular Beginning E-Commerce series He initially tasted programming success with a prize in his first programming contest at the age of 12 From there, Cristian moved on to many other similar achievements, and is now studying distributed application architectures for his PhD Wyatt Barnett leads the in-house development team for a major industry trade association in Washington DC When not slinging obscene amounts of C# and SQL at a few exceedingly large monitors, he is most often spotted staring at HDTV and other forms of entertainment in local watering holes Tim Posey is a long-time developer and a passionate educator Armed with a B.S in Computer Science and an M.B.A in Finance, he has traversed many industries, consulting for multiple corporations in banking, insurance, energy, and various e-commerce industries As a serial entrepreneur, he mentors local startups and non-profit organizations He serves as a senior software engineer at a Fortune 1000 company and an Adjunct Professor of Finance for the American Public University System His favorite pastime is watching Alabama football He may be contacted at tim@timposey.net About the Technical Editor Ricky Onsman is an Australian freelance web designer and jack of all trades With a background in information and content services, he built his first website in 1994 for a disability information service and has been messing about on the web ever since He is the president of the Web Industry Professionals Association About SitePoint SitePoint specializes in publishing fun, practical, and easy-to-understand content for web professionals Visit http://www.sitepoint.com/ to access our books, newsletters, articles, and community forums To my family and friends —Cristian Darie To my Father, whose guidance got me this far —Wyatt Barnett For LJ and Erin —Tim Posey Table of Contents Foreword xxi Preface xxiii Who Should Read This Book xxiii What’s in This Book xxiv Where to Find Help xxviii The SitePoint Forums xxviii The Book’s Website xxviii The SitePoint Newsletters xxix The SitePoint Podcast xxix Your Feedback xxix Acknowledgments xxx Conventions Used in This Book xxx Code Samples xxx Tips, Notes, and Warnings xxxi Chapter Introducing ASP.NET and the NET Platform What is ASP.NET? Installing the Required Software Installing Visual Web Developer 2010 Express Edition Installing SQL Server Management Studio Express Writing Your First ASP.NET Page 11 Getting Help 25 Summary 25 787 I identity columns, 287, 290, 296, 299 identity increment, 287 IDENTITY property, 287, 289–290, 291, 410 identity seed, 287 If statements, 69 IIf statement, 526 IIS, permissions, 617–618 Image control, 114 ImageButton control, 112–113 ImageField control, 478 ImageMap control, 114–115 images, in emails, 646–647, 650 ImageUrl attribute, 113 img tag, 114, 646, 650 Import directive, 32, 45, 92 IN, 341 IN operator, 332–333 Inactive mode, 115 incrementing variables, 73 IndexOutOfRangeException, 220 inheritance, 84–85, 93 initialization, 57 inline code, 35–36 inline expressions, 35, 36 Insert method, 193 INSERT query, 405–411 INSERT statement, 352–353 InsertCommand property, 563 inserting elements, 115 InsertItemTemplate, 498 instance methods, 622 instantiating a class, 82 int data type, 285 integer data type, 58 Integrated Security attribute, 367, 371 IntelliSense, 169–170 Internet Explorer debugging in, 16, 173 disabling JavaScript, 242 setting as default, 17 Is Nothing, 188 IsBodyHtml property, 640, 649 IsPathRooted, 635 IsPostBack property, 403–404 IsValid property, 242–244, 265 ItemCommand event, 442–444 ItemDeleted event, 491 ItemDeleting event, 491 ItemInserted event, 491 ItemInserting event, 491 ItemStyle property, 460 ItemTemplate, 389, 438, 439, 498 ItemUpdated event, 491 ItemUpdating event, 491, 500 ItemUpdating method, 501 J JavaScript AJAX library, 703 browser support, 239 data typing, 59 disabling, 241–242 DOM scripting and, 702 file location, 164 in script tags, 35 security issues, 571 validation and, 236–237 joining tables, 337–338 jQuery, 164, 720–721 788 K keys data, 483, 503 foreign, 301–302, 308–311, 312–314, 354 multi-column, 289, 316 numeric vs non-numeric, 289 primary, 288–290, 292 KeywordFilter property, 127 L Label control about, 15 adding in Design view, 184–185, 186 adding text using, 107, 110 namespace differences, 109 with Button control, 111 Language attribute (Page directive), 33, 212 language attribute (script tag), 34–35 language, specifying in Visual Web Developer, 162, 206 LEN function, 345 less than ([...]... controls in ASP. NET Appendix B: Deploying ASP. NET Websites Here you’ll be shown, step by step, how to use Visual Web Developer and how to move your website from your development environment to a web hosting service and make it live on the Internet It also covers tips for choosing a reliable web host, ASP. NET deployment gotchas, and hints for using the SQL Server Hosting Toolkit to migrate your database... the NET framework, introducing many new features that build upon its predecessor to improve performance, security, and interoperability with the latest browsers Best of all, it comes available with new development tools, including Visual Web Developer 2010 Express Edition and SQL 2 Build Your Own ASP. NET 4 Website Using C# & VB Server 2008 R2 Express Edition, both of which are free! These tools enable... somewhere, and starting with the web is a wise choice ASP. NET allows you to build dynamic websites, web applications and web services As a developer, you know and understand that there as many different types of web application as there are web applications themselves, and you need a powerful and flexible framework that will allow you to build them, without having to reinvent the wheel each time ASP. NET... transition to learning ASP. NET By the end of this book, you should be able to successfully download and install Visual Web Developer 2010 Express Edition, and use it to create basic ASP. NET pages You’ll also learn how to install and run Microsoft SQL Server 2008 R2 Express Edition, create database tables, and work with advanced, dynamic ASP. NET pages that query, insert, update, and delete information... of each technology and tool Let’s begin! What is ASP. NET? ASP. NET is a sophisticated and powerful web development framework If you’ve never used ASP. NET before, it’s likely to take you some time and patience to grow accustomed to it Development with ASP. NET requires not only an understanding of HTML and web design, but a firm grasp of the concepts of object oriented programming and development Fortunately,... Developer 2010 Express Edition and Microsoft SQL Server 2008 R2 Express Edition Finally, you’ll create a simple ASP. NET page to make sure that everything’s running and properly configured Chapter 2: ASP. NET Basics In this chapter, you’ll create your first useful ASP. NET page We’ll explore all the components that make up a typical ASP. NET page, including directives, controls, and code Then, we’ll walk... ask, some people answer, and most people do a bit of both Sharing your knowledge benefits others and strenghtens the community A lot of interesting and experienced web designers and developers hang out there It’s a good way to learn new stuff, have questions answered in a hurry, and generally have a blast The Book’s Website Located at http://www.sitepoint.com/books/aspnet4/, the website that supports... secure your web applications with ASP. NET We’ll discuss the various security models available, including IIS, Forms, Windows, and Windows Live ID, and explore the roles that the Web.config and XML files can play This chapter will also introduce you to the ASP. NET membership model and login controls Chapter 14: Working with Files and Email In this chapter, we’ll look at the task of accessing your server’s... presentation and more on your behalf This book provides you with everything you need to know to skill up in ASP. NET development with Web Forms technology It’s a fantastic learning tool, written in an approachable and informative way I strongly recommend you pick up your copy of this book, download the free Visual Web Developer Express tools, and start coding in ASP. NET You’ll be amazed at what you can build, ... 762 Appendix B Deploying ASP. NET Websites 763 ASP. NET Hosting Considerations 763 Using Visual Web Developer Express to Deploy ASP. NET Websites 764 Deploying MVC Sites and Web Applications 767 ASP. NET Deployment “Gotchas” 769 Using the SQL Server Hosting Toolkit

Ngày đăng: 30/05/2016, 00:10

TỪ KHÓA LIÊN QUAN