The ASP.NET 2.0 Anthology: 101 Essential Tips, Tricks & Hacks

An ASP.NET 2.0 book that just helps you get things done!

This book contains a collection of 101 best practice, object oriented solutions that you can easily adapt to your own projects.

Coverage includes:

  • Working with text, numbers, dates & times
  • Accessing data with ADO.NET
  • Form validation under multiple scenerios
  • Page, Session and application state tips
  • Access control in web applications
  • Producing standards compliant output
  • Enhancing applications with AJAX
  • Working with Email
  • Handling errors and debugging
  • Performance tips and pitfalls
  • And much more!

    As a bonus, all book buyers get download access to the code archive which has all the examples in the book in both C# and VB.

    Back Cover

    "A comprehensive collection of ready-to-use ASP.NET solutions!"

    The ASP.NET 2.0 Anthology: 101 Essential Tips, Tricks & Hacks is a collection of solutions to the most common ASP.NET problems. Let five world-class ASP.NET professionals guide you through countless practical solutions using C# or VB.

    Learn to:

    • Add interactivity with Ajax and JavaScript.
    • Build a database access layer for improved portability.
    • Sidestep the ASP.NET framework when required.
    • Build data-driven applications quickly with SubSonic.
    • Gracefull handle errors effectively.
    • Work with email: send, parse, & manage attachments.
    • Use component-based development for flexibility.
    • Make your applications search engine friendly.
    • Validate data input on forms.
    • Create a user registration system.
    • Use Master Pages to simplify development.
    • Work with binary content.
    • Improve the speed of your site, decrease bandwidth usage and speed up database queries
    • And lots more...
  • 1115527595
    The ASP.NET 2.0 Anthology: 101 Essential Tips, Tricks & Hacks

    An ASP.NET 2.0 book that just helps you get things done!

    This book contains a collection of 101 best practice, object oriented solutions that you can easily adapt to your own projects.

    Coverage includes:

  • Working with text, numbers, dates & times
  • Accessing data with ADO.NET
  • Form validation under multiple scenerios
  • Page, Session and application state tips
  • Access control in web applications
  • Producing standards compliant output
  • Enhancing applications with AJAX
  • Working with Email
  • Handling errors and debugging
  • Performance tips and pitfalls
  • And much more!

    As a bonus, all book buyers get download access to the code archive which has all the examples in the book in both C# and VB.

    Back Cover

    "A comprehensive collection of ready-to-use ASP.NET solutions!"

    The ASP.NET 2.0 Anthology: 101 Essential Tips, Tricks & Hacks is a collection of solutions to the most common ASP.NET problems. Let five world-class ASP.NET professionals guide you through countless practical solutions using C# or VB.

    Learn to:

    • Add interactivity with Ajax and JavaScript.
    • Build a database access layer for improved portability.
    • Sidestep the ASP.NET framework when required.
    • Build data-driven applications quickly with SubSonic.
    • Gracefull handle errors effectively.
    • Work with email: send, parse, & manage attachments.
    • Use component-based development for flexibility.
    • Make your applications search engine friendly.
    • Validate data input on forms.
    • Create a user registration system.
    • Use Master Pages to simplify development.
    • Work with binary content.
    • Improve the speed of your site, decrease bandwidth usage and speed up database queries
    • And lots more...
  • 39.95 Out Of Stock
    The ASP.NET 2.0 Anthology: 101 Essential Tips, Tricks & Hacks

    The ASP.NET 2.0 Anthology: 101 Essential Tips, Tricks & Hacks

    The ASP.NET 2.0 Anthology: 101 Essential Tips, Tricks & Hacks

    The ASP.NET 2.0 Anthology: 101 Essential Tips, Tricks & Hacks

    Paperback(Reprint)

    $39.95 
    • SHIP THIS ITEM
      Temporarily Out of Stock Online
    • PICK UP IN STORE

      Your local store may have stock of this item.

    Related collections and offers


    Overview

    An ASP.NET 2.0 book that just helps you get things done!

    This book contains a collection of 101 best practice, object oriented solutions that you can easily adapt to your own projects.

    Coverage includes:

  • Working with text, numbers, dates & times
  • Accessing data with ADO.NET
  • Form validation under multiple scenerios
  • Page, Session and application state tips
  • Access control in web applications
  • Producing standards compliant output
  • Enhancing applications with AJAX
  • Working with Email
  • Handling errors and debugging
  • Performance tips and pitfalls
  • And much more!

    As a bonus, all book buyers get download access to the code archive which has all the examples in the book in both C# and VB.

    Back Cover

    "A comprehensive collection of ready-to-use ASP.NET solutions!"

    The ASP.NET 2.0 Anthology: 101 Essential Tips, Tricks & Hacks is a collection of solutions to the most common ASP.NET problems. Let five world-class ASP.NET professionals guide you through countless practical solutions using C# or VB.

    Learn to:

    • Add interactivity with Ajax and JavaScript.
    • Build a database access layer for improved portability.
    • Sidestep the ASP.NET framework when required.
    • Build data-driven applications quickly with SubSonic.
    • Gracefull handle errors effectively.
    • Work with email: send, parse, & manage attachments.
    • Use component-based development for flexibility.
    • Make your applications search engine friendly.
    • Validate data input on forms.
    • Create a user registration system.
    • Use Master Pages to simplify development.
    • Work with binary content.
    • Improve the speed of your site, decrease bandwidth usage and speed up database queries
    • And lots more...

  • Product Details

    ISBN-13: 9780980285819
    Publisher: SitePoint Pty, Limited
    Publication date: 09/28/2007
    Edition description: Reprint
    Pages: 500
    Product dimensions: 7.00(w) x 9.00(h) x 1.15(d)

    About the Author

    Allen has a master's degree in computer science from Shippensburg University. He's a Microsoft Certified Solution Developer. He regularly serves as an adjunct faculty member at various colleges in Maryland and Pennsylvania.

    Table of Contents

    • Preface
      • Who Should Read this Book?
      • What’s Covered in this Book?
      • The Book’s Web Site
      • The SitePoint Forums
      • The SitePoint Newsletters
      • Your Feedback
      • Conventions Used in this Book


    • Chapter 1: Introductory Topics
      • Which web projectWeb Site Project model should I choose?
        • Solution
          • Web Site Projects Versus Web ApplicationWeb Application Projectcompared to Web Site projectWeb Site Projectcompared to Web Application Project Projects
          • Creating Web Projects




      • Web Site projectpublishingpublishingWeb Site projectHow do I deploy my web site?
      • How do I choose a third-party web hostthird-party web hostingexplained?
        • Solution
          • Narrowing the Field
          • Special Needs
          • Free Stufffree stuffthird-party web hosting




      • How do I use source controlsource control?
        • Solution
          • The Elements of Source Control
          • Who Should Use Source Control?
          • Source Control Toolstoolssource control




      • How do I go about using open source codeopen source code?
        • Solution


      • Where can I find more information aboutresourcesASP.NET ASP.NETfinding information aboutASP.NET?
        • Solution


      • Summary


    • Chapter 2: .NET 2.0 core libraries.NET 2.0 Core Libraries
      • How do I use strings.NET 2.0 core librariesstringsstringsabout?
      • How do I displaydisplayingobjects as strings an objectobjectsas strings as a stringstringsconversion from objects?
      • How do I displaydisplayingformatted strings formatted strings?
        • Solution
        • Discussion


      • How do I use genericsgenerics.NET 2.0 core libraries?.NET 2.0 core librariesgenerics
      • How do I filterfilteringgeneric collections items in a generic collectiongeneric collectionsfiltering?
      • How can I get more use out of my custom logic?
        • Solutions


      • How do I convert generic listsgeneric listsconverting to classes to specific classesclassesconverting from generic lists?
      • How do I concatenateconcatenatingdelimited strings from object properties delimited stringsdelimited stringsconcatenating from object properties from object propertiesobject propertiesconcatenating as delimited strings?
      • .NET 2.0 core librariescollectionsHow do I batch operationsbatch operationslarge collections with large collectionscollectionsbatch operations?
        • Solutions
          • The Naïve Solution
          • The BatchIterator ClassBatchIterator classexplained Solution




      • How do I choose the right collectioncollectionschoosing?
        • Solutions


      • Summary


    • Chapter 3: Data Accessdata access
      • How can I get started using ADO.NET? ADO.NETdata accessdata accessADO.NET
      • How do I configureconfiguringdatabase connections my databasedatabasesconfiguring connections connection? data accessconfiguring database connections
      • How do I readreadingdata from databases data from my databasedatabasesreading data from? data accessreading data from databases
      • How do I sortsortingdata and filterfilteringdata data? data accesssorting and filtering data
      • How do I fill a DropDownListDropDownListfilling from database tables from a database tabledatabase tablesfilling DropDownLists? data accessfilling DropDownList from database tables
      • How can I perform data bindingdata bindingusing DataSource control without having to write all that repetitive code? DataSource controldata bindingdata accessdata binding
      • How do I displaydisplayingdatabase tables the contents of a database tabledatabase tablesdisplaying contents? data accessdisplaying database tables
      • How do I allow the modification of a single recordrecordsmodifying single? data accessmodifying single records
      • How can I data bindingwithout SqlDataSourcedata bind without using the SqlDataSource? data accessdata binding
      • Summary


    • Chapter 4: Pushing the Boundaries of the GridViewGridView control
      • How do I add a data-bound drop-downdata-bound drop-downsadding to a GridViewdrop-downsadding to a GridView to a GridView? GridView controldata-bound drop-down
      • How do I sort on multiple columnscolumnssorting multiple? GridView controlsorting on multiple columns
      • How do I display the sort statesort stateGridView control? GridView controlsort state
      • How do I implement custom pagingpagingGridView control? GridView controlcustom paging
      • How can I allow users to downloaddownloadingtabular data into Excel tabular tabular datadownloading into Excel data as a Microsoft ExcelExceldownloading tabular data file? GridView controldownloading tabular data into Excel
        • Solution
        • Discussion


      • Summary


    • Chapter 5: form validationForm Validation
      • How do I validate form inputinputforms validating? form validationform input
      • How do I validate multiple forms? form validationmultiple forms
      • How do I set up custom validation? form validationcustom validation
      • How do I perform custom client-side validationclient-side validationforms? form validationclient-side validation
      • How do I build my own validator controlvalidator controlsbuilding? form validationbuilding validator controls
      • How do I perform client-side validationclient-side validationcustom validator controls with my custom validator control? form validationclient-side validation
        • Solution


      • Summary


    • Chapter 6: Maintaining Statestates
      • How do I maintain per-request stateper-request stateweb applications in a web application? web applicationsper-request statesstatesper-request states in web applications
      • How can I maintainenablingsession states for web farms session statesession statesenabling for web farms in a web farm using a state serverweb farmsenabling session states? statesenabling session states for web farms
      • How can I maintain session statesession statesreboots in a web farm using a databaserebootsmaintaining session states? statessession states across reboots
        • Solution
        • Discussion


      • Where should I store application stateapplication statesstoring? statesstoring application states
        • Solutions


      • What’s the cleanest way to accessaccessingview state a pagepagesaccessing view state’s view state? view stateaccessingstatesaccessing view state
      • How can I make sure my custom controlcustom controlwith view state off works when view state is turned off? statescustom controls with view state off
      • Summary


    • Chapter 7: Membership and Access Controlaccess control
      • What’s the easiest way to addaddingmembership membershipmembershipadding to my site? access controlmembership
      • How do I allow users to registerregisteringusers for my site? access controlregistering users
      • How do I managemanagingusers users on my site? access controlmanaging users
      • How do I require users to log inloginabout? access controllogin
      • recoveringforgotten passwordsHow do I grant access to users who have forgottenforgotten passwordsrecovering their passwordspasswordsforgotten? access controlforgotten passwords
      • How do I displaydisplayingcontent based on roles contentcontentdisplaying based on roles based on rolesrolesdisplaying content? access controldisplaying content based on roles
      • Summary


    • Chapter 8: Component-based Developmentweb form development
      • How can I use master pagesmaster pagesabout? web form developmentmaster pages
      • How can my content pagecontent pagesoverriding data on master pages overrideoverridingdata on master pages datadataoverriding on master pages on my master pagemaster pagescontent pages overriding data on? web form developmentcontent pages overriding data on master pages
        • Solution
        • Discussion


      • How can I have my master pagemaster pagesinteractions with content pages interact with my content pagecontent pagesinteraction with master pages? web form developmentmaster page interactions with content pages
      • How do I use URLsURLsin master pages in a master pagemaster pagesURLs in? web form developmentURLs in master pages
        • Solutions


      • How do I modify header elementsheader elementsmodifying in master pages in a master pagemaster pagesmodifying header elements? web form developmentmodifying header elements in master pages
      • How do I use themesthemesusing in conjunction with CSS effectively in conjunction with CSSCSSusing themes in conjunction with? web form developmentusing themes in conjunction with CSS
      • How do I treat user controlsuser controlsas components as componentscomponentsuser controls as? web form developmentuser controls as components
      • How do I embedembeddingresources in components resourcesresourcesembedding in components into my components? web form developmentembedding resources in components
      • Summary


    • Chapter 9: ASP.NET and web standardsWeb Standards
      • What are all these span tagsspan tagsHTML output doing in my HTML outputHTML outputspan tags-web standardsspan tags
      • How do I obtain DataListDataList classobtaining functionality of without tables-style functionality without using a table? web standardsDataList-style functionality
      • How do I use ASP.NET’s fancy menusmenususing without the fancy HTML? web standardsmenus
      • How do I make sense of the CSSCSSweb standards maze produced by the CSS Friendly menumenusCSS? web standardsCSS
        • Solution
        • Discussion


      • Summary


    • Chapter 10: AjaxAjaxhistory of and JavaScriptJavaScriptJavaScripthistory of
      • How can I writewritingJavaScript better JavaScriptJavaScriptwriting?
      • How can librarieslibrariesJavaScript make writingwritingJavaScript robust, cross-platform JavaScriptJavaScriptlibraries easier?
      • How do I use Microsoft's ASP.NET AJAXAjaxusingAjax?
      • How do I perform partial pagepagesrendering renderingrenderingpagespage renderingpartial? Ajaxpartial page rendering
      • How do I show progress during a partial page render?
      • How do I periodically refreshrefreshingUpdatePanels an UpdatePanelUpdatePanelsrefreshing? Ajaxrefreshing UpdatePanels
      • How do I work with generated IDsgeneratedIDsgenerated IDsAjax? Ajaxgenerated IDs
      • Where can I get some fancy ASP.NET controlscontrolsin ASP.NET? AjaxASP.NET controls
      • How can I debugdebuggingJavaScript JavaScriptJavaScriptdebugging?
        • Solutions


      • Summary


    • Chapter 11: Working with Emailemail
      • How do I send a plain-text emailplain-text emailssending-emailsending plain-text emails
      • How do I send an HTML emailHTML emailsending? emailsending HTML email
      • How do I attachattachmentsemail a file to my email-emailattaching files to email
      • How do I send personalized form lettersform letterssending via email? emailsending personalized form letters
      • How do I allow users to submitsubmittingcontent via email contentcontentsubmitting via email via email? emailsubmitting content via email
      • How do I send an email without waiting for it to complete? emailsending without waiting for completion
      • Summary


    • Chapter 12: Rendering Binary Contentbinary content
      • How do I writewritingbinary content binary content? binary contentwriting simple
      • How do I writewritingraw data to response raw data to the response? binary contentwriting raw data to response
      • How do I request an HttpHandlerHttpHandler classrequestingbinary contentrequesting HttpHandler?
        • Solutions


      • How do I writewritingnon-text binary data non-text binary data? binary contentwriting non-text binary data
        • Solution


      • How do I renderrenderingsimple bars simple barsbar graphsrendering? binary contentrendering simple bars
      • How do I create a real bar graphbar graphscreating handlerhandlersreal bar graphs-binary contentreal bar graph handlers
      • How can I improve the qualityqualitydynamic images of my dynamic imagesdynamic imagesquality? binary contentdynamic image quality
      • How can I use a handlerhandlersimages to control accessaccessingimages with a handler to the imagesimagesaccess to with a handler on my site? binary contentcontrolling access to images with a handler
      • Summary


    • Chapter 13: Handling Errorserror handling
      • How can I handlehandlingexceptions exceptionsexceptionshandling in my code? error handlingexceptions
      • How can I handle errors in my web siteweb siteserror handling? error handlingweb sites
        • Solutions


      • How can I use a pre-built exception handlingexception handlingpre-built strategy-error handlingpre-built exception handling
      • What’s the best way to writewritinglog files a log filelog fileswriting? error handlingwriting log files
      • How do I debugdebugginglog4net log4netlog4netdebugging? error handlingdebugging log4net
      • How do I perform tracingtracingerror handling? error handlingtracing
      • Summary


    • Chapter 14: Configurationconfiguration
      • How do I storestoringbasic configuration settings and retrieveretrievingbasic configuration settings basic settings-configuration basic settings
      • How do I storestoringconnection strings connection stringsconnection stringsstoring? configurationstoring connection strings
      • How do I retrieve settings declaratively-configuration retrieving settings declaratively
      • How do I create a custom configuration section? Web.config filecustom configuration sectionconfigurationcustom configuration section in Web.config
      • How can I simplify my Web.configWeb.config filesimplifying file? configurationsimplifying Web.config
      • How can I manage Web.configWeb.config filemanaging values values between deployment environments? configurationmanaging Web.config values
      • How can I encryptencryptionWeb.config sections a section of my Web.configWeb.config fileencrypting sections file? configurationencrypting Web.config
      • Summary


    • Chapter 15: Performance and Scalingoptimization
      • How do I determine what to optimize? optimizationabout
      • How can I decrease the size of the view state? view statesize ofoptimizationview state
        • Solutions


      • How can I decrease the bandwidthbandwidthoptimization that my site uses? optimizationbandwidth
        • Solutions


      • How can I improve the speedspeedoptimization of my site? optimizationspeed of site
      • How do I refresh my cachecacherefreshing when the data changes? optimizationrefreshing the cache
      • How can I gain more control over the ASP.NET cacheASP.NET cacheoptimization? optimizationASP.NET cache
      • How do Idatabasesoptimizing queries speedqueriesoptimization up my database queries? optimizationdatabase queries
        • Solution
        • Discussion


      • How can I troubleshoottroubleshootingquery speed a slow queryspeedqueriesqueriesspeed? optimizationquery speed
        • Solution


      • Summary


    • Chapter 16: Search Engine OptimizationSearch Engine Optimization
      • How does GoogleGooglepage ranking rank pagespage rankingGoogle? Search Engine Optimizationpage ranking in Google
      • How do I ensure search engines review only search-relevant content-Search Engine Optimizationsearch-relevant content
        • Solutions


      • How do I rewriterewritingURLs my URLsURLsrewriting for human readability for human readability? Search Engine Optimizationrewriting URLs
        • Solutions


      • How do I ensure my web pagesweb pagesvisibility do search engines are visible to search engines? Search Engine Optimizationweb page visibility
      • How do I ensure my web pages produce descriptive search results? Search Engine Optimizationdescriptive search results
      • Summary


    • Chapter 17: Advanced Topics
      • How can I tell what’s going on behind the scenes? Reflectortroubleshooting usingtroubleshootingusing Reflector
      • How do I build a screen scraperscreen scrapersbuilding?
        • Solution
        • Discussion


      • How do I build a data access layerdata access layerbuilding?
      • How do I automatically generategeneratingdata access layer a data access layerdata access layergenerating?
        • Solution
          • The AutoScaffold PageAutoScaffold pageabout
          • The Scaffold Control
          • The Utility Controls
          • The SubSonic Data Access Layerdata access layerSubSonic
          • AddingaddingSubSonic to projects SubSonic to your Project


        • Discussion


      • Summary



    From the B&N Reads Blog

    Customer Reviews