Books & Videos

Table of Contents

  1. Chapter 1 Introductory Topics

    1. Which web projectWeb Site Project model should I choose?

      1. Solution
        1. Web Site Projects Versus Web ApplicationWeb Application Projectcompared to Web Site projectWeb Site Projectcompared to Web Application Project Projects
        2. Creating Web Projects
          1. Creating a Web Site ProjectcreatingWeb Site projectsWeb Site projectcreating
          2. Creating a Web Application ProjectcreatingWeb Application projectsWeb Application projectcreating
    2. Web Site projectpublishingpublishingWeb Site projectHow do I deploy my web site?

      1. Solution
    3. How do I choose a third-party web hostthird-party web hostingexplained?

      1. Solution
        1. Narrowing the Field
          1. Backupsbackupsthird-party web hosting
          2. Reliabilityreliabilitythird-party web hosting
          3. Deployment and Management
          4. Statisticsstatisticsreports from third-party web hosting services
          5. Securitysecuritythird-party web hosting
        2. Special Needs
        3. Free Stufffree stuffthird-party web hosting
    4. How do I use source controlsource control?

      1. Solution
        1. The Elements of Source Control
          1. The Repositoryrepositoriessource control
          2. Labelinglabelingsource control
          3. Branchingbranchingsource control
        2. Who Should Use Source Control?
        3. Source Control Toolstoolssource control
    5. How do I go about using open source codeopen source code?

      1. Solution
        1. Open Source Licensing
        2. Finding Open Source .NET Resourcesresourcesopen source .NET
        3. Recommended Open Source Projectsresourcesopen source projects
    6. Where can I find more information aboutresourcesASP.NET ASP.NETfinding information aboutASP.NET?

      1. Solution
        1. Searching for Information
        2. Google GroupsUSENET newsgroupsGoogle Groups
        3. The ASP.NETASP.NETweb site Web Site
        4. ASP.NET-focusedASP.NETblogs BlogsblogsASP.NET
        5. Reference BooksbooksASP.NETresourcesreference books
    7. Summary

  2. Chapter 2 .NET 2.0 core libraries.NET 2.0 Core Libraries

    1. How do I use strings.NET 2.0 core librariesstringsstringsabout?

      1. Solution
    2. How do I displaydisplayingobjects as strings an objectobjectsas strings as a stringstringsconversion from objects?

      1. Solution
      2. Discussion
    3. How do I displaydisplayingformatted strings formatted strings?

      1. Solution
        1. How Powerful is String.FormatString.Format commanduses of?
      2. Discussion
    4. How do I use genericsgenerics.NET 2.0 core libraries?.NET 2.0 core librariesgenerics

      1. Solution
    5. How do I filterfilteringgeneric collections items in a generic collectiongeneric collectionsfiltering?

      1. Solution
    6. How can I get more use out of my custom logic?

      1. Solutions
        1. Using Generic Methodsgeneric methodsreusing with collections
        2. Using Reusable Delegatesdelegatesreusing
    7. How do I convert generic listsgeneric listsconverting to classes to specific classesclassesconverting from generic lists?

      1. Solution
    8. How do I concatenateconcatenatingdelimited strings from object properties delimited stringsdelimited stringsconcatenating from object properties from object propertiesobject propertiesconcatenating as delimited strings?

      1. Solution
      2. Discussion
    9. .NET 2.0 core librariescollectionsHow do I batch operationsbatch operationslarge collections with large collectionscollectionsbatch operations?

      1. Solutions
        1. The Naïve Solution
          1. The Naïve Solution’s Pitfalls
        2. The BatchIterator ClassBatchIterator classexplained Solution
    10. How do I choose the right collectioncollectionschoosing?

      1. Solutions
        1. The Array
        2. The ArrayListArrayList collection typeabout and the ListList collection typeabout<T>
        3. The HashtableHashtable collection typeabout and the DictionaryDictionary collection typeabout
        4. SortedList collection typeaboutSortedList and SortedDictionarySortedDictionary collection typeabout
        5. QueueQueue collection typeabout
        6. StackStack collection typeabout
    11. Summary

  3. Chapter 3 Data Accessdata access

    1. How can I get started using ADO.NET?ADO.NETdata accessdata accessADO.NET

      1. Solution
      2. Discussion
    2. How do I configureconfiguringdatabase connections my databasedatabasesconfiguring connections connection?data accessconfiguring database connections

      1. Solution
    3. How do I readreadingdata from databases data from my databasedatabasesreading data from?data accessreading data from databases

      1. Solution
    4. How do I sortsortingdata and filterfilteringdata data?data accesssorting and filtering data

      1. Solution
      2. Discussion
    5. How do I fill a DropDownListDropDownListfilling from database tables from a database tabledatabase tablesfilling DropDownLists?data accessfilling DropDownList from database tables

      1. Solution
    6. How can I perform data bindingdata bindingusing DataSource control without having to write all that repetitive code?DataSource controldata bindingdata accessdata binding

      1. Solution
    7. How do I displaydisplayingdatabase tables the contents of a database tabledatabase tablesdisplaying contents?data accessdisplaying database tables

      1. Solution
      2. Discussion
    8. How do I allow the modification of a single recordrecordsmodifying single?data accessmodifying single records

      1. Solution
    9. How can I data bindingwithout SqlDataSourcedata bind without using the SqlDataSource?data accessdata binding

      1. Solution
    10. Summary

  4. Chapter 4 Pushing the Boundaries of the GridViewGridView control

    1. 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

      1. Solution
      2. Discussion
    2. How do I sort on multiple columnscolumnssorting multiple?GridView controlsorting on multiple columns

      1. Solution
      2. Discussion
    3. How do I display the sort statesort stateGridView control?GridView controlsort state

      1. Solution
      2. Discussion
    4. How do I implement custom pagingpagingGridView control?GridView controlcustom paging

      1. Solution
      2. Discussion
    5. 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

      1. Solution
      2. Discussion
        1. Numeric Formattingnumeric formattingExcel and FormulæformulæExcel
    6. Summary

  5. Chapter 5 form validationForm Validation

    1. How do I validate form inputinputforms validating?form validationform input

      1. Solution
      2. Discussion
    2. How do I validate multiple forms?form validationmultiple forms

      1. Solution
    3. How do I set up custom validation?form validationcustom validation

      1. Solution
      2. Discussion
    4. How do I perform custom client-side validationclient-side validationforms?form validationclient-side validation

      1. Solution
      2. Discussion
    5. How do I build my own validator controlvalidator controlsbuilding?form validationbuilding validator controls

      1. Solution
    6. How do I perform client-side validationclient-side validationcustom validator controls with my custom validator control?form validationclient-side validation

      1. Solution
        1. Understanding the Client Validation Functionfunctionsclient validation
        2. Embeddingembeddingclient validation functions the Client Validation Function
        3. Registering the Client Validation Function
    7. Summary

  6. Chapter 6 Maintaining Statestates

    1. How do I maintain per-request stateper-request stateweb applications in a web application?web applicationsper-request statesstatesper-request states in web applications

      1. Solution
    2. 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

      1. Solution
    3. How can I maintain session statesession statesreboots in a web farm using a databaserebootsmaintaining session states?statessession states across reboots

      1. Solution
        1. ConfiguringconfiguringSQL servers SQL ServerSQL Serverconfiguring
        2. ConfiguringconfiguringASP.NET ASP.NETASP.NETconfiguring
      2. Discussion
    4. Where should I store application stateapplication statesstoring?statesstoring application states

      1. Solutions
        1. Storing Data in Static Variablesstatic variablesstoring application state information
        2. Storing Data in the Cachecachestoring application state information
        3. Storing Data in Application Variablesglobal datastoringapplication variablesstoring global data
    5. What’s the cleanest way to accessaccessingview state a pagepagesaccessing view state’s view state?view stateaccessingstatesaccessing view state

      1. Solution
      2. Discussion
    6. 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

      1. Solution
      2. Discussion
    7. Summary

  7. Chapter 7 Membership and Access Controlaccess control

    1. What’s the easiest way to addaddingmembership membershipmembershipadding to my site?access controlmembership

      1. Solution
      2. Discussion
    2. How do I allow users to registerregisteringusers for my site?access controlregistering users

      1. Solution
      2. Discussion
    3. How do I managemanagingusers users on my site?access controlmanaging users

      1. Solution
    4. How do I require users to log inloginabout?access controllogin

      1. Solution
      2. Discussion
    5. recoveringforgotten passwordsHow do I grant access to users who have forgottenforgotten passwordsrecovering their passwordspasswordsforgotten?access controlforgotten passwords

      1. Solution
    6. How do I displaydisplayingcontent based on roles contentcontentdisplaying based on roles based on rolesrolesdisplaying content?access controldisplaying content based on roles

      1. Solution
    7. Summary

  8. Chapter 8 Component-based Developmentweb form development

    1. How can I use master pagesmaster pagesabout?web form developmentmaster pages

      1. Solution
      2. Discussion
    2. 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

      1. Solution
      2. Discussion
        1. Using a Strongly Typed Propertystrongly typed propertiesusing
        2. Handling Multiple Master Pages
    3. 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

      1. Solution
      2. Discussion
    4. How do I use URLsURLsin master pages in a master pagemaster pagesURLs in?web form developmentURLs in master pages

      1. Solutions
        1. Using Absolute URLsabsolute URLsmaster pages
        2. Using the ResolveClientUrl MethodResolveClientUrl methodmaster pages
        3. Using URL RebasingURL rebasingmaster pages
        4. The Ideal Approach
    5. 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

      1. Solution
      2. Discussion
    6. 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

      1. Solution
      2. Discussion
    7. How do I treat user controlsuser controlsas components as componentscomponentsuser controls as?web form developmentuser controls as components

      1. Solution
    8. How do I embedembeddingresources in components resourcesresourcesembedding in components into my components?web form developmentembedding resources in components

      1. Solution
    9. Summary

  9. Chapter 9 ASP.NET and web standardsWeb Standards

    1. What are all these span tagsspan tagsHTML output doing in my HTML outputHTML outputspan tags?web standardsspan tags

      1. Solution
      2. Discussion
    2. How do I obtain DataListDataList classobtaining functionality of without tables-style functionality without using a table?web standardsDataList-style functionality

      1. Solution
      2. Discussion
    3. How do I use ASP.NET’s fancy menusmenususing without the fancy HTML?web standardsmenus

      1. Solution
      2. Discussion
    4. How do I make sense of the CSSCSSweb standards maze produced by the CSS Friendly menumenusCSS?web standardsCSS

      1. Solution
      2. Discussion
        1. Simple CSS InheritanceinheritanceCSS
        2. CSS Inheritance and TablestablesCSS inheritance
        3. CSS Development Toolsdevelopment toolsCSS
        4. Getting Back to that Menu …
    5. Summary

  10. Chapter 10 AjaxAjaxhistory of and JavaScriptJavaScriptJavaScripthistory of

    1. How can I writewritingJavaScript better JavaScriptJavaScriptwriting?

      1. Solution
      2. Discussion
    2. How can librarieslibrariesJavaScript make writingwritingJavaScript robust, cross-platform JavaScriptJavaScriptlibraries easier?

      1. Solution
      2. Discussion
    3. How do I use Microsoft's ASP.NET AJAXAjaxusingAjax?

      1. Solution
    4. How do I perform partial pagepagesrendering renderingrenderingpagespage renderingpartial?Ajaxpartial page rendering

      1. Solution
      2. Discussion
    5. How do I show progress during a partial page render?

      1. Solution
      2. Discussion
    6. How do I periodically refreshrefreshingUpdatePanels an UpdatePanelUpdatePanelsrefreshing?Ajaxrefreshing UpdatePanels

      1. Solution
      2. Discussion
    7. How do I work with generated IDsgeneratedIDsgenerated IDsAjax?Ajaxgenerated IDs

      1. Solution
      2. Discussion
    8. Where can I get some fancy ASP.NET controlscontrolsin ASP.NET?AjaxASP.NET controls

      1. Solution
    9. How can I debugdebuggingJavaScript JavaScriptJavaScriptdebugging?

      1. Solutions
        1. Using Visual StudioVisual StudioJavaScript debugging
        2. Using FirebugFirebugJavaScript debugging
        3. Using Framework Toolsframework toolsJavaScript debugging
        4. Using FiddlerFiddlerJavaScript debugging
    10. Summary

  11. Chapter 11 Working with Emailemail

    1. How do I send a plain-text emailplain-text emailssending?emailsending plain-text emails

      1. Solution
    2. How do I send an HTML emailHTML emailsending?emailsending HTML email

      1. Solution
      2. Discussion
    3. How do I attachattachmentsemail a file to my email?emailattaching files to email

      1. Solution
      2. Discussion
    4. How do I send personalized form lettersform letterssending via email?emailsending personalized form letters

      1. Solution
      2. Discussion
    5. How do I allow users to submitsubmittingcontent via email contentcontentsubmitting via email via email?emailsubmitting content via email

      1. Solution
      2. Discussion
    6. How do I send an email without waiting for it to complete?emailsending without waiting for completion

      1. Solution
    7. Summary

  12. Chapter 12 Rendering Binary Contentbinary content

    1. How do I writewritingbinary content binary content?binary contentwriting simple

      1. Solution
      2. Discussion
    2. How do I writewritingraw data to response raw data to the response?binary contentwriting raw data to response

      1. Solution
      2. Discussion
    3. How do I request an HttpHandlerHttpHandler classrequestingbinary contentrequesting HttpHandler?

      1. Solutions
        1. Using a Custom HttpHandler
        2. Using a Generic Handlergeneric handlersusing
    4. How do I writewritingnon-text binary data non-text binary data?binary contentwriting non-text binary data

      1. Solution
        1. Understanding Content Typescontent typesabout
        2. Writing Binary Content
    5. How do I renderrenderingsimple bars simple barsbar graphsrendering?binary contentrendering simple bars

      1. Solution
    6. How do I create a real bar graphbar graphscreating handlerhandlersreal bar graphs?binary contentreal bar graph handlers

      1. Solution
    7. How can I improve the qualityqualitydynamic images of my dynamic imagesdynamic imagesquality?binary contentdynamic image quality

      1. Solution
      2. Discussion
    8. 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

      1. Solution
    9. Summary

  13. Chapter 13 Handling Errorserror handling

    1. How can I handlehandlingexceptions exceptionsexceptionshandling in my code?error handlingexceptions

      1. Solution
    2. How can I handle errors in my web siteweb siteserror handling?error handlingweb sites

      1. Solutions
        1. Handling Exceptions Via Health Monitoringhealth monitoringexception handling
        2. Specifying Exception Handling in the global.asaxglobal.asax fileexception handling and Web.configWeb.config fileexception handling Files
        3. Handling Errors Via HttpModuleHttpModule classerror handling
    3. How can I use a pre-built exception handlingexception handlingpre-built strategy?error handlingpre-built exception handling

      1. Solution
    4. What’s the best way to writewritinglog files a log filelog fileswriting?error handlingwriting log files

      1. Solution
    5. How do I debugdebugginglog4net log4netlog4netdebugging?error handlingdebugging log4net

      1. Solution
    6. How do I perform tracingtracingerror handling?error handlingtracing

      1. Solution
    7. Summary

  14. Chapter 14 Configurationconfiguration

    1. How do I storestoringbasic configuration settings and retrieveretrievingbasic configuration settings basic settings?configurationbasic settings

      1. Solution
    2. How do I storestoringconnection strings connection stringsconnection stringsstoring?configurationstoring connection strings

      1. Solution
    3. How do I retrieve settings declaratively?configurationretrieving settings declaratively

      1. Solution
    4. How do I create a custom configuration section?Web.config filecustom configuration sectionconfigurationcustom configuration section in Web.config

      1. Solution
    5. How can I simplify my Web.configWeb.config filesimplifying file?configurationsimplifying Web.config

      1. Solution
      2. Discussion
    6. How can I manage Web.configWeb.config filemanaging values values between deployment environments?configurationmanaging Web.config values

      1. Solution
    7. How can I encryptencryptionWeb.config sections a section of my Web.configWeb.config fileencrypting sections file?configurationencrypting Web.config

      1. Solution
    8. Summary

  15. Chapter 15 Performance and Scalingoptimization

    1. How do I determine what to optimize?optimizationabout

      1. Solution
    2. How can I decrease the size of the view state?view statesize ofoptimizationview state

      1. Solutions
        1. Compressingcompressingview state the View State
        2. StoringstoringViewState on server View State on the Serverserversstoring view state on
    3. How can I decrease the bandwidthbandwidthoptimization that my site uses?optimizationbandwidth

      1. Solutions
        1. Enabling HTTP Compression SupportHTTP compression supportIIS 6.0 in IIS 6
        2. Enabling HTTP Compression SupportHTTP compression supportASP.NET in an ASP.NET Application
    4. How can I improve the speedspeedoptimization of my site?optimizationspeed of site

      1. Solution
    5. How do I refresh my cachecacherefreshing when the data changes?optimizationrefreshing the cache

      1. Solution
    6. How can I gain more control over the ASP.NET cacheASP.NET cacheoptimization?optimizationASP.NET cache

      1. Solution
      2. Discussion
    7. How do Idatabasesoptimizing queries speedqueriesoptimization up my database queries?optimizationdatabase queries

      1. Solution
      2. Discussion
        1. Lack of Indexesindexesabout
        2. Incorrect Indexes
        3. Poorly WrittenwritingQueries Queriesquerieswriting
        4. Deadlocksdeadlocksabout
        5. Hardware Issues
    8. How can I troubleshoottroubleshootingquery speed a slow queryspeedqueriesqueriesspeed?optimizationquery speed

      1. Solution
        1. Verifying the Problem
        2. Checking for Large Result Sets
        3. Checking the Query Planquery planchecking
        4. Eliminating Cursorscursorseliminating
        5. The Problem with SELECT *SELECT *problem with
        6. Accessing More Information
    9. Summary

  16. Chapter 16 Search Engine OptimizationSearch Engine Optimization

    1. How does GoogleGooglepage ranking rank pagespage rankingGoogle?Search Engine Optimizationpage ranking in Google

      1. Solution
    2. How do I ensure search engines review only search-relevant content?Search Engine Optimizationsearch-relevant content

      1. Solutions
        1. Removing View State
        2. Movingmovingview state View State
        3. Creating an HttpModuleHttpModule classmoving ViewState
    3. How do I rewriterewritingURLs my URLsURLsrewriting for human readability for human readability?Search Engine Optimizationrewriting URLs

      1. Solutions
        1. URL Rewriting Via IIS
        2. URLURLsrewriting via .NET code RewritingrewritingURLs Via .NET Code
        3. URL Rewritingrewritingcustom 404 pages with a Custom 404 Page404 pagesrewriting
    4. How do I ensure my web pagesweb pagesvisibility do search engines are visible to search engines?Search Engine Optimizationweb page visibility

      1. Solution
    5. How do I ensure my web pages produce descriptive search results?Search Engine Optimizationdescriptive search results

      1. Solution
    6. Summary

  17. Chapter 17 Advanced Topics

    1. How can I tell what’s going on behind the scenes?Reflectortroubleshooting usingtroubleshootingusing Reflector

      1. Solution
    2. How do I build a screen scraperscreen scrapersbuilding?

      1. Solution
        1. Scraping the Contentcontentscraping
        2. Displayingdisplayingscraped content the Scraped Content
      2. Discussion
    3. How do I build a data access layerdata access layerbuilding?

      1. Solution
      2. Discussion
    4. How do I automatically generategeneratingdata access layer a data access layerdata access layergenerating?

      1. Solution
        1. The AutoScaffold PageAutoScaffold pageabout
        2. The Scaffold Control
        3. The Utility Controls
        4. The SubSonic Data Access Layerdata access layerSubSonic
        5. AddingaddingSubSonic to projects SubSonic to your Project
          1. Installing SubSonic
          2. Configuring Web.config
          3. Generatinggeneratingdata access layer your DALdata access layergenerating
      2. Discussion
    5. Summary