Classicoutputcache

outputcache  时间:2021-05-18  阅读:()
907IndexSpecialCharactersandNumbers(!
=)notequaltooperator,37%characterindicatingUnittype,179URLencoding,269&character,159,269(&&)operator,798*characterregularexpressioncharacters,307SELECT*statement,461*.
*expression,304[]characters,307[^]characters,307|character,307(||)operator,798(||)oroperator,38+=operator,140(==)equaltooperator,37;(semicolon)character,19404NotFounderror,navigationerrors,413AaelementHTML,HTMLservercontrolclassfor,135XHTMLattributes,107overview,106redirectingusertonewwebpage,157relatedwebcontrolclasses,174atags,masterpagesandrelativepaths,403Abandonmethod,HttpSessionStateclass,274AbortPostBackfunction,JavaScript,848absolutepositioning,webpages,98absoluteExpirationparameter,775accesscontrolrules,formsauthentication,652AccessDataSourcecontrol,description,521accessibilityaddingeventsto.
NETclasses,59declaringmembervariable,52keywords,52keywords,methods,43–44accessingfiles.
SeefileaccessAccessKeypropertyTextBoxcontrol,183WebControlclass,177accessorsgetandsetaccessors,54–55propertyaccessors,54AccordioncontrolAutoSizeproperty,856choosingpanelinAccordion,853FadeTransitionsproperty,854FramesPerSecondproperty,856RequiredOpenedPaneproperty,854SelectedIndexproperty,854TransitionDurationproperty,856Accordioncontrol,Ajax,853–856Accountclass,statefuldesignexample,748–749AccountOperatorrole,defaultWindowsroles,665AccountUtilityclass,statelessdesignexample,749ActiveDirectoryMemberProviderclass,677ActiveStepIndexproperty,Wizardcontrol,336ActiveViewIndexproperty,MultiViewcontrol,330adaptiverendering,173INDEX908AdCreatedevent,AdRotatorcontrol,325addelement,web.
configfile,166AddmethodDateTimeclass,35TimeSpanclass,36AddNewItemcontextmenuitem,SolutionExplorer,800AddNewItemwindowcreatingcontentpage,393–394creatingwebsiteswithVisualStudio,92–93PlaceCodeinSeparateFileoption,92SelectMasterPageoption,93AddParameterbutton,ExpressionEditorwindow,826AddReferencedialog,742Addtab,UpdateWizarddialogbox,807AddTabledialog,runningSQLqueriesinVisualStudio,459addtag,attributesforconfiguringmembershipprovider,677AddWebReferencedialog,742AddDaysmethods,DateTimeclass,34AddItemmethod,DBUtilclass,762–764AddObject()method,821,828AddresspropertyProfileclass,724ProfileCommonclass,726AddUsersToRolemethod,Rolesclass,704AddUsersToRolesmethod,Rolesclass,704AddUserToRolemethod,Rolesclass,704AddUserToRolesmethod,Rolesclass,704AddXyzmethods,DateTimeclass,35administrationpage,retrievingloginformation,237Administratorrole,defaultWindowsroles,665ADO.
NET,466–467briefintroduction,452classes,groupsof,466dataproviders,466–467dataretrievalusingfillingListBoxcontrol,478–479overview,476–477retrievingrecords,479–481description,451directdataaccess,467–490disconnecteddataaccess,491–495modifyingdataindatabase,481–490retrievingdatafromdatabaseSelectCommand,475–476usingdatareaderclasses,476usingdatasetclasses,491SQLbasics,458–466ADO.
NETdataaccesscreatingconnectionsconnectionstrings,469–470overview,469storingconnectionstrings,472–473userinstanceconnections,471–472Windowsauthentication,470opening/closingconnections,473–475verifyingconnections,473ADO.
NETEntityDataModeltemplate,SolutionExplorer,800AdRotatorclass,325AdRotatorcontrolAdCreatedevent,325Advertismentfile,323eventhandling,326frametargets,325KeywordFilterproperty,325overview,323advanced-classprogramming,71,78AdvertisementFileproperty,AdRotatorclass,323–325AffectedRowsproperty,SqlDataSourceStatusEventArgsclass,535aggregatefunctionsdata-accesscomponentenhancement,758–759overview,463AjaxAccordioncontrol,853–856advantagesof,830AjaxorAJAX,831ASP.
NETAJAXControlToolkit,851AutoCompleteExtendercontrol,856–859controlextenders,857description,830disadvantagesof,830–831learningmoreaboutASP.
NETAJAX,864overview,829partialrefreshes,833–845progressnotification,845–849ScriptManagercontrol,831–833INDEX909timedrefreshes,849–850Timercontrol,849–850UpdatePanelcontrol,834–845UpdateProgresscontrol,845–849aliases,creatingvirtualdirectories,875allowrule,web.
configfileformsauthentication,654Windowsauthentication,664allowAnonymousattributeanonymousprofiles,729profileproperties,717AllowPagingpropertyDetailsViewcontrol,573FormViewcontrol,576GridViewcontrol,561AllowReturnproperty,WizardStepcontrol,334AllowSortingproperty,GridViewcontrol,559–560alpha,red,green,blue(ARGB)colorvalue,180altattribute,imgelement,107AlternateTextelement,AdvertisementFile,324AlternatingItemTemplatemode,TemplateFieldtemplates,566AlternatingRowStyle,GridViewcontrol,548AlwaysVisibleControlExtender,860Amazon,querystringstransferringinformationinURLs,266ampersand(&)character,269anchorelementHTML,135XHTML,106ANDkeyword,462andoperator(&&),38AnimationExtender,860anonymousaccess,Windowsauthentication,892anonymousidentification,deletingoldanonymoussessions,729Anonymousmode,Windowsauthentication,890anonymousprofiles,728–730anonymoususerscontrollingaccesstospecificdirectories,653–654denyingaccessto,652multipleauthorizationrules,653questionmarkwildcard,652restrictingaccessbasedonroles,705restrictinguseraccess,651anonymousIdentificationelement,729AnonymousTemplatesection,LoginViewcontrol,705AntiAliasvalue,Graphicsclass,365AntiAliasGridFitvalue,Graphicsclass,365antialiasing,365APIs,ProfileAPI,725–728App_Codefolder,129,800,803,808App_Datafolder,130DataDirectoryvalue,471membershipwithSQLServerExpress,671–672ServerExplorerwindow,VisualStudio,457usingprofileswithSQLServerExpress,713VisualStudioworkingwith,472App_GlobalResourcesdirectory,129App_LocalResourcesdirectory,130App_Themesdirectory,130App_WebReferencesdirectory,130Appleman,Dan,72Applicationclass,161applicationdirectories,ASP.
NET,129–130applicationdomainsASP.
NETapplications,127ASP.
NETprocessexplained,142applicationeventseventhandlingmethods,162Global.
asaxfile,161–162handlingincodebehind,160Applicationlog,Windowseventlogs,229applicationpools,875–878Applicationproperty,Pageclass,156ApplicationSettingsicon,IISManager,883applicationstate,286–288datacachingcompared,767performance,288statemanagementoptionscompared,290tracinginformation,244ApplicationstatecollectionLock()method,287Unlock()method,287Application_BeginRequestevent,162INDEX910Application_Endevent,162Application_EndRequestevent,162Application_Errorevent,162Application_Startevent,162Application.
Errorevent,812ApplicationExceptionclasscustomexceptionclasses,226–227enhancingcomponentswitherrorhandling,757application-leveltracing,250–251applicationNameattribute,addtag,677applications,ASP.
NETapplications,127–130ApplyStyleswindow,applyingstylesheetrules,381–382ApplyFormatInEditModeproperty,BoundFieldclass,543apply-templatescommand,XSLTransformations,641appSettingselement,web.
configfile,163–168AppSettingsproperty,WebConfigurationManagerclass,167arcs,drawingwithGraphicsclass,358ARGB(alpha,red,green,blue)colorvalue,180arithmeticoperatorsDateTimeclass,34division,28shorthandassignmentoperators,28TimeSpanclass,34ArrayclassClonemethod,66natureandbehaviorofdatatypes,66propertiesandmethods,37Arraytype/class,36–37ArrayListclass,26castingobjects,75generics,77whyitremainsin.
NET,78ArrayListcollection,repeated-valuedatabinding,508–509arraysaccessingelementsin,25ArrayListclass,26lowerbound,24multidimensionalarrays,25overview,24zero-basedcounting,36ascxfilesdescription,128usercontrols,343ASP,ASP.
NETcompared,7asptagprefix,creatingusercontrols,345ASP.
NETASPcompared,7caching,765–767collections,254component-basedprogramming,735convertingHTMLpagetoASP.
NETpage,131–134deployingwebapplicationsadditionalconfigurationsteps,896ASPNET/networkserviceaccounts,878–879codecompilation,896–897overview,895usingcustomcomponents,895–896deployingwebapplicationswithVisualStudiocopyingwebsitetoremotewebserver,901–904creatingvirtualdirectoryfornewproject,898–901overview,897publishingwebsite,904–905description,9howIIShandlesanASPfilerequest,866HTMLservercontrols,130–131partialrefreshesusingAjax,833–845polling,notificationsnotreceived,790processforcurrencyconverterexplained,142–143profiles,709progressnotificationusingAjax,845–849servercontrols,130–131server-sideprogramming,7stagesinASP.
NETrequest,143styles'limitations,367themes,384–385timedrefreshesusingAjax,849–850usesofdatabasewith,452webcontrols,130,173–176ASPNETaccountdeployingwebapplications,878–879givinglimitedprivilegesto,881permissions,879INDEX911ASP.
NETAJAXAccordioncontrol,853–856AutoCompleteExtendercontrol,856–859caching,832introduction,831learningmoreaboutASP.
NETAJAX,864partialrefreshes,833–845progressnotification,845–849ScriptManagercontrol,831–833timedrefreshes,849–850Timercontrol,849–850UpdatePanelcontrol,834–845UpdateProgresscontrol,845–849updatesinterruptingupdates,840ASP.
NETAJAXControlToolkit,851controlextenders,857installing,853tableofcontrols,859ASP.
NETAJAXJavaScriptlibraries,ScriptManagercontrollinkingto,832ASP.
NETapplicationdirectories,129–130ASP.
NETapplications,127–130.
Seealsowebapplicationsapplicationdomains,127Global.
asaxfile,161virtualdirectory,127,129webpagesand,127webserversand,865ASP.
NETconfigurationmultilayeredconfiguration,164overview,163storingcustomsettingsinweb.
configfile,166–168WAT(WebsiteAdministrationTool),168–170web.
configfile,163–164ASP.
NETcontrols,viewstate,135ASP.
NETfiletypes,128ASP.
NETforms,case-sensitivity,176ASP.
NETsecuritymodel,649ASP.
NETtags,howwebserverswork,865ASP.
NETwebcontrols.
SeewebcontrolsASP.
NETwebforms,usercontrolscomparedto,343aspnet_Applicationstable,715aspnet_compiler.
exetool,897,904aspnet_MembershiptablecreatinguserswithWAT,680membershipwithSQLServerExpress,672MembershipUserobject,683aspnet_Profiletableprofileproperties,721profileserialization,719aspnet_regsql.
execommand-lineswitches,675creatingaspnetdbdatabase,674manuallycreatingmembershipdatastore,674–675aspnet_regsql.
execommandrole-basedsecurity,701usingprofileswithSQLServer,714aspnet_SchemaVersionstable,715aspnet_UserstablecreatinguserswithWAT,680membershipwithSQLServerExpress,672MembershipUserobject,683aspnetdb.
mdffilecreating,674membershipwithSQLServerExpress,671–672userrecordinaspnetdb.
mdfdatabase,673usingprofileswithSQLServerExpress,713asp:prefix,webcontroltags,175aspxfilesaddingHTMLservercontrol,137ASP.
NETprocessexplained,142CurrencyConverter.
aspxfile,138description,128howwebserverswork,866OutputCachedirective,768aspxpage,VisualStudioviewsof,95aspx.
csfiles,CurrencyConverter.
aspx.
csfile,139assembliesaddingassemblyreference,743–744assembliesandnamespaces,70componentsandclasses,740creatingdata-accesscomponent,751dllandexeextensions,70privateassemblies,896sharedassemblies,896usingassemblyreferences,746INDEX912assignmentoperationscopyinganobject,notareference,63referencetypes,63Stringclass,66valuetypes,63shorthandassignmentoperators,28variablescharactersindicatingdatatype,23escapingspecialcharacters,24overview,22varkeyword,23AssociatedControlIDproperty,183AssociatedUpdatePanelIDproperty,847AsyncFileUploadcontrol,863asynchronouscallbackspartialrefreshesusingAjax,834UpdatePanelcontrol,836asynchronousrequestscancelling,847progressnotificationusingAjax,845AttachDBFilenameproperty,connectionstrings,471Attribute()method,628attributesHTMLandXHTML,107–108XMLcreatingXMLdocumentasobjects,627namespaces,634syntaxandvalues,614usingelementsorattributes,613–614Attributes()method,628AttributespropertyDirectoryInfoclass,587FileInfoclass,587HtmlControlclass,154Authenticateevent,Logincontrol,689–690Authenticatemethod,FormsAuthenticationclass,658Authenticatedproperty,AuthenticateEventArgsclass,690AuthenticateEventArgsclass,690authentication.
Seealsoformsauthentication;Windowsauthenticationdescription,649element,web.
configfile,164formsauthentication,649–661withmembership,686–687mixed-mode,470profilesenablingauthentication,712–713formsauthentication,713overview,711stepstouseprofiles,712Windowsauthentication,712SelectAuthenticationoptions,656SQLServerauthentication,470Userproperty,Pageclass,157Windowsauthentication,470,649,663–667Authenticationicon,884authenticationtag,web.
configfileattributes/settings,651changingforsubdirectory,653formsauthentication,651Windowsauthentication,663authorization,descriptionof,649authorizationelement,web.
configfile,164authorizationrulesaccessforspecificusers,654–655accessingspecificdirectories,653accessingspecificfiles,653–654addingauthorizationrules,656formsauthentication,651–655multiple,653orderingauthorizationrules,657restrictingaccessbasedonroles,705settingupusingtheWAT,655–657Windowsauthentication,664authorizationsection,web.
configfile,705authorizationtag,web.
configfileaccesscontrolrules,652controllingaccesstospecificdirectories,653multipleauthorizationrules,652AutoFormatdialogbox,configuringstyleswithVisualStudio,550AutoFormatfeature,318,601,816autoincrementcolumns,relationaldatabases,465AutoCompleteExtendercontrolAjax,856–859GetNameswebmethod,858MinimumPrefixLengthproperty,858ServiceMethodproperty,858TargetControlIDproperty,858AutoDetectvalue,HttpCookieModeenumeration,278INDEX913AutoFormatfeature,824AutoGenerateColumnsproperty,GridViewcontrolautomaticcolumngeneration,540definingcolumns,542displayingfulllistofusersinwebpage,728generatingcolumnswithVisualStudio,544AutoGenerateDeleteButtonproperty,DetailsViewclass,535AutoGenerateEditButtonproperty,DetailsViewcontrol,534AutoGenerateInsertButtonproperty,DetailsViewclass,535,762AutoGenerateRowsmethod,DetailsViewcontrol,528AutoGenerateRowsproperty,DetailsViewcontrol,574automaticeventwireup,eventhandlinginwebpage,141automaticpagingfeature,GridViewcontrol,561automaticpostbacksdescription,195greetingcardgeneratorexample,208slowconnectionsand,210webcontroleventsand,193–198automaticproperties,56automaticvalidation,server-sidevalidation,295automaticSaveEnabledattribute,profileelement,725AutoPostBackpropertycapturingchangeeventimmediately,195greetingcardgeneratorexample,208howpostbackeventswork,197listcontrols,repeated-valuedatabinding,513,518ListBoxclass,usingwithObjectDataSource,761ListBoxcontrolcreatinglistoffilesindirectory,586dataretrievalusingADO.
NET,479pagelifecycle,198Autoswindow,VisualStudio,124–125autosaves,ofcustomdatatypes,725AutoSizeproperty,Accordioncontrol,856AvailableFreeSpaceproperty,DriveInfoclass,589AVGfunction,463BbelementHTML,167XHTML,105–106,108BackColorpropertyTextBoxcontrol,175WebControlclass,177Backgroundcategory,NewStyledialogbox,371backslash(\)characterC#language,18creatingfilebrowser,593escapingspecialcharacters,24filepathsinstrings,469,581BackupOperatorrole,defaultWindowsroles,665basekeyword,customexceptionclasses,227BaseValidatorclassproperties,296validationcontrols,295Basicmode,Windowsauthentication,890beziercurve,drawingwithGraphicsclass,358Bindirectoryaddingreferencestocomponents,742,744–745description,130binaryfiles,readingandwritingwithstreams,596–597binaryserialization,customdatatypes,724Binaryvalue,serializeAsattribute,720BinaryFormatterclass,724BinaryReaderclass,597BinaryWriterclass,596Bindmethod,TextBoxcontrol,569bindingportionsofsitemaps.
Seealsodatabindingoverview,420showingsubtrees,420–424usingdifferentsitemapsinsamefile,424–425Bitmapclass,357bitmaps,357.
SeealsoimagesINDEX914bitwisearithmetic,creatinglistoffilesindirectory,586_blankframetarget,AdRotatorcontrol,325Blockcategory,NewStyledialogbox,371block-levelscope,41blocks,C#,20bodyelementHTML,4,393XHTML,109boldelement,XHTML,106.
SeealsobelementBoldproperty,FontInfoclass,181BookEntryclass,600booldatatype,C#,21Booleanclass,66Booleandatatype,.
NET,21Bordercategory,NewStyledialogbox,372BorderColorproperty,WebControlclass,177BorderStyleenumeration,178BorderStylepropertyPanelcontrol,206,208WebControlclass,178BorderWidthproperty,WebControlclass,178BoundFieldclassDataFormatStringproperty,546DetailsViewcontrol,574GridViewcontrolcolumntype,542properties,543SortExpressionproperty,559BoundFieldelement,GridViewcontrol,544Boxcategory,NewStyledialogbox,372brelementHTML,167masterpages,400XHTML,105–106breadcrumbnavigation,430breakkeyword,switchstatement,39breakstatement,loopstructures,43breakpointscommandsinbreakmode,122customizingbreakpoints,123debugginglargewebsite,123saving,123single-stepdebugging,119Breakpointswindow,VisualStudio,123browsersclientsidecaching,769creatingfilebrowser,590–594determininguser'stype,502intrepretingtextcontainingspecialcharacters,158Brushobject,specifyingBrushorPenobject,359BulletedListcontrol,187–188.
Seealsolistcontrolsadditionalproperties,187BulletStylevaluessupported,187DisplayModeproperty,187listcontrolscompared,184renderingoftext,187underlyingHTMLelement,175BulletImageUrlproperty,BulletedListcontrol,187BulletStyleproperty,BulletedListcontrol,187businesslayer,three-tierdesign,736businessobjects,component-basedprogramming,738ButtonclassCausesValidationpropertyhowvalidationworks,299manualvalidation,302CauseValidationproperty,howvalidationworks,298Clickevent,cross-pagepostbacks,265Buttoncontrolsaddinglinkedimages,147aspxcodecreating,191Clickevent,194eventsandpostbacks,195inputtagunderlying,174underlyingHTMLelement,174buttonelement,HTML,136buttontype,inputelement,136Buttonwebcontrol,howvalidationworks,297ButtonFieldclassCommandNameproperty,554DetailsViewcontrol,574GridViewcontrolcolumntype,542usingdatafieldasselectbutton,554buttonsCausesValidationproperty,295default,183imagesaspartoftheme,390–391recognizingbuttoncontrolswithspecificcommandnames,331INDEX915ButtonTypeproperty,GridViewcontrol,553Byteclass,natureandbehaviorofdatatypes,66bytedatatype,C#,21Bytedatatype,.
NET,21CC#languageaccessibilitykeywords,52arrays,24–26blocks,20C#,VBand.
NETlanguages,11casesensitivity,18choosingbetween.
NETlanguages,17comments,18conditionallogicifstatement,38overview,37switchstatement,39–40delegates,47–48enumerations,26–27escapingspecialcharacters,24importanceofcodingstandards,18loopstructures,40–43methodoverloading,45methods,43–48.
NETdatatypes,21object-basedmanipulationArraytype/class,36–37DateTimetype/class,34–36overview,31Stringtype/class,32–33TimeSpantype/class,34–36overviewofC#language,17parameters,methods,44specialcharacters,18statementtermination,19variableintializationandassignment,22–24variableoperationsadvancedmath,29overview,27–28typeconversions,29–31variables,20Cacheclass,774–775cachedependenciescacheitemdependencies,786filedependencies,785–786SQLServer,787,790cacheinvalidation,SQLServer,787cachenotifications.
Seealsonotificationscachenotifications,SQLServer,790Cacheobject,cachingtest,776–777cacheprofiles,773Cacheproperty,Pageclass,156,774CacheDependencyclass,785–786CacheDependencyobject,creatingdependencyforcacheditem,775CacheDurationproperty,781CacheExpirationPolicyproperty,781CacheKeyDependencyproperty,781CacheProfileattribute,OutputCachedirective,773cachingASP.
NET,142,765–767,832cachedependencies,785–790cacheprofiles,773cacheditemexpiresimmediately,790cachinggenericportionofpage,769cachingmultipleversionsofwebpage,771–772clientsidecaching,769datacachingcachinginDataSet,777–780cachingtest,776–777description,767insertingobjectsintocache,774–775datasourcecaching,description,767datasourcecontrolcachingcachingwithObjectDataSourcecontrol,784cachingwithSqlDataSourcecontrol,781–784databasequeries,766disablingcachingwhiletesting,769fragmentcaching,767,772frequentlyuseddata,766outputcaching,767–773performance,766querystringsandcaching,769–772recompilingcachedpages,769scalability,766sessionstatescalability,277whentouse,766–767whichdatatocache,766INDEX916Calendarcontroladjustingstyles,318AutoFormatfeature,318CalendarDayclassproperties,319configuringselectionmodes,316controltagsinskinfile,389events,323formattingCalendarcontrol,317–319highlightinganimportantdate,320multipledateselection,316navigatingfrommonthtomonth,315properties,321propertiesforCalendarstyles,317restrictingdates,319–323retrievingselecteddayincode,316XyzTextproperties,322CalendarDayclass,319CalendarExtender,860cancelbutton,UpdateProgresscontrol,847–849Cancelproperty,MailMessageEventArgsclass,700CancelButtonClickevent,Wizardcontrol,337CancelButtonStyleproperty,Wizardcontrol,339CaptionpropertyCalendarcontrol,321GridViewcontrol,546CaptionAlignpropertyCalendarcontrol,321GridViewcontrol,546cascadingdeletes,491CascadingStyleSheets.
SeeCSS(CascadingStyleSheets)CascadingDropDown,860casesensitivityC#,18,20programminglanguagescompared,18URLinsitemap,416case-sensitivityASP.
NETforms,176SQL,462web.
configfile,163XML,612castingobjectvariables,74–76catchblock.
Seealsotry.
.
.
catch.
.
.
finallyblockscatchingspecificexceptions,219–220determiningwhichexceptionstocatch,220CausesValidationpropertyButtonclasshowvalidationworks,299manualvalidation,302client-sidevalidation,295LinkButtoncontrol,572server-sidevalidation,295CauseValidationproperty,Buttonclass,298CellPaddingpropertyCalendarcontrol,321GridViewcontrol,546Cellscollection,GridViewRowcontrol,550CellSpacingpropertyCalendarcontrol,321GridViewcontrol,546certificateauthorities,892,894certificates,893–894chains,exceptionchains,217–218changeeventscapturingchangeeventimmediately,195CtrlChangedmethodhandling,201greetingcardgeneratorexample,209onchangeevent,197pagelifecycle,198SelectedIndexChangedevent,195ServerChangeevent,193ChangeExtensionmethod,Pathclass,581ChangePasswordcontrol,688ChangePasswordmethod,MembershipUserclass,684ChangePasswordQuestionAndAnswermethod,MembershipUserclass,684Charclass,66chardatatype,C#,21Chardatatype,.
NET,21.
character,307"characterentity,159characterliterals,24()characters,307characters,matching,307checkboxes,Menu/TreeViewcontrolscompared,444CheckBoxcontrolaspxcodecreating,191eventsandpostbacks,195underlyingHTMLelement,174INDEX917checkboxtype,inputelementHTMLservercontrolclassfor,136relatedwebcontrolclasses,174–175CheckBoxFieldclass,542CheckBoxListcontrol.
SeealsolistcontrolscachinginDataSet,780convertingstepintotemplate,697eventsandpostbacks,195listcontrolscompared,184multipleselections,185repeated-valuedatabinding,507underlyingHTMLelement,175CheckBoxStyleproperty,Logincontrol,691checkedblock,30CheckedChangedevent,195ChildNodesproperty,SiteMapNodeclass,425ChildNodesPaddingproperty,TreeNodeStyleclass,439ChooseLocationdialogbox,creatingwebsiteswithVisualStudio,87–88CIL(CommonIntermediateLanguage).
SeeIL(IntermediateLanguage)classattribute,applyingstylesheetrules,381–382classlibrarynamingprojects,740.
NETbasicdatatypes,21.
NETclasslibrary,14.
NETFramework,9classmembers,50,742classname,378classesaddingfunctionalityto,742ArrayListclass,26assembliesandnamespaces,70building.
NETclasses,51–63addingconstructors,57–58addingevents,59–60addingmethods,56–57addingproperties,54–56creatingobjects,53–54testingclasses,60–63CacheDependencyclass,786castingobjectvariables,74–76compilingcomponents,740–742component-basedprogramming,738creatingclassofstaticmembers,73creatingcomponents,742creatingsimpleclass,51datatypesbehavingasvaluetypes,66Directoryclass,582–587DirectoryInfoclass,587–589DriveInfoclass,589–590events,50Fileclass,582–587FileInfoclass,587–589fullyqualifiednames,69generics,77–78HTMLservercontrolclasses,135–137HtmlContainerControlclass,155HtmlControlclass,151–154inheritance,71–72instancemembers,51Membershipclass,682–683MembershipUserclass,683–684methods,50.
NETtypes,65objectsandclasses,50Pageclass,156–157partialclasses,76–77Pathclass,581–582properties,50Rolesclass,703–704serialization,721SiteMapclass,425–427statefulorstatelessdesign,747–748staticmembers,50–51,73usingstatefulandstatefulclassestogether,749valuetypesandreferencetypes,63VisualStudioHelpreference,67webcontrols,174–184WebControlclass,177,179XMLclasses,615XmlDocumentclass,623XmlTextReaderclass,618–623XmlTextWriterclass,615–618Classic.
NETAppPool,877clearelement,removingconnectionstrings,713Clear()methodArrayclass,37HttpSessionStateclass,274ClearTypeGridFitvalue,Graphicsclass,365INDEX918ClickeventButtonclassaddinglinkedimages,148cross-pagepostbacks,265greetingcardgeneratorexample,204Buttoncontrols,194LinkButtoncontrol,355webcontrolsprovidingandpostbacks,195client-sidecaching,769client-sideprogrammingASP.
NETusingJavaScriptfor,197evolutionofwebdevelopment,7–9reasonstoavoid,8VBScript,197client-sidevalidation,server-siderevalidationof,295ClientValidationFunctionproperty,CustomValidatorcontrol,312ClonemethodArrayclass,66copyinganobject,notareference,63Closemethodconnectionclasses,474,476datareaderclasses,476Fileclass,596closingtags,HTMLcontrol,155CLR(CommonLanguageRuntime)briefdescription,9ILandCLR,13CLS(CommonLanguageSpecification),11cmdUpdate_Clickeventhandler,206–208codedatamodelscontexts,809entities,808LINQ,794–795reusingwebpagemarkup,343writingcodeinVisualStudio,110–118addingeventhandlers,110automaticcoloringofcode,117automaticformattingofcode,117code-behindclass,110IntelliSense,118codeblocks,structuredexceptionhandling,215codefragmentation,problemswithsingle-valuedatabinding,505codereuse,component-basedprogramming,736codetransparency,14codeview,switchingtodesignview,110code-behindclasscreatingusercontrols,344currencyconverterexample,139eventhandlers,110,139Pageclass,139partialkeyword,139usingstatements,139writingcodeinVisualStudio,110code-behindfileshandlingapplicationeventsin,160pagedirective,133problemswithsingle-valuedatabinding,505usercontrols,343codingstandards,importanceinC#,18codingwebforms,VisualStudiobenefits,84CollapseImageUrlproperty,TreeViewcontrol,438CollapseNavigationControlsproperty,409CollapsiblePanelExtender,860collectionclassescastingobjects,75generics,78purposeof,71StateBagcollectionclass,254collectionsASP.
NET,254dictionarycollections,repeated-valuedatabindingwith,512–513genericcollections,509QueryStringcollection,266repeated-valuedatabindingwithlistcontrols,507ViewStatecollection,254Collectionsnamespace,repeated-valuedatabinding,508colorproperties,configuringwebcontrols,99Colorproperty,webcontrolclasses,180–181ColorPickerExtender,860colorsARGBcolorvalue,180greetingcardgeneratorexample,207–208INDEX919columntypes,GridViewcontrol,542Combinemethod,Pathclass,581,586,594ComboBoxcontrol,863commandclassescommandobjectrepresentingDELETEstatement,489–490commandobjectrepresentingINSERTstatement,483–485commandobjectrepresentingSELECTstatement,475–476commandobjectrepresentingUPDATEstatement,488CommandTextproperty,494dataretrievalusingADO.
NET,479disposingofCommandobjects,476ExecuteNonQuerymethod,481ExecuteReadermethod,476modifyingdataindatabase,481–490representingSQLstatements,475retrievingdata,475usingwithdatareaderclasses,476commandcolumn,editingGridViewtemplateswithout,571–572Commandevent,LinkButtoncontrol,355Commandobject,repeated-valuedatabinding,520CommandArgumentproperty,568CommandFieldclassGridViewcontrolcolumntype,542ShowDeleteButtonproperty,558ShowEditButtonproperty,556,568ShowSelectButtonproperty,556–557CommandNamepropertybuttoncontrols,568ButtonFieldclass,554LinkButtonclass,571CommandTextproperty,494commentsC#,18XML,19,166,614commit-as-you-goprogrammingmodel,Wizardcontrol,338commit-at-the-endprogrammingmodel,Wizardcontrol,338commondatatypesystem,21CommonIntermediateLanguage.
SeeIL(IntermediateLanguage)CommonLanguageRuntime.
SeeCLR(CommonLanguageRuntime)CommonLanguageSpecification(CLS),11commontypesystem(CTS),11CompanyNamefield,823Compare()method,Stringclass,38CompareAllValuesvalue,ConflictOptionsenumeration,535CompareValidatorcontrolcontrolspecificproperties,297description,294validatedwebformexample,309comparisonoperators,38compilation,897component-basedprogrammingaddingreferencetocomponents,742–745advantagesof,735–736businessobjects,738classes,738classesandnamespaces,740–742creatingcomponents,739–747dataobjects,738data-accesscomponentsaggregatefunctionsenhancement,758–759creatingdata-accesscomponent,750–753errorhandlingenhancement,757usingdata-accesscomponent,754–757encapsulation,738ObjectDataSourcecontrol,759–764propertiesandstateoverview,747statefulAccountclassexample,748–749statelessAccountUtilityclassexample,749removingreferences,745statefulorstatelessdesign,748terminology,736three-tierdesign,736–737usingassemblyreferences,746usingcomponents,745usingprojectreferences,746componentsdata-accesscomponents,750–759debuggingusingVisualStudio,757simplecomponent,742throwingexceptionswithoutdetails,758usingstatefulandstatefulclassestogether,749INDEX920compression,286concurrencycheckingtimestamps,537updatingrecordswithdatasourcecontrols,535–537managing,822–823ConcurrencyModeproperty,823conditionalstructuresifstatement,38logicaloperators,37overview,37switchstatement,39–40conditionalupdates,UpdatePanelcontrol,839–840configurationASP.
NETconfiguration,163–170configurationinheritance,165databasedeployment,896databases,453–458multilayeredconfiguration,164WAT(WebsiteAdministrationTool),168–170web.
configfile,163–164XCopydeployment,896configurationfilesaccessingconfigfilesviaIIS,168adjustingdefaultmembershipconnectionstring,674–675changingsettingsformembershipdatastore,676–679debuggingwithVisualStudio,118ConfigureDataSourceWizard,828ConfirmButtonExtender,860ConflictDetectionproperty,SqlDataSourceclass,535ConflictOptionsenumeration,535connectionclassesClosemethod,474,476ConnectionStringproperty,469dataretrievalusingADO.
NET,479Disposemethod,474Openmethod,474Connectionobject,repeated-valuedatabinding,520connectionpooling,753connectionstringsadjustingdefaultmembershipconnectionstring,674–675AttachDBFilenameproperty,471connectionstringproperties,469ConnectionStringproperty,469ConnectionTimeoutproperty,470dataaccess,ADO.
NEToverview,469–470storingconnectionstrings,472–473dataretrievalusingADO.
NET,478DataSourceproperty,469defaultmembershipconnectionstring,674enhancingcomponentswitherrorhandling,757InitialCatalogproperty,470IntegratedSecurityproperty,470profiles,713–714SqlDataSourceclass,524UserInstancesproperty,471ConnectionStringsicon,IISManager,883connectionscreatingforADO.
NETdataaccess,469–475data-accesscomponents,750ConnectionStringproperty,469,525,825connectionStringNameattribute,addtag,677connectionStringselement,web.
configfile,163connectionStringssection,web.
configfile,472,524,802ConnectionTimeoutproperty,connectionstrings,470constructorsaddingto.
NETclasses,57–58customexceptionclasses,227description,57namingconventions,57overloading,58ContactNamefield,823containers,HtmlContainerControlclass,155containment(aggregation)relationship,71contentpagesconnectingtomasterpages,396–398creatingbasedonmasterpage,393–396defaultcontent,401–402masterpagesand,367multiplecontentregionsinmasterpages,398–401INDEX921nocontentregionsinmasterpage,401overriddingtitlespecifiedinmasterpage,397overridingdefaultcontentinmasterpage,402viewingmasterpages,392Contenttagconnectingcontentpagestomasterpages,397ContentPlaceHolderIDattribute,397overridingdefaultcontentinmasterpage,402ContentView,IISManager,873ContentLengthproperty,PostedFileclass,606ContentPlaceHoldercontrolbodyelement,HTML,393creatingcontentpages,394–396creatingmasterpage,392–393defaultcontentinmasterpages,401headelement,HTML,393multiplecontentregionsinmasterpages,398–401noneinmasterpage,401overridingdefaultcontent,402ContentPlaceHolderregion,creatingcontentpage,394–395ContentPlaceHolderIDattribute,Contenttag,397ContentTemplateelement,UpdatePanelcontrolusing,836contexts,809Continuecommand,breakmode,122ContinueDestinationPageUrlproperty,CreateUserWizardcontrol,694ControlclassDataBindmethod,500DataMemberproperty,515Visibleproperty,327controlclasses,HTMLelementsunderlying,174Controldirective,creatingusercontrols,344controlextenders,857controlparameters,529controlprefixes,webcontrols,184controlpropertiesconfiguringcontrolproperties,383controltagsinskinfile,389–390handlingcontrol/themeconflicts,386–387parametertypes,529single-valuedatabindingsetting,504skinsandthemes,384controltag,addingusercontrols,345controltree,tracinginformation,243ControlParametercontroltagcreatingmaster-detailspages,555parametertypes,529controls.
SeealsowebcontrolsAccordioncontrol,853–856addingtopagedynamicallyatruntime,141AdRotatorcontrol,323–326applyingstylesheetrules,381ASP.
NETAJAXControlToolkit,851AutoCompleteExtendercontrol,856–859BulletedListcontrol,187–188Calendarcontrol,315–323controlextenders,857creatingmultipleskinsforsamecontrol,388–389datasourcecontrols,521–537declaring,112DetailsViewcontrol,528,573–575EntityDataSourcedisplayingdata,823–827editingdata,828FileUploadcontrol,604FormViewcontrol,575–578GridViewcontrol,539,572HTMLforms,5HTMLservercontrols,130–131ImageButtoncontrol,567listcontrols,184–188Menucontrol,442–448multiple-viewcontrols,326–340MultiViewcontrol,328–333navigationcontrols,347ObjectDataSourcecontrol,759–764Pageclass,156–157pageswithmultipleviews,326–328recallingnamesofcontrols,114repeated-valuedatabinding,506richcontrols,315ScriptManagercontrol,831–833ScriptManagerProxycontrol,832INDEX922controls(continued)securitycontrolsCreateUserWizardcontrol,694–698Logincontrol,688–694LoginViewcontrol,705–707overview,687PasswordRecoverycontrol,698–700servercontrols,130SiteMapPathcontrol,430–435Tablecontrol,188–193themescontroltagsinskinfile,389–391handlingcontrol/themeconflicts,386–387overview,383–385third-partycontrols,341Timercontrol,849–850TreeViewcontrol,435–442UpdatePanelcontrol,834–845UpdateProgresscontrol,845–849usercontrolsASP.
NETfiletypedescribing,128creating,344–346independent,347–349integrated,349–352overview,343passinginformationwithevents,354–356usercontrolevents,352–354usingHTMLformelement,134validationcontrols,295–314viewstate,135visibilityof,178webcontrols,130,173–176WebControlclass,177–179Wizardcontrol,333–340WizardStepcontrols,333–337workingsof,62Xmlwebcontrol,642–643Controlscollection,192ControlspropertyHtmlControlclass,154WebControlclass,178ControlStylepropertyBoundFieldclass,544Wizardcontrol,339ControlToValidateproperty,BaseValidatorclass,296,304ConversionWizard,VisualStudio,94conversions,typeconversions,29–31Convertclass,31ConvertEmptyStringToNullproperty,BoundFieldclass,544cookielessattribute,sessionStatetag,278cookielesssetting,sessionstateconfiguration,278–281CookieParametercontroltag,parametertypes,529cookies,269–272anonymousprofiles,729cookielessstatelimitations,280formsauthentication,649,651,658,661FormsCookieNameproperty,658FormsCookiePathproperty,658GetAuthCookiemethod,658HttpCookieclass,270HttpCookieModeenumeration,278IsCookielessproperty,HttpSessionStateclass,274parametertypes,529persistence,270,662removing,270retrievingcookies,270security,269sessionstateusing,272sessiontracking,273SetAuthCookiemethod,658setting,270statemanagementoptionscompared,288–289suitabilityofstoringinformationwith,596timeouts,651tracinginformation,244usersdisablingcookies,269usersrequiringsecuritycookies,652usingcookiestostoredata,271–272validationforsecuritycookie,651Cookiescollection,270coordinateduniversaltime(UTC)property,DateTimeclass,35coordinates,xandy,359CopymethodDataSetclass,780Fileclass,583CopyWebSitefeature,deployingwebapplicationswithVisualStudio,901–904INDEX923copyingwebsitetoremotewebserver,901–904CopyTomethod,FileInfoclass,589COUNTfunction,463Countproperty,HttpSessionStateclass,274countersprogram,viewstateexample,254–255CreateAccessRuleslink,WAT,656CREATEEVENTNOTIFICATIONcommand,787Createmethod,588–589Createmethod,XmlReaderclass,637CreateDirectorymethod,Directoryclass,582CreatedUserevent,CreateUserWizardcontrol,694CreateEventSourcemethod,235CreateRolemethod,Rolesclass,704CreateSubdirectorymethod,DirectoryInfoclass,588CreateTextmethod,Fileclass,594CreateUsermethod,Membershipclass,681–682CreateUserErrorevent,CreateUserWizardcontrol,694CreateUserIconUrlproperty,693CreateUserTextproperty,693CreateUserUrlproperty,691,693CreateUserWizardcontroladdingcustomsteps,694–696ContinueDestinationPageUrlproperty,694convertingstepintotemplate,696–697description,688DisplaySidebarproperty,695events,694FindControlmethod,697FinishButtonClickevent,696LoginCreatedUserproperty,694membershipsecuritycontrols,694–698membershipwithSQLServerExpress,671–672NextButtonClickevent,696propertytypes,694CreatingUserevent,CreateUserWizardcontrol,694CreationTimeproperty,587credentialsASP.
NET,669authentication,649creditcardnumbers,regularexpressionfor,308cross-pagepostbacksgettingmoreinformationfromsourcepage,262–265overview,260–261cross-platformsupport,14csfiles,description,129CSS(CascadingStyleSheets)applyingstylesheetrules,380–383creatingstylesheets,377–380inheritance,369introduction,367rules,limitations,383settingstyles,150styleattribute,150styles,367CSSclassnames,378CSSOutlinewindow,379–380CSSPropertieswindowcreatingstyles,376formattingproperties,375overview,374styleinheritance,376–377CssClassproperty,381–382CtrlChangedmethod,201CTS(commontypesystem),11curlybracesfilepathsinstrings,581specialcharacter,C#language,18usesof,20XSLTransformations,641currencyconverteraddingHTMLservercontrolcodeto,138–140addinglinkedimages,147–149addingmultiplecurrencies,145–146ASP.
NETprocessexplained,142–143convertingHTMLpagetoASP.
NETpage,131–134errorhandling,144eventhandling,140–141settingstyles,150storinginformationindrop-downlist,146–147Currencydatatype,formatstring,546CurrencyConverter.
aspx.
csfile,139CurrentNodeproperty,SiteMapclass,425INDEX924CurrentNodeStyleproperty,SiteMapPathcontrol,432CurrentNodeTemplateproperty,SiteMapPathcontrol,432–434curves,Graphicsclass,358customcookies,289customdatatypes,profilesandcustomdatatypes,722–725customerrorpages,886–888customeventlogs,234–235customexceptionclasses,226–228customloggingclass,236customtemplates,definingwithTemplateFieldclass,563Customerentity,813customerform,validatedwebforms,308–313Customerrecord,823Customertablebox,823CustomerCustomerDemotable,813CustomerDemographicentity,813Customer.
Orderscollection,818customErrorselement,web.
configfile,838Customerscollection,818Customerstable,819customProviderattribute,286CustomValidatorcontrolClientValidationFunctionproperty,312controlspecificproperties,297description,294server-sidevalidation,311ServerValidateevent,310validatedwebformexample,309ValidateEmptyTextproperty,313D\dcharacter,307dataApp_Datadirectory,130displaying,823–827editing,828loaded,818–819modifyingdataindatabase,481–490dataaccess,ADO.
NETcreatingconnectionsconnectionstrings,469–470storingconnectionstrings,472–473userinstanceconnections,471–472Windowsauthentication,470directdataaccess,467–490disconnecteddataaccess,491opening/closingconnections,473–475verifyingconnections,473dataadapterclasses,492–493databinding.
Seealsodatacontrolsbindingmultipledatasourcecontrols,526cachinginDataSet,780creatingfilebrowser,594creatinglistoffilesindirectory,586creatingrecordeditor,516–521datasourcecontrols,521–537determininguser'sbrowser,502GridViewcontrol,540,572guestbookfileaccessexample,600howdatabindingworks,500HtmlControlclass,154introduction,499–500multiplebinding,repeated-valuedatabinding,510–511ObjectDataSourcecontrol,760,762,764othertypesofparameters,528–530pagelifecyclewith,523parameterizedcommands,527–532readingXMLusingXmlTextReader,621,623reasonsforusingdatasets,491repeated-valuebinding,500repeated-valuedatabinding,506–521richdatacontrols,539settingparametervaluesincode,530–532single-valuedatabinding,500–506SiteMapPathcontrol,432SqlDataSourceclass,523–524typesofASP.
NETdatabinding,500usingdata-accesscomponent,755datacaching,774–784applicationstatecompared,767cachinginDataSet,777–780GetDataSetmethod,779–780RetrieveDatamethod,778–779cachingtest,776–777datasourcecaching,767,781–784description,767insertingobjectsintocache,774–775withObjectDataSourcecontrol,784withSqlDataSourcecontrol,781–784INDEX925datacontextclass,815datacontrolsDetailsViewcontrol,573–575FormViewcontrol,575–578GridViewcontrol,539–572datalayer,three-tierdesign,736datamodelscodecontexts,809entities,808diagramsof,803–806entity,creating,800–803querying,809–810updating,806–807Datanamespace,467dataobjects,component-basedprogramming,738dataproperties,804,808dataproviderclassesADO.
NET,467namingconventions,466dataproviderfactories,523–524dataproviders,ADO.
NET,466datareaderclassesClosemethod,476dataretrievalusingADO.
NET,479directdataaccess,468Readmethod,476,479usingwithcommandclasses,476dataretrievalCommandobjectrepresentingSELECTstatement,475–476usingADO.
NETfillingListBoxcontrol,478–479overview,476–477retrievingrecords,479–481usingdatareaderclasses,476usingdatasetclasses,491datasetsGetDataSetmethod,779–780RetrieveDatamethod,778–779datasourcecaching,767datasourcecontrolsautomaticsubmissionofparameterscollection,534bindingmultiplecontrols,526–527cachingproperties,781cachingwithdatasourcecontrols,781–784cachingwithObjectDataSourcecontrol,784cachingwithSqlDataSourcecontrol,781–784connectionstrings,524handlingerrors,532–533howdatasourcecontrolswork,526indicatingparameters,527othertypesofparameters,528–530overview,521–522pagelifecycle,523parameterizedcommands,527–532selectingrecords,525settingparametervaluesincode,530–532sortingandselectingatsametime,560SqlDataSourceclass,523–524updates,523updatingrecordsconcurrencychecking,535–537overview,533–534DataSourceproperty,connectionstrings,469datasourcesObjectDataSourcecontrol,759–764retrievinginformationaboutallprofilesin,728datatypesC#charactersindicatingdatatype,23variablesand,20.
NETbasicdatatypes,21.
NETlanguages,20.
NETtypes,65–66object-basedmanipulationin,31profilesandcustomdatatypes,722–725referencetypes,63–66serialization,721statemanagementoptionscompared,289–290valuetypes,63–66variableprefixes,22data-accesscomponentsadvantagesforcomponent-basedprogramming,750aggregatefunctionsenhancement,758–759creatingdata-accesscomponent,750–753INDEX926data-accesscomponents(continued)errorhandlingenhancement,757usingdata-accesscomponent,754–757DataAdapterclass,514databaseaccess,outputcaching,768databaseconnections,ADO.
NETconnectionstrings,469–470DataReaderclass,476filepathsinstrings,469numberofconnections,469opening/closingconnections,473–475reasonsforusingdatasets,491SQLServerauthentication,470storingconnectionstrings,472–473try.
.
.
catch.
.
.
finallyblocks,469userinstanceconnections,471–472verifyingconnections,473Windowsauthentication,470databasequeries,whichdatatocache,766databasesbrowsingandmodifyinginVisualStudio,454–456cancellingasynchronousrequeststo,849configuration,453–458connections,750deploymentconfiguration,896encapsulation,750introduction,451isolationfromwebpage,737learningessentialdatabaseconcepts,453modifyingdataindatabase,481–490obtainingsampledatabases,453relationalmodel,451SQLbasics,458–466storedprocedures,750storingdatabasefiles,471DataBind()methodControlclass,500,809GridViewcontrolautomaticcolumngeneration,540cachinginDataSet,780ListBoxcontrol,507–508Pageclassrepeated-valuedatabindingwith,506single-valuedatabinding,501–504timingofcallingmethod,504DataBinderclass,551,563–564DataDirectoryvalue,App_Datafolder,471DataFieldproperty,BoundFieldclass,543DataFormatStringpropertyBoundFieldclass,543,546GridViewcontrol,546DataItemproperty,550–551DataKeyNamesproperty,555,557,826DataMemberproperty,Controlclass,507,515DataReaderclasscachingwithSqlDataSourcecontrol,783databindingwithADO.
NET,514retrievingdata,475SqlDataSourcechoosing,526DataReadermode,DataSourceModeproperty,560DataRelationclassaddingobjectstoDataSet,496definingrelationshipsindatasets,495DataRowclassGetParentRowsmethod,496Rowscollection,493DataSetclassaddingDataRelationobjectsto,496cachinginDataSet,777–780cachingwithSqlDataSourcecontrol,783Copymethod,780creatingdata-accesscomponent,751databindingwithADO.
NET,514–516datacaching,767definingrelationshipsindatasets,495disconnecteddataaccess,491introduction,466reasonsforusingdatasets,491retrievingdata,475selectingdisconnecteddata,492–494SqlDataSourcechoosing,526updatingdisconnecteddata,492usingdata-accesscomponent,755–756DataSetmode,DataSourceModeproperty,560DataSourcepropertyGridViewcontrol,540repeated-valuedatabindingwithlistcontrols,507INDEX927DataSourceIDpropertybindingpagestositemaps,417GridViewcontrol,541ListBoxcontrol,526Menucontrol,442DataSourceModeproperty,SqlDataSourcecontrol,560,783DataTableclasscachinginDataSet,780databindingwithADO.
NET,515DataViewcontroland,559DataTextFieldproperty,listcontrols,515DataValueFieldproperty,listcontrols,513–514DataViewcontrol,559datedatatypes,formatstrings,547DatepropertyCalendarDayclass,319DateTimeclass,35dateshighlightingimportantdatewithCalendarcontrol,320restrictingdatesinCalendarcontrol,319–323SQLstatements,462DateTimeclassarithmeticoperators,34natureandbehaviorofdatatypes,66propertiesandmethods,35DateTimedatatype,21,719DateTimetype/class,34–36Dayproperty,DateTimeclass,35DayHeaderStyleproperty,Calendarcontrol,317DayNameFormatproperty,Calendarcontrol,321DayOfWeekproperty,DateTimeclass,35DayRenderevent,319–320,323Daysproperty,TimeSpanclass,35DaysInMonthmethod,DateTimeclass,35DayStyleproperty,Calendarcontrol,317DBUtilclassAddItemmethod,usingwithObjectDataSource,762–764creatingdata-accesscomponent,750–753GetCategoriesmethod,usingwithObjectDataSource,760–764GetItemsmethod,usingwithObjectDataSource,761–764usingwithObjectDataSource,760debugattribute,compilationtag,895Debugwindow,VisualStudio,41debuggingcomponent-basedprogramming,736componentsusingVisualStudio,757disablingcachingwhiletesting,769pagetracing,239–250VisualStudiobenefits,84breakpoints,119commandsinbreakmode,122customizingbreakpoints,123debugginglargewebsite,123runningwebapplicationforfirsttime,134singlestepdebugging,119–122variablewatchwindows,124–125VisualStudiowebserver,118–119Decimaldatatypeformatstring,546natureandbehaviorof,66decimaldatatype,C#,21Decimaldatatype,.
NET,21declarativeexpression,793defaultbutton,webcontrols,183defaultcontent,401–402DefaultDocumenticon,884defaultnamespace,741defaultpage,settingdefaultpage,885defaultthemes,386DefaultAppPool,877Default.
aspxfile,60–61,93,413DefaultButtonproperty,183DefaultContainerNameproperty,825DefaultFocusproperty,183DefaultModeproperty,DetailsViewclass,762defaultProviderattribute,membershipelement,676defaultValueattribute,addtag,717deferredexecutionfeature,794,811delegatesaddingeventsto.
NETclasses,59delegatevariables,47–48events,48.
NETtypes,66signatures,47INDEX928DeletemethodDirectoryclass,582DirectoryInfoclass,588Fileclass,583FileInfoclass,588DELETEstatement,465–466,481,489–490Deletetab,UpdateWizarddialogbox,807DeleteCommandproperty,SqlDataSourceclass,525,533,535,558DeleteCommandTypeproperty,SqlDataSourceclass,525Deleted/Deletingeventspagelifecycle,523SqlDataSourcecontrol,532–533DeleteInactiveProfilesmethod,ProfileManagerclass,727DeleteMethodproperty,760DeleteObject()method,822,828DeleteProfilemethod,ProfileManagerclass,727DeleteProfilesmethod,ProfileManagerclass,727DeleteRolemethod,Rolesclass,704deletes,820–822DeleteUsermethod,Membershipclass,682denial-of-serviceattack,607denyrule,web.
configfile,654,664dependenciesCacheclasssupportfor,774cachedependencies,785–790filedependencies,785–786SQLServer2000cachedependencies,787SQLServercachedependencies,790dependenciesparameter,775deploymentdatabaseconfiguration,896deployingASP.
NETwebsite,895additionalconfigurationsteps,896ASPNET/networkserviceaccounts,878–879codecompilation,896–897usingcustomcomponents,895–896deployingASP.
NETwebsitewithVisualStudiocopyingwebsitetoremotewebserver,901–904creatingvirtualdirectoryfornewproject,898–901overview,897publishingwebsite,904–905IISsecuritysettings,896seamlessdeploymentmodel,130VisualStudio,projectlessdevelopment,89Windowsaccountpermissions,896XCopydeployment,896DescendantNodes()method,629Descendants()method,629descriptionattribute,addtag,677Descriptionbox,NewStyledialogbox,372deserialization,customdatatypes,724design,three-tierdesign,736–737designview,VisualStudio,95–98,100,110.
Designer.
csfile,808DestinationPageUrlproperty,690,693DetailsViewclass,535,762DetailsViewcontrol,573–575AllowPagingproperty,573AutoGenerateEditButtonproperty,534AutoGenerateRowsmethod,528AutoGenerateRowsproperty,574bindingto,530briefdescription,539creatingbuttons,574definingfields,574–575DetailsViewwithpaging,573editingwith,534howtouse,528introduction,573PagerSettingsproperty,573PagerStyleproperty,573repeated-valuedatabinding,507representingfields,574ShowHeaderproperty,574usingwithObjectDataSource,763DHTMLASP.
NETprocessexplained,142EnableClientScriptproperty,296diagrams,ofdatamodels,803–806Dictionarycollectionclass,512dictionarycollections,repeated-valuedatabindingwith,512–513Digestmode,Windowsauthentication,890digitalcertificates,howSSLworks,894digits,regularexpressioncharacters,307directdataaccess,ADO.
NET,467–490directives,OutputCachedirective,768INDEX929directories.
Seealsofilesystem;virtualdirectoriesapplicationdirectories,129–130authorizationrulesforaccessing,653configurationinheritance,165creatingfilebrowser,590–594retrievinginformationabout,580reviewingdirectorycontents,584virtualdirectory,127–129DirectoryBrowsingicon,884Directoryclass,582–587DirectoryInfoclasscompared,587GetFilesmethod,586methods,582retrievinginformationaboutfilesanddirectories,580Directoryproperty,FileInfoclass,589DirectoryInfoclasscreatinginstanceof,589Directoryclasscompared,587GetDirectoriesmethod,590,594GetFilesmethod,590,594,604methods,587–588Nameproperty,594properties,587–588retrievinginformationaboutfilesanddirectories,580DirectoryNameproperty,FileInfoclass,589disabledaccounts,membershipdatastore,687Disabledproperty,HtmlControlclass,154DisappearAfterproperty,Menucontrol,445disconnecteddataaccess,ADO.
NET,491definingrelationshipsindatasets,495selectingdisconnecteddata,492–494updatingdisconnecteddata,492DisplaypropertyBaseValidatorclass,296RangeValidatorcontrol,299DisplayModepropertyBulletedListcontrol,187ValidationSummarycontrol,301DisplayRememberMeproperty,Logincontrol,693DisplaySideBarpropertyCreateUserWizardcontrol,695Wizardcontrol,333Disposemethodconnectionesclass,474Graphicsclass,359DISTINCTkeyword,463divelementaddingastyletoadiv,370applyingstylesheetrules,382HTMLgreetingcardgeneratorexample,201groupingtextandcontrols,202insertingformattedtextintowebpage,138relatedwebcontrolclasses,175usingstyleddivision,374XHTML,107,109DivideByZeroExceptionclassoverlappingexceptionhandlers,222throwingexceptions,224–225DivideNumbers()methodnestedexceptionhandlers,221throwingexceptions,224division,arithmeticoperations,28dllassemblies,creatingdata-accesscomponent,751DLLassemblyfile,creatingcomponents,740dllextension,70DLLfilesaddingreferencestocomponents,744Bindirectory,130DNSregistry,867–868doctypescomponentsandstructureofwebform,102–104configuringleveloferrorchecking,116creatingframespages,104default,102doctypesusedinthisbook,104omittingXHTMLdoctypetosavespaceinbook,145usingHTMLstandard,103usingXHTML,102–104documentdirectory,solutionfiles,90Documentproperty,Xmlwebcontrol,642DocumentContentproperty,Xmlwebcontrol,642DocumentSourceproperty,Xmlwebcontrol,642domainnames,867INDEX930doPostBackfunction,197–198dot(.
)syntax,819doubledatatype,C#,21Doubledatatype,.
NET,21do.
.
.
whileloop,42down-levelbrowsers,description,294DragPanelExtender,860DrawArcmethod(),Graphicsclass,358DrawBezier()method,Graphicsclass,358DrawIcon()method,Graphicsclass,358DrawImage()method,Graphicsclass,358drawing.
Seealsodynamicgraphicsantialiasing,365basicstepsusingGDI+,357–359drawingcustomimages,360–361drawingmethodsofGraphicsclass,358indicatingpixelcoordinates,359measuringpixels,359optimizingdrawingcodeforappearanceorspeed,364specifyingBrushorPenobject,359xandycoordinates,359DrawLine()method,Graphicsclass,358DrawRectangle()method,Graphicsclass,358DrawXyzmethods,Graphicsclass,360DriveFormatproperty,DriveInfoclass,590DriveInfoclass,580,589–590DriveTypeproperty,DriveInfoclass,590drop-downlistselementrepresentinginHTML,145storinginformationindrop-downlist,146–147DropDownExtender,860DropDownListcontrolclass,175,184,195,507,526,815–817.
SeealsolistcontrolsDropShadowExtender,860Durationattribute,OutputCachedirective,768dynamicgraphics.
SeealsoGDI+antialiasing,365basicdrawing,357–359creatinggraphicscontextforimages,357drawingcustomimages,360–361drawingmethodsofGraphicsclass,358GDI+,357imageformatsandquality,363–365indicatingpixelcoordinates,359measuringpixels,359optimizingdrawingcodeforappearanceorspeed,364overview,357placingcustomimagesinwebpages,361–363releasingresources,359specifyingBrushorPenobject,359xandycoordinates,359dynamicpages,outputcaching,770dynamicstyles,Menucontrol,444DynamicHoverStyleproperty,Menucontrol,444DynamicItemTemplateproperty,Menucontrol,445DynamicMenuItemStyleproperty,Menucontrol,444DynamicMenuStyleproperty,Menucontrol,444DynamicPopulateExtender,861DynamicSelectedStyleproperty,Menucontrol,444Eeparameter,eventhandlers,139,152e-commercewebsitessecurityrequirements,647usesofdatabasewithASP.
NET,452EditIndexproperty,GridViewcontrol,568editingwithGridViewtemplate,568–572editingwithvalidation,570–571editingwithoutcommandcolumn,571–572EditItemTemplatemode,TemplateFieldtemplates,566Editorcontrol,863EditRowStyle,GridViewcontrol,548Element()method,628elements.
SeealsoHTML,elements;XML,elementscomplextypes,636HTMLandXHTML,105–107tagsandelements,105XHTMLelements,106Elements()method,628–629ellipse,Graphicsclass,358ellipsis(.
.
.
)button,826INDEX931elsekeyword,ifstatement,38e-mailpreventingmessagefrombeingsent,700regularexpressionforaddress,308retrievingmessagecontent,700emphasiselement,XHTML,106Employeeclass,792,808Employeetable,808EmployeeNameclass,797Employeestable,823emptyelement,XML,413EmptyDataRowStyle,GridViewcontrol,548EmptyDataTemplateclass,566EnableSelectionoption,GridViewsmarttag,826EnableCachingpropertydatasourcecontrolcaching,781SqlDataSourceclass,526EnableClientScriptproperty,296,298,302–303enabledattribute,application-leveltracing,250EnabledpropertyBaseValidatorclass,296Timercontrol,stoppingtimer,850WebControlclass,178EnableDeleteproperty,828EnableInsertproperty,828enablePasswordResetattribute,addtag,678enablePasswordRetrievalattribute,addtag,678EnableThemingproperty,387EnableUpdateproperty,828EnableViewStatepropertyHtmlControlclass,154Labelcontrol,298Pageclass,156webcontrols,254WebControlclass,178encapsulationcomponent-basedprogramming,738data-accesscomponents,750description,735encryptionconfiguringmembershipprovider,678formsauthentication,658querystringstransferringinformationinURLs,266SSL,894viewstatedata,255–256endoflinecharacter,seestatementtermination,C#EndElementnode,readingXML,622EndRequestevent,Applicationclass,161EndsWith()method,Stringclass,33entities,808EntityDataModelWizard,VisualStudio,800entitydatamodels,creating,800–803EntityFrameworkconcurrency,822–823creatingentitydatamodels,800–803datamodelcodecontexts,809entities,808datamodeldiagrams,803–806loadeddata,818–819navigatingrelationships,812–814overview,799queryingdatamodels,809–810queryingwithLINQtoEntities,815–818troubleshooting,810–812updates,inserts,anddeletes,820–822updatingdatamodels,806–807EntityDataSourcecontroldisplayingdata,823–827editingdata,828overview,823EntityDataSource.
Whereproperty,826EntitySetNameproperty,825Enumclass,207enumerationsbriefdescription,349.
NETtypes,66overview,26–27UserTypeenumeration,27webcontrolclasses,179–180equaltooperator(==),37equalitytestingreferencetypes,64Stringclass,66valuetypes,64errorchecking,VisualStudiobenefits,83errordetectioncheckingforpotentialerrorconditions,218testingspecificerrorconditions,125VisualStudio,15INDEX932errorhandlers,NET.
NETprocessonoccurrenceoferror,214errorhandlingcreatingfilebrowser,594creatinglistoffilesindirectory,586currencyconverter,144data-accesscomponentenhancement,757guestbookfileaccessexample,604HTMLservercontrols,144partialrefreshesusingAjax,837–839testingdatabaseconnections,473errorinformation,throwingexceptionswithoutdetails,758ErrorListwindow,VisualStudio,116errorpagescustomerrorpages,886–888exceptionhandlingand,215NET.
NETprocessonoccurrenceoferror,215ErrorPagesicon,884errorunderlining,VisualStudio,115–116ErrorMessageproperty,296,303–304errors.
Seealsoexceptionhandling;exceptions404NotFounderror,413Application_Errorevent,162CLRand,14commonerrors,213–215customexceptionclasses,226–228narrowingconversions,29NET.
NETprocessonoccurrenceof,214pagetracing,239–250reportingduringdebugging,224escapingspecialcharacters,24EvalmethodDataBinderclass,551,563–564SiteMapPathcontrol,433eventbubbling,568eventhandlersaddingeventsto.
NETclasses,59–60addingindesignview,110addinginPropertieswindow,111code-behindclass,139creatingdifferenteventhandler,162creatingforHTMLservercontrols,140creating/attachingeventhandlers,111eparameter,152greetingcardgeneratorexample,209pagedirective,133parameters,139,152ToStringmethod,140writingcodeinVisualStudio,110eventhandlingAdRotatorcontrol,326automaticeventwireup,141cachingmultipleversionsofwebpage,771currencyconverter,140–141inGridViewtemplate,567–568HTMLservercontrols,140–141manualeventwireup,141pagelifecycle,201Onprefix,141redirectingusertonewwebpage,157ServerClickevent,HtmlInputButton,138TableTestclass,191validatedwebformexample,310validatingXMLdocumentagainstschema,639VisualStudio,141eventhandlingwebpage,141eventlogs.
Seealsologgingeventscustomloggingclass,236customlogs,234–235increasinglogsize,232potentialproblemswith,231viewingWindowseventlogs,229–232whentouse,231,237writingtoeventlogs,232–233eventtrackerapplicationwatchingeventsinpagelifecycle,198watchingeventsinpagelifecycle,201EventViewertoolcustomeventlogs,235viewingWindowseventlogs,229–230writingtoeventlogs,233EventArgsclasspassinginformationwithevents,354–355usercontrolevents,352EventArgsobject,152event-drivenprogrammingmodel,60EventHandlerdelegate,352EventLogclasscustomeventlogs,234retrievingloginformation,237eventsaddingto.
NETclasses,59–60applicationevents,160–162INDEX933AutoPostBackproperty,195capturingchangeeventimmediately,195delegates,48HTMLservercontrols,131,151HtmlInputImagecontrol,152–153introductiontoclasses,50NET.
NETFramework,352orderofinpageprocessing,194Page.
Loadevent,145passinginformationwith,354–356postbackevents,197–198servercodereactingimmediatelyto,194ServerChangeevent,152ServerClickevent,151usercontrolevents,352–354webcontrolevents,201webcontrolsandautomaticpostbacks,193–198webforms,138exceptionchains,217–218Exceptionclasscatchingexceptionsinheritedfrom,220errortypes,216inheritancefrom,216InnerExceptionproperty,exceptionchains,217–218overview,215propertiesandmethods,216exceptionclasses,custom,226–228exceptionhandling.
Seealsoerrors;exceptionscatchingspecificexceptions,219–220determiningwhichexceptionstocatch,220errorpagesand,215exceptionchains,217–218Exceptionclass,215–217nestedexceptionhandlers,221–222noactiveexceptionhandlerexists,222overlappingexceptionhandlers,221partialrefreshesusingAjax,837structuredexceptionhandling,215,224testingoccurenceofexceptions,222–224try.
.
.
catch.
.
.
finallyblocks,219whentouseexceptionhandlers,224exceptionhandling,validatedwebformexample,311exceptionobjectsInnerExceptionproperty,215throwingexceptions,225writingtraceinformation,248Exceptionproperty,SqlDataSourceStatusEventArgsclass,533exceptiontypes,structuredexceptionhandling,215ExceptionHandledproperty,SqlDataSourceStatusEventArgsclass,533exceptions.
Seealsoerrors;exceptionhandlingloggingexceptionscustomloggingclass,236customlogs,234–235retrievingloginformation,237–239viewingWindowseventlogs,229–232writingtoeventlogs,232–233"Mustdeclarethescalarvariable",557nullreferenceexception,213testingoccurenceofexceptions,222–224throwing,224–228,758Exceptionsdialogbox,216exeextension,assemblyfiles,70ExecuteNonQuerymethod,481ExecuteReadermethod,476Existsmethod,582–583Existsproperty,587ExpandDepthproperty,TreeViewcontrol,437ExpandImageUrlproperty,TreeViewcontrol,438explicitcasting,narrowingconversions,30Exponentialdatatype,formatstring,546ExpressEdition.
SeeSQLServerExpressExpressionEditorwindow,826expressions,LINQfilteringandsorting,798–799overview,795projections,796–797extensibility,VisualStudiobenefits,84eXtensibleStylesheetLanguage(XSL),640Extensionproperty,587externalstylesheets,description,368INDEX934FFadeTransitionsproperty,Accordioncontrol,854FailureTextproperty,690,692FailureTextStyleproperty,691FeaturesView,IISManager,873fields,declaring,52Fieldsdialogbox,545fileaccesscookies,596simplestleveloffileaccess,580usingfileswithwebapplications,580webapplications,579filebrowser,creating,590–594FileclassClosemethod,596CreateTextmethod,594FileInfoclasscompared,587GetAttributesmethod,586methods,583,598Openmethod,596–597OpenReadmethod,597OpenTextmethod,595OpenWritemethod,596overview,582quickaccessmethods,597–598retrievinginformationaboutfilesanddirectories,580filedependencies,785–786filepermissions,accessingfileswithoutrequiredpermissions,587filesystemcreatingfilebrowser,590–594Directoryclass,582–587DirectoryInfoclass,587–589DriveInfoclass,589–590Fileclass,582–587FileInfoclass,587–589NET.
NETclassesretrievinginformationabout,580Pathclass,581–582retrievinginformationaboutfilesanddirectories,580FileSystemoption,902filetypesASP.
NET,128HTMLservercontrolclassfor,136fileuploads,604–607FileAttributesenumeration,586FileInfoclasscreatingfilelists,586creatinginstanceof,589Fileclasscompared,587methods,587,589Nameproperty,594overview,587properties,587,589retrievinginformationaboutfilesanddirectories,580FileNameproperty,PostedFileclass,606FileNotFoundExceptionclass,217filesallowinguploads,604–607authorizationrulesforaccessing,653–654creatingfilebrowser,590–594creatinglistof,584limitationsusingwithwebapplications,579readingandwritingwithstreams,594–604binaryfiles,596–597guestbookexample,598–604quickfileaccessmethods,597–598textfiles,594–596retrievingfilesize,584retrievinginformationabout,580FileStreamclass,359FileSystemInfobaseclass,587FileUploadcontrol,604–605Fillmethod,493FillRectangle()method,Graphicsclass,358FillXyzmethods,Graphicsclass,360FilteredTextBoxExtender,861filteringcachingand,784cachingwithSqlDataSourcecontrol,783LINQexpressions,798–799finallyblock.
Seetry.
.
.
catch.
.
.
finallyblocksFindControlmethod,304,697FindInactiveProfilesByUserNamemethod,ProfileManagerclass,727FindProfilesByUserNamemethod,ProfileManagerclass,727FindSiteMapNodemethod,SiteMapProviderclass,425INDEX935FindUsersByEmailmethod,Membershipclass,683FindUsersByNamemethod,Membershipclass,682FindUsersInRolemethod,Rolesclass,704FinishButtonClickeventCreateUserWizardcontrol,696Wizardcontrol,338FinishCompleteButtonStyleproperty,Wizardcontrol,339FinishPreviousButtonStyleproperty,Wizardcontrol,339Firstproperty,796FirstBulletNumberproperty,BulletedListcontrol,187FirstDayOfWeekproperty,Calendarcontrol,322FirstNameproperty,718,797FixedDecimaldatatype,formatstring,546flatfiles,readingandwritingwithstreamsbinaryfiles,596–597overview,594quickfileaccessmethods,597–598textfiles,594–596floatdatatype,C#,21Focusmethod,183Fontcategory,NewStyledialogbox,371Fontpropertyconfiguringwebcontrols,100webcontrolclasses,181–182WebControlclass,178FontFamilyclass,206FontInfoclass,181–182fontsdrawingcustomimages,360greetingcardgeneratorexample,206–207usingNamesproperty,182FontUnittype,181Footerclass,350–351footerusercontrolsindependentusercontrols,347integratedusercontrols,349–351footers,reusingfootersinwebpages,345FooterStyle,GridViewcontrol,548FooterStyleproperty,BoundFieldclass,544FooterTemplatemode,TemplateFieldtemplates,566FooterTextproperty,BoundFieldclass,543forloop,40–41foreachblock,793–794,811,815,819foreachloop,41–42,795ForeColorpropertyBaseValidatorclass,296configuringwebcontrols,99TextBoxcontrol,175ValidationSummarycontrol,301WebControlclass,177foreignkeys,495Formclass,IsValidpropertyhowvalidationworks,299manualvalidation,302formcollection,tracinginformation,246formelementHTML,5currencyconverterexample,138DefaultFocusproperty,183enclosingelementsin,132HTMLservercontrolclassfor,135XHTML,107,109formatstringsdateandtimeformatstrings,547description,546numericformatstrings,546formattinginXHTML,108formattingpropertiesCSSPropertieswindow,375styles,369FormParametercontroltag,529formscookiesecurity,272parametertypes,529validatedwebforms,308–313formsauthenticationaccesscontrolrules,652authenticationtag,web.
configfile,651authorizationrulesaccessforspecificusers,654–655accessingspecificdirectories,653accessingspecificfiles,653–654overview,651–652cookiesdestroying,661propertiesrelatingto,658identities,661implementing,650loginpageoverview,657–659INDEX936formsauthentication(continued)loginpage(continued)retrievinguseridentity,660–661signingout,661membership,669membershipdatastore,669–687profiles,713restrictinganonymoususeraccess,651settingupusingtheWAT,655–657settingupwebsitetouse,670web.
configsettings,651formstag,formsauthentication,651,670FormsAuthenticationclassloginpage,657methodsandproperties,658RedirectFromLoginPagemethod,659FormsCookieNameproperty,FormsAuthenticationclass,658FormsCookiePathproperty,FormsAuthenticationclass,658FormsIdentityclass,661FormsViewclass,762FormViewcontrolAllowPagingproperty,576briefdescription,539introduction,573repeated-valuedatabinding,507fragmentcaching,767,769,772frametargets,AdRotatorclass,325framesdoctypespages,creating,104masterpagescompared,391FramesPerSecondproperty,Accordioncontrol,856friendlyURLs,428FROMclause,461fromclause,795FromImagemethod,Graphicsclass,357FromXyzmethods,TimeSpanclass,36FTPdirectory,584FTPSiteoption,903FullNameproperty,587fullyqualifiedclassnames,69functionReferencevariable,47GGAC(GlobalAssemblyCache),896garbagecollection,53Garbage.
jpgfile,60GDI+.
Seealsodynamicgraphicsbasicstepsforusing,357creatinggraphicscontextforimages,357drawingcustomimages,360drawingmethodsofGraphicsclass,358introduction,357optimizingdrawingcodeforappearanceorspeed,364Generaldatatype,formatstring,547GenerateDatabasefromModelcontextmenuitem,808GeneratePasswordmethod,Membershipclass,683genericcollections,repeated-valuedatabinding,509–510generics,77–78GeoTrustcertificateauthority,892getaccessoraddingpropertiesto.
NETclasses,54–55automaticproperties,56GetAllInactiveProfilesmethod,ProfileManagerclass,727GetAllProfilesmethod,ProfileManagerclass,727GetAllRolesmethod,Rolesclass,704GetAllUsersmethod,Membershipclass,683,685GetAttributesmethod,Fileclass,583,586GetAuthCookiemethod,FormsAuthenticationclass,658GetBaseExceptionmethod,Exceptionclass,216GetCategoriesmethod,750,760,764GetCreationTimemethod,Directoryclass,582GetCreationTimemethod,Fileclass,583GetCurrentDirectorymethod,Directoryclass,583GetDataSetmethod,cachinginDataSet,779–780GetDescriptionFromTitlemethod,446–447GetDirectoriesmethod,Directoryclass,583GetDirectoriesmethod,DirectoryInfoclass,590,594GetDirectoryNamemethod,Pathclass,582GetDrivesmethod,DriveInfoclass,590INDEX937GetElementByIdmethod,XmlDocumentclass,631GetElementsByTagNamemethod,XmlDocumentclass,631GetFileNamemethod,Pathclass,581–582,606GetFileNameWithoutExtensionmethod,Pathclass,582GetFilesmethodDirectoryclass,583,586DirectoryInfoclass,588,590,594,604GetFullPathmethod,Pathclass,582GetHtml()method,57,61GetInfomethod,745–746GetItemsmethodcreatingdata-accesscomponent,750DBUtilclass,761,764overloadingindatabasecomponentexample,753GetLastAccessTimemethodDirectoryclass,582Fileclass,583GetLastWriteTimemethodDirectoryclass,582Fileclass,583GetLengthmethod,Arrayclass,36GetLogicalDrivesmethod,Directoryclass,583GetLowerBound()method,Arrayclass,37GetNamesmethod,Enumclass,207GetNameswebmethod,858GetNumberOfInactiveProfilesmethod,ProfileManagerclass,727GetNumberOfProfilesmethod,ProfileManagerclass,727GetNumberOfUsersOnlinemethod,Membershipclass,683GetParentmethod,Directoryclass,583GetParentRowsmethod,DataRowclass,496GetPasswordmethod,MembershipUserclass,684GetPathRootmethod,Pathclass,582GetProfilemethod,Profileclass,725,730GetPropertyValuemethod,ProfileBaseclass,717GetRedirectUrlmethod,FormsAuthenticationclass,658GetRolesForUsermethod,Rolesclass,704GetUpperBound()method,Arrayclass,36–37GetUsermethod,Membershipclass,682–683GetUserNameByEmailmethod,Membershipclass,682GetUsersInRolemethod,Rolesclass,704GIF,imageformatsandquality,363globalapplicationevents,respondingto,161globalapplicationfile,129GlobalAssemblyCache(GAC),896globalresources,App_GlobalResourcesdirectory,129globalthemes,384Global.
asaxeventhandler,287Global.
asaxfile,129,161–162GlobalSigncertificateauthority,892Google,querystringstransferringinformationinURLs,265Graphicsclasscreatinggraphicscontextforimages,357Disposemethod,359drawingmethodsof,358DrawXyzmethods,360FillXyzmethods,360FromImagemethod,357indicatingpixelcoordinates,359measuringpixels,359SmoothingModeproperty,365graphics,dynamicbasicdrawing,357–359drawingcustomimages,360–361embedding,361imageformatsandquality,363–365placingcustomimagesinwebpages,361–363Graphics.
TextRenderingHintproperty,365greaterthanoperator(>),37,159,462greaterthanorequaltooperator(>=),38greetingcardgeneratorexample,201–210gridlayoutfeature,VisualStudio,98GridLinesproperty,GridViewcontrol,546GridViewcontrolAutoFormatfeature,601AutoGenerateColumnsproperty,544,728automaticcolumngeneration,540–541INDEX938GridViewcontrol(continued)automaticpagingfeature,561BoundFieldcolumntype,542briefdescription,539columntypes,542configuringcolumns,543–544creatingscrollableGridView,546DataBindmethod,780DataFormatStringproperty,546DataItemproperty,550DataKeyNamesproperty,557DataSourceIDproperty,541definingcolumns,542–545EditIndexproperty,568editingwithGridView,556–558EmptyDataTemplate,566formatstrings,546formatting,546–552configuringstyleswithVisualStudio,550formattingfields,546–547properties,546specificvalues,550–552usingstyles,547–550generatingcolumnswithVisualStudio,544–545guestbookfileaccessexample,599–601linkingtoObjectDataSource,761PagerTemplate,566pagingevents,561pagingGridView,561–563pagingproperties,561repeated-valuedatabinding,507RowCommandevent,568RowDataBoundevent,550–551selectingGridViewrowaddingselectbutton,553–554creatingmaster-detailspages,554–556overview,552usingdatafieldasselectbutton,554sortingandselectingatsametime,560sortingGridView,559styles,548templatesaddingcontrolstotemplates,567editinginVisualStudio,566–567editingwithGridViewtemplate,568–572editingwithvalidation,570–571editingwithoutcommandcolumn,571–572handlingeventsinGridViewtemplate,567–568multipletemplates,565–566overview,563–564usingdata-accesscomponent,755–756GridViewsmarttag,826GridView1.
DataBind()method,811GridView.
AutoGenerateSelectButtonproperty,826GridView.
Columnscollection,817GridView.
DataSourceIDproperty,826GridViewRowcontrol,550–551GridViewRowEventArgsclass,551groupclause,795groupelement,organizingprofileproperties,721groups,profilegroups,721–722guestbookexample,readingandwritingwithstreams,598–694Guestrole,defaultWindowsroles,665Hh1,h2,.
.
.
elements,XHTML,105–106handlingerrors,datasourcecontrols,532–533handlingexceptions.
SeeexceptionhandlingHasExtensionmethod,Pathclass,582hashcode,encryptionofviewstatedata,256hashingpasswords,configuringmembershipprovider,678HashPasswordForStoringInConfigFilemethod,FormsAuthenticationclass,658Hashtablecollection,repeated-valuedatabinding,509,512headelementHTML,4,137,393XHTML,108–109HeaderImageUrlproperty,BoundFieldclass,543headerscollection,tracinginformation,245masterpages,392reusingheadersinwebpages,345INDEX939HeaderStyle,GridViewcontrol,548HeaderStylepropertyBoundFieldclass,544Wizardcontrol,339HeaderTemplatemode,TemplateFieldtemplates,566HeaderTextpropertyBoundFieldclass,543ValidationSummarycontrol,301Heightproperty,WebControlclass,178Helpindex,determiningwhichexceptionstocatch,220HelpLinkproperty,Exceptionclass,216HelpPageIconUrlproperty,Logincontrol,693HelpPageTextproperty,Logincontrol,693HelpPageUrlproperty,Logincontrol,693hexcode,insertingspecialcharacters,24hiddentype,inputelementHTMLsenttobrowser,134HTMLservercontrolclassfor,137horizontallayout,Menu/TreeViewcontrolscompared,444horizontallineelement,XHTML,106HorizontalPaddingproperty,TreeNodeStyleclass,439hostingservice,deployingASP.
NETwebsite,895Hourproperty,DateTimeclass,35Hoursproperty,TimeSpanclass,35HoverMenuExtender,861HoverNodeStyleproperty,TreeViewcontrol,440hrelement,XHTML,106hrefattribute,aelement,107HRefproperty,HtmlAnchorclass,152HTMLaddinginVisualStudio,100attributes,107–108controls,133convertingHTMLpagetoASP.
NETpage,131–134documentsbodyelement,4description,4headelement,4webformmarkup,100–101elements,105–107comparedtoXMLelements,611objectinterface,131servercontrolclasses,135–137transformingintoservercontrols,133XHTML,108encodingtextcontainingspecialcharacters,158–160evolutionofwebdevelopment,3–6formscontrols,5description,5evolutionofwebdevelopment,3–6formtag,5referencestointhisbook,103reusingwebpagemarkup,343servercontrolsaddingcodetocurrencyconverter,138–140addingtopagedynamicallyatruntime,141classes,135–137convertingHTMLpagetoASP.
NETpage,131–134creatingeventhandlersfor,140defaultbuttons,183errorhandling,144eventhandling,140–141EventArgsobject,152events,151inheritance,151InnerTextproperty,159OnServerClickattribute,141overview,130–131postbacks,193representingHTMLinputcontrols,133runat="server"attribute,133ServerChangeevent,controlsproviding,152ServerClickevent,controlsproviding,152Stylecollection,150transformingHTMLelementsinto,133webcontrolscompared,173specialcharacters,159tagsapplyingstylesheetrules,378,381–382inputtag,174ScriptManagercontrol,832selecttag,174tutorialresources,5XHTMLand,103INDEX940HtmlAnchorclass/control,135,137,151–152HtmlButtonclass,136HtmlContainerControlclass,155HtmlControlclass,151,154HtmlDecodemethod,HttpServerUtilityclass,160HtmlEncodemethod,HttpServerUtilityclass,159–160HtmlEncodeproperty,BoundFieldclass,544HtmlFormclasscurrencyconverterexample,138DefaultButtonproperty,183description,135HtmlGenericControlclass,137–138HtmlHeadclass,137HtmlImageclass,136–137,151HtmlImageservercontrol,403HtmlInputButtonclasscurrencyconverterexample,138description,136handlingServerClickevent,138ServerClickmethod,141HtmlInputCheckBoxclass,136–137HtmlInputControlclass,156HtmlInputFileclass,136HtmlInputHiddenclass,137HtmlInputImageclass,136–137,152HtmlInputImagecontrol,152–153HtmlInputPasswordclass,136HtmlInputRadioButtonclass,136–137HtmlInputResetclass,136HtmlInputSubmitclass,136HtmlInputTextclass,136–138HtmlSelectclass,137,146,507HtmlTableclass,136HtmlTableCellclass,136HtmlTableRowclass,136HtmlTextAreaclass,136–137HtmlTitleclass,137HTTPcookie,formsauthenticationsettings,651HTTPheaders,pagetracing,245HttpApplicationStateclass,286HttpCookieclass,270HttpCookieModeenumeration,278HttpRequestclass,Pageclass,157HttpResponseclass,157HttpServerUtilityclass,157–160,269HttpSessionStateclass,273–274Hyperlinkcontrol,174,187,347,352HyperLinkFieldclass,542hyperlinks,redirectingusertonewwebpage,157HyperLinkStyleproperty,691Iielement,XHTML,106,108IButtonControlinterface,183,260iconsdrawingwithGraphicsclass,358IDattribute,133IDataSourceinterface,521identities,formsauthentication,661identityobjects,FormsIdentityclass,661Identityproperty,Userclass,661,666IEnumerableinterface,507,795IEnumerable,795IEnumerablecollection,796ifstatement,38IIS(InternetInformationServices),869accessingconfigfilesviaIIS,168checkingifIISinstalled,871configurationicons,884configuringWindowsauthenticationinIIS7,892deploymentconfiguration,896howIIShandlesanASPfilerequest,866howwebserverswork,865–866IIScustomerrors,886,888installingIIS7inWindowsServer2008,871–872installingIIS7inWindowsVista,871managingwebsiteswithIISManager,873networkserviceaccount,878versions,870Windowsauthentication,663,892IISManagerApplicationSettingsicon,883changingnetworkserviceaccount,877ConnectionStringsicon,883IISManagerforIIS7,873–874managingwebsiteswithcreatingvirtualdirectory,874customerrorpages,886–888overview,873settingdefaultpage,885INDEX941.
NETProfileicon,883SessionStateicon,883IL(IntermediateLanguage)CLR,13–14,18.
NETclasslibrary,14overview,11–13VisualStudio,15–16Imageclass,359,361Imagecontrolclassaddinglinkedimages,147imgtagunderlying,174underlyingHTMLelement,174usinginsteadofimgtag,433imageelement,XHTML,106imagetype,inputelementHTMLservercontrolclassfor,136relatedwebcontrolclasses,174ImageButtoncontrol,174,567ImageClickEventArgsobject,152–153ImageFieldclass,542imagescreatinggraphicscontextfor,357customdrawing,360–361placinginwebpages,361–363drawingwithGraphicsclass,358formatsandquality,363–365linked,147–149aspartoftheme,390–391savingtovalidstream,359sizingbitmapscorrectly,357ImageSetproperty,TreeViewcontrol,436,438ImageUrlelement,AdvertisementFile,324ImageUrlproperty,TreeNodeStyleclass,438imgelementHTML,136,174masterpagesandrelativepaths,402–403placingimagesinwebpages,361relatedcontrolclasses,174usinganImagecontrolinstead,433XHTML,106–107Impressionselement,AdvertisementFile,324Includeforeignkeycolumnsoption,VisualStudio,803Include()method,819indentingcode,automaticformattinginVisualStudio,117independentusercontrols,347–349IndexOf()methodArrayclass,37Stringclass,33infinityvalues,221inheritanceclasses,71–72configurationinheritance,165CSS(CascadingStyleSheets),369HTMLservercontrols,151HtmlContainerControlclass,155HtmlControlclass,151,154Pageclass,156propertiesusing,369styleinheritance,376–377webcontrols,177webpages,156Initmethod,Pageclass,265,523InitialCatalogproperty,470–471initialization,variables,22–24inlinestylescreatingoverview,368stylebuilder,369–374description,368InnerExceptionproperty,215–218,228InnerHtmlproperty,HtmlContainerControlclass,155InnerTextproperty,HtmlContainerControlclass,155,159in-placecompilation,897in-placeconversion,migratingwebsites,95InProcvalue,sessionStatetag,282inputcontrols,Focusmethod,183inputelement,HTMLHTMLservercontrolclassesfor,136–137IDattribute,133OnServerClickattribute,139,141relatedwebcontrolclasses,174–175representingHTMLinputcontrols,133inputtagrelatedcontrolclasses,174type=file,FileUploadcontrolrepresenting,604Insert()methodCacheclass,774–775Stringclass,33INDEX942INSERTstatement,465,481,483–485InsertCommandproperty,525,533,535InsertCommandTypeproperty,SqlDataSourceclass,525Inserted/Insertingevents,523,532–533InsertItemTemplatemode,566InsertMethodproperty,760,762inserts,820–822InsertVisibleproperty,BoundFieldclass,544InstalledFontCollectionclass,206instancemembers,classes,51,580instancemethodsDBUtilclass,750usinginstanceorstaticmethods,747instancesofclasses,addingconstructorsto.
NETclasses,58instantiation,creatingobjectsof.
NETclasses,53–54InstructionTextproperty,691–692InstructionTextStyleproperty,691intdatatype,C#,21Int16datatype,.
NET,21Int32class,311Int32datatype,21,66Int32type/class,31Int64datatype,.
NET,21integers,divisionof,28Integratedmode,Windowsauthentication,890IntegratedSecurityproperty,connectionstrings,470integratedusercontrols,349–352integratedWindowsauthentication,470IntelliSense,VisualStudioautomaticcoloringofcode,117automaticformattingofcode,117automaticallyimportingnamespaces,116–117debugging,118errorunderlining,115–116memberlist,113–115outlining,112–113overview,15interactivecontrols.
SeeintegratedusercontrolsinterfacesHTMLservercontrols,131.
NETtypes,66objectinterfaceforHTMLelements,131webcontroluserinterface,173IntermediateLanguage(IL).
SeeIL(IntermediateLanguage)internalkeyword,52internalstylesheets,368Internet,evolutionofwebdevelopment,3–9InternetExplorer,quirksmode,102Internethostingservice,deployingASP.
NETwebsite,895InternetInformationServices(IIS).
SeeIIS(InternetInformationServices)Intervalproperty,Timercontrol,849IPaddresses,867–868IsAnonymousproperty,ProfileInfoclass,726IsApprovedproperty,MembershipUserclass,687IsCookielessproperty,HttpSessionStateclass,274IsEnabledproperty,Traceclass,241IsInRolemethod,Userclass,661,705IsLeapYearmethod,DateTimeclass,35IsNewSessionproperty,HttpSessionStateclass,274ISOSortableStandarddatatype,547isolation,reasonstoavoidclient-sideprogramming,8IsOtherMonthproperty,CalendarDayclass,319IsPathRootedmethod,Pathclass,582IsPostBackproperty,Pageclass,146,156,514IsReadyproperty,DriveInfoclass,590IsSelectableproperty,CalendarDayclass,319IsTodayproperty,CalendarDayclass,319IsUserInRolemethod,Rolesclass,704IsValidpropertyBaseValidatorclass,296Formclass,299,302IsWeekendproperty,CalendarDayclass,319italicelement,XHTML,106Italicproperty,FontInfoclass,181itemparameter,Cacheclass,775Itemsproperty,HtmlSelectclass,137,146INDEX943ItemStyleproperty,BoundFieldclass,544ItemTemplateclass,563–564ItemTemplatemode,TemplateFieldtemplates,566IUSRaccount,Anonymousauthenticationmode,890JJavaScriptAbortPostBackfunction,848Ajaxpagesusing,830–831ASP.
NETAJAX,831ASP.
NETprocessexplained,142ASP.
NETusingclient-sideabilitiesof,197doPostBackfunction,197EnableClientScriptproperty,296howvalidationworks,298linkingtoASP.
NETAJAXJavaScriptlibraries,832Join()method,Stringclass,33JPEG,imageformatsandquality,363Kkeyparameter,Cacheclass,775keypresseventsAjaxpagesusingJavaScript,830automaticpostbacksand,196KeyPressevent,294Keywordelement,AdvertisementFile,324KeywordFilterproperty,325keywordsaccessibilitykeywords,52varkeyword,23knowledgebases,usesofdatabasewithASP.
NET,452KnownColorenumeration,207LLabelcontrolAssociatedControlIDproperty,183EnableViewStateproperty,298howvalidationworks,298independentusercontrols,348refreshinglabelwithpartialupdate,834–837Textproperty,239,502underlyingHTMLelement,174LabelStyleproperty,Logincontrol,691LAN(localareanetwork),867–868LanguageIntegratedQuery.
SeeLINQ(LanguageIntegratedQuery)languageschoosingbetween.
NETlanguages,17integration,13pagedirectiveindicating,133Lastproperty,796LastAccessTimeproperty,587LastActivityDatepropertyProfileclass,719ProfileCommonclass,726ProfileInfoclass,726LastIndexOf()methodArrayclass,37Stringclass,33LastNameproperty,797LastUpdatedDatepropertyProfileclass,719ProfileCommonclass,726ProfileInfoclass,726LastWriteTimeproperty,587Layoutcategory,NewStyledialogbox,372layoutsframes,391Menu/TreeViewcontrolscompared,444table-basedlayoutsformasterpages,403–408lazyloading,818–819ldffiles,storingdatabasefiles,471LeafNodeStyleproperty,TreeViewcontrol,440–441LengthpropertyArrayclass,36–37FileInfoclass,589Stringclass,32–33lessthanoperator(OutputCachedirective,769location,creatingwebsiteswithVisualStudio,87locationtag,web.
configfile,653Lock()method,Applicationstatecollection,287Logmethod,201LoggedInevent,Logincontrol,689LoggedInTemplatesection,LoginViewcontrol,705loggingeventscustomloggingclass,236customlogs,234–235retrievingloginformation,237–239writingtoeventlogs,232–233loggingexceptions,viewingWindowseventlogs,229–232logginginformsauthentication,658Windowsauthentication,663loggingout,formsauthentication,658,661loggingtools,229LoggingInevent,Logincontrol,689logicalandoperator,38logicaloperators,37logicaloroperator,38LogincontrolAuthenticateevent,690CreateUserUrlproperty,691description,688events,689–690formattedLogincontrol,692InstructionTextproperty,691membershipsecuritycontrols,688–694PasswordRecoveryUrlproperty,691properties,692recoveringlostpasswords,691registeringnewusers,691RememberMecheckbox,689styleproperties,690–691loginpagedefault,651formsauthentication,657–661defaultvalueofLoginUrl,651retrievinguseridentity,660–661signingout,661FormsAuthenticationclass,657Windowsauthentication,666LoginButtonImageUrlproperty,693LoginButtonStyleproperty,691LoginButtonTextproperty,693LoginButtonTypeproperty,693LoginCreatedUserproperty,694LoginErrorevent,689LoginNamecontrol,688LoginStatuscontrol,688loginUrlattribute,651LoginViewcontroldescription,688membershipsecuritycontrols,705–707overview,705RoleGroupstag,706–707settingcontentforroles,705showingdifferentcontentwith,706longdatatype,C#,21LongDatedatatype,547loopstructuresbreakstatement,43do.
.
.
whileloop,42INDEX946loopstructures(continued)foreachloop,41–42forloop,40–41overview,40whileloop,42loopbackalias,URL,868Luhnalgorithm,308MMachinekey,883machine.
configfileaccessingviaIIS,168adjustingdefaultmembershipconnectionstring,674configurationinheritance,165LocalSqlServerconnectionstring,713membershipsectiondefaults,679multilayeredconfiguration,165MailMessageEventArgsclass,700ManageAccessRuleslink,WAT,656–657manageability,component-basedprogramming,736manualeventwireup,eventhandling,141manualvalidation,302–304many-to-manyrelationships,494,813mappingURLsoverview,428–429SiteMapPathcontrol,430–435markupindicatingtypeofmarkup,102reusingwebpagemarkup,343MaskedEditExtender,861Masterdirective,creatingmasterpage,396masterpagesbindingmasterpagetositemap,418–420brtag,400codeinmasterpages,408connectingcontentpagesto,396–398contentpagesand,367creatingcontentpagesbasedon,393–396creatingmasterpage,392–393,396defaultcontent,401–402description,367framescompared,391includingformattingin,401includingreplaceableitems,401interactingprogrammaticallywith,409–410linebreaks,400multiplecontentregions,398–401nesting,408nocontentregionsin,401overriddingtitlespecifiedinmasterpage,397placingScriptManagercontrolin,832relativepathsandmasterpages,402–403SelectMasterPageoption,93table-basedlayouts,403–408usingparametersinmaster-detailspage,531viewingdirectly,392whitespace,400Masterproperty,Pageclass,409master-detailspages,creating,554–556MasterPageFileattribute,Pagedirective,396–397MasterPagesfolder,402Mathclass,29mathoperations,29MAXfunction,463MaxDataBindDepthproperty,TreeViewcontrol,424,437maxInvalidPasswordAttemptsattribute,678maxOccursattribute,636maxRequestLengthsetting,607mdffiles,storingdatabasefiles,471measurements,webcontrolpropertiesusing,179mediasites,usesofdatabasewithASP.
NET,452memberlist,VisualStudio,113–115membervariablesdeclaring,52description,52retainingusingviewstate,257–259sessionstateexample,274members,addingfunctionalitytoclasses,742membershipauthenticationwithmembership,686–687defaultconnectionstring,674defaultenablefornewwebsite,671INDEX947role-basedsecuritycreatingandassigningroles,701–704LoginViewcontrol,705–707membershipdatastore,669–670overview,700restrictingaccessbasedonroles,705securitycontrolsCreateUserWizardcontrol,694–698Logincontrol,688–694LoginViewcontrol,705PasswordRecoverycontrol,698–700SQLServerExpress,671–673SQLServer,usingfullversionof,673–675userrecordmanagement,669Membershipclassauthenticationwithmembership,686creatingusers,672,681–682GetAllUsersmethod,685GetUsermethod,683howMembershipclassworks,684–686methods,682read-onlyproperties,683securitycontrols,687UpdateUsermethodcreatinguserswithMembershipclass,682disabledaccounts,687usingMembershipUserclass,683ValidateUsermethod,686membershipdatastoreconfiguringmembershipprovider,676–679creatingmanually,674creatinguserswithMembershipclass,681–682creatinguserswithWAT,679–681disabledaccounts,687Membershipclass,682–683MembershipUserclass,683–684overview,669reasonsfornotusing,670transferringlargenumberofuseraccounts,682membershipelement,676membershipprovider,attributesforconfiguring,677membershipsection,machine.
configfile,679MembershipCreateStatusenumeration,682MembershipUserclasshowMembershipclassworks,684–686IsApprovedproperty,687methods,683ResetPasswordmethod,687securitycontrols,687UnlockUsermethod,687MemoryStreamobject,usingPNG,363MenucontrolcomparedtoTreeViewcontrol,443DataSourceIDproperty,442description,417dynamicstyles,444independentusercontrols,348properties,445staticstyles,444StaticDisplayLevelsproperty,444StaticSubMenuIndentproperty,445styles,444–445templates,445–448MenuHost.
aspxwebpage,348MenuItemclass,445Messageproperty,Exceptionclass,216metacharacters,regularexpressions,304–305metalanguage,XMLas,611methodsaccessibilitykeywords,43–44addingmethodsto.
NETclasses,56–57briefdescription,32creatingstaticmethods,73delegates,47–48description,57introductiontoclasses,50invoking,44optionalandnamedparameters,46overloading,45parameters,44static,29,747MicrosoftIntermediateLanguage(MSIL).
SeeIL(IntermediateLanguage)MigrateAnonymousevent,ProfileModuleclass,730migratinganonymousprofiles,730migratingwebsitesfrompreviousversionofVisualStudio,93–95webprojects,89INDEX948Millisecondproperty,DateTimeclass,35Millisecondsproperty,TimeSpanclass,35MINfunction,463MinimumPrefixLengthproperty,858minOccursattribute,XSDdocuments,636minRequiredNonalphanumericCharactersattribute,678minRequiredPasswordLengthattribute,678Minuteproperty,DateTimeclass,35Minutesproperty,TimeSpanclass,35mixed-modeauthentication,470ModalPopupExtender,861modeattribute,sessionStatetagInProcvalue,282Offvalue,282sessionstateconfiguration,281SQLServervalue,282,285StateServervalue,282Modeproperty,HttpSessionStateclass,274modesetting,sessionstateconfiguration,281–286ModifyStyledialogbox,378MonthandDaydatatype,547Monthproperty,DateTimeclass,35mostRecentattribute,251mouseeventsAjaxpagesusingJavaScript,830automaticpostbacksand,196Movemethod,583MoveTomethod,588MSDNwebsite,85MSIL(MicrosoftIntermediateLanguage).
SeeIL(IntermediateLanguage)multidimensionalarrays,25MultiHandleSliderExtender,861multilayeredexceptionhandlers,215MultiLinevalue,TextBoxcontrol,175multiplebinding,repeated-valuedatabinding,510–511multiplepostbacks,viewstate,253multipletemplates,GridViewcontrol,565–566multipleusers,usingfileswithwebapplications,579multipleviews,326–328,340multiple-selectlistcontrols,185–186multiple-viewcontrolsMultiViewcontrol,328–333overview,326–327Wizardcontrol,333–340multitargetingVisualStudio,95MultiViewcontrolActiveViewIndexproperty,330commandnames,331creatingviews,329–330movingbetweenviews,332overview,328SetActiveView()method,331showingviews,330–333mungedURL,278MutuallyExclusiveCheckBoxExtender,861MyLoggercustomloggingclass,236Nnameattributeaddtagconfiguringmembershipprovider,677profileproperties,717formsauthenticationsettings,651webcontroltags,175NamepropertyDirectoryInfoclass,587,594DriveInfoclass,590FileInfoclass,587,594FontInfoclass,181–182XmlTextReaderclass,618namedparameters,46Namesproperty,FontInfoclass,181–182namespacesassembliesand,70automaticallyimporting,116–117compilingcomponents,741–742defaultnamespace,741definingnamespaces,68–69fullyqualifiedclassnames,69importing,69naming,742nestednamespaces,741overview,67prefixes,633VisualStudioHelpreference,67writingXMLcontentwith,634–635XMLnamespaces,632–634namingconventionsconstructors,57dataproviderclasses,466datatypevariableprefixes,22fullyqualifiedclassnames,69INDEX949namespaces,742privatemembersofclass,53propertyaccessors,54publicmembersofclass,52usingfileswithwebapplications,579XMLnamespaces,632narrowingconversions,29–30NavigateUrlelement,AdvertisementFile,324navigation404NotFounderror,413ASP.
NETnavigationwithsitemaps,412breadcrumbnavigation,430components,411independentusercontrols,347masterpages,391relationshipnavigation,812–814websiteMenucontrol,442–448overview,411sitemaps,411–428SiteMapPathcontrol,430–435TreeViewcontrol,435–442navigationalcontrolsbindingmasterpagetositemap,418bindingnavigationalcontrols,422changingappearanceof,411independentusercontrols,347interactingprogrammaticallywithmasterpages,409Menucontrol,442–448navigationcomponents,411SiteMapPathcontrol,430–435templatesnotsupportedby,435TreeViewcontrol,435–442NavigationButtonStyleproperty,Wizardcontrol,339NavigationStyleproperty,Wizardcontrol,339NegativeInfinityvalue,221nestedexceptionhandlers,221–222nestingmasterpages,408siteMapelements,414–415.
NETAuthorizationsetting,883.
NETclasslibraryaddingreferences,743Arraytype/class,36–37assemblies,70browsingthroughexceptions,216component-basedprogramming,735,739creatingcomponents,740dataproviderfactories,524DateTimetype/class,34–36determiningwhichexceptionstocatch,220Directoryclass,582–587DirectoryInfoclass,587–589DriveInfoclass,589–590Fileclass,582–587FileInfoclass,587–589generics,77Int32type/class,31multitargeting,95namespaces,67–69.
NETtypes,65–66overview,14Pathclass,581–582retrievinginformationaboutfilesanddirectories,580Stringtype/class,32–33TimeSpantype/class,34–36ToString()method,31.
NETCompilationsetting,883.
NETErrorPagessetting,883.
NETFrameworkbuilding.
NETclassesaddingconstructors,57–58addingevents,59–60addingmethods,56–57addingproperties,54–56creatingobjects,53–54overview,51–52testingclasses,60–63classes,49–63CLR(CommonLanguageRuntime),13description,9events,352evolutionofwebdevelopment,3–9fileaccess,579GDI+,357loggingtools,229object-basedmanipulation,31–37predefinedexceptionclasses,215structuredexceptionhandling,215valuetypesandreferencetypes,63–66VisualStudio,15INDEX950.
NETGlobalizationsetting,883.
NETlanguagesC#,VBand,11choosingbetween,17CLS(CommonLanguageSpecification),11compilingstraighttomachinecode,13datatypes,20,22description,9installing,17IntermediateLanguage(IL),11languagecompilationin.
NET,12.
NETbasicdatatypes,21third-partylanguages,17.
NETProfileicon,IISManager,883.
NETTrustLevelssetting,883networkserviceaccountdeployingASP.
NETwebsite,878–879givinglimitedprivilegesto,881IISManagerchanging,880permissions,879networks,DNS(DomainNameService),867NewConnectionbutton,VisualStudio,801newkeyword,53–54,796,817NewStyledialogbox,370–372NewWebSitedialogboxcreatingvirtualdirectoryfornewproject,898–899creatingwebsiteswithVisualStudio,85NextButtonClickevent,338,696NextMonthTextproperty,322NextPrevFormatproperty,322NextPrevStyleproperty,317NextSiblingproperty,SiteMapNodeclass,426NextViewcommandname,331NoBotcontrol,863NodeIndentproperty,TreeViewcontrol,436,438–439nodesapplyingstylestonodelevelsinTreeView,441–442applyingstylestonodetypesinTreeView,440–441Menu/TreeViewcontrolscompared,443nodespacingTreeViewstyles,439XML,description,618Nodes()method,629NodeSpacingproperty,TreeNodeStyleclass,438NodeStylepropertySiteMapPathcontrol,432TreeViewcontrol,440NodeTemplateproperty,SiteMapPathcontrol,432,434–435NodeTypeproperty,XmlTextReaderclass,618NodeWrapproperty,TreeViewcontrol,438NoExpandImageUrlproperty,TreeViewcontrol,438nonbreakingspacecharacterentity,105,132,159Northwinddatabase,obtainingsampledatabases,453Northwind.
Designer.
csfile,803,808Northwind.
edmxfile,800,803NorthwindEntitiesclass,809NorthwindEntities.
Categoriescollection,817NorthwindEntities.
Productscollection,817–818,821NorthwindEntities.
SaveChanges()method,820NorthwindModelnamespace,809notequaltooperator(!
=),37notificationscacheditemexpiresimmediately,790CREATEEVENTNOTIFICATIONcommand,787enablingServiceBroker,788failednotifications,790notificationsnotreceived,790SQLServercachedependencies,787–788NotSupportedException,cachingwithObjectDataSourcecontrol,784Nowproperty,DateTimeclass,34–35nullreferenceexception,213,222NullDisplayTextproperty,BoundFieldclass,544NullReferenceExceptionclass,217numbersign(#)character,269numericformatstrings,546NumericUpDownExtender,861Oobjectdatatype,C#,22Objectdatatype,.
NET,22objectinterface,HTMLelements,131INDEX951objectmodel,webcontrols,173objectwalkersyntax,181object-basedmanipulationArraytype/class,36–37DateTimetype/class,34–36overview,31Stringtype/class,32–33TimeSpantype/class,34–36ObjectContextclasses,824ObjectDataSourceclass,522,541ObjectDataSourcecontrolcachingproperties,781cachingwith,784classesObjectDataSourcecanunderstand,759datacomponentusabilityrules,759selectingrecords,760supplyinganextraparameter,764TypeNameproperty,760updatingrecords,762–764usingmethodparameters,761XyzMethodproperties,760object-orientedprogrammingadvanced-classprogramming,71–78assemblies,70castingobjectvariables,74–76classes,49–63inheritance,71–72staticmembers,50–51,73generics,77–78namespaces,67–69partialclasses,76–77structuredexceptionhandling,215valuetypesandreferencetypes,63–66objectsaddingconstructorsto.
NETclasses,58castingobjectvariables,74–76classesandobjects,50copyinganobject,notareference,63creatingobjectsof.
NETclasses,53–54storingcustomobjectsinviewstate,259–260streamlinedobjectcreation,70Offvalue,sessionStatetag,282olelementHTML,175XHTML,106OldValuesParameterFormatStringproperty,SqlDataSourceclass,535OleDbCommandclass,476OleDbConnectionclass,469,476OleDbDataAdapterclass,476OleDbDataReaderclass,476Onprefix,eventhandling,141onchangeattribute,webcontrols,197onclickattribute,webcontrols,197one-to-manyrelationship,495OnServerClickattribute,inputelement,HTML,139,141Openmethodconnectionclasses,474Fileclass,596–597SqlConnectionclass,753OpenReadmethod,Fileclass,597OpenTextmethod,Fileclass,595OpenWritemethod,Fileclass,596operationsmathoperations,29variableoperationsoverview,27–28typeconversions,29–31operatorsarithmetic,28comparison,38logical,37shorthandassignment,28OptimisticConcurrencyException,823optionelement,HTML,145–146optionalandnamedparameters,46oroperator(||),38ORDERBYclause,461–462orderbyoperator,798orderedlistelement,XHTML,106Ordersproperty,Customerstable,819OtherMonthDayStyleproperty,318outkeyword,65Outlinewindow,379–380outlining,VisualStudio,112–113outputautomaticallytailored,173outputcachingcacheprofiles,773cachingandquerystring,769–772cachingmultipleversionsofwebpage,771–772clientsidecaching,769databaseaccess,768description,767dynamicpages,770INDEX952outputcaching(continued)fragmentcaching,767,772OutputCachedirective,768user-specificinformationand,770outputparameters,65OutputCachedirectivecacheprofiles,773cachingmultipleversionsofwebpage,771Durationattribute,768fragmentcaching,773Locationattribute,769VaryByParamattribute,769–770OutputCacheLocationenumeration,769outputCacheProfilessection,773Overlineproperty,FontInfoclass,181overloadingconstructors,58GetItemsmethod,753methodsoverloading,45OverwriteChangesvalue,535Ppelement,XHTML,105–106PadLeft()method,33PadRight()method,33PageclassCacheproperty,774code-behindclass,110,139DataBindmethod,500–501events,710FindControlmethod,304inheritance,156,343–344Initmethod,265,523IsPostBackproperty,146,514Loadeventintegratedusercontrols,351pagelifecycle,523retainingmembervariablesusingviewstate,257settingvalueofproperties,155Loadmethod,265LoadControlmethod,346Masterproperty,409partialkeyword,112PreRendereventcross-pagepostbacks,265pagelifecycle,523retainingmembervariablesusingviewstate,257,259PreviousPageproperty,261,263,265Profileproperty,725properties,156RegisterRequiresViewStateEncryption()method,256Responseproperty,157Serverproperty,158StyleSheetThemeproperty,391Themeproperty,391TransactionCountvariable,501–502Unloadevent,259Userproperty,660Validatemethod,302ViewStateproperty,254pagedesign,VisualStudio,15Pagedirectiveapplyingthemetoentirewebsite,388componentsandstructureofwebform,101–102description,133MasterPageFileattribute,396–397StyleSheetThemeattribute,386–388Themeattribute,385,387–388Titleattribute,397TraceModeattribute,249ViewStateEncryptionModeproperty,256VisualStudio,396pagelifecycle,201databinding,523overview,198–200profiles,710PagepropertyHtmlControlclass,154WebControlclass,178pagetracing,239–250disablingtracing,240enablingtracing,240tracinginformationcontroltree,243cookies,244formcollection,246headerscollection,245overview,240–242querystringcollection,246requestdetails,243servervariables,246INDEX953sessionorapplicationstate,244traceinformation,243writingtraceinformation,246–250Page_Loadmethodeventhandlinginwebpage,141manualeventwireup,141Page.
Loadeventhandlerdata-boundlistcontrolsexample,517settingvalueofproperties,155pageOutputattribute,250PagerIndexChangedproperty,GridViewcontrol,561PagerIndexChangingproperty,GridViewcontrol,561PagerSettingsproperty,GridViewcontrol,561,573PagerStylepropertyDetailsViewcontrol,573GridViewcontrol,548PagerTemplateclass,GridViewcontrol,566pages.
Seealsowebpagesbindingmasterpagetositemap,418–420bindingpagestositemaps,416–418andcontrols,883cross-pagepostbacks,260–265masterpages,391–410withmultipleviewsMultiViewcontrol,328–333navigationbuttons,327Wizardcontrol,333–340pageswithmultipleviews,326–328querystringstransferringinformationinURLs,265–269reusingwebpagemarkup,343transferringinformationbetweenpages,260–269pagingDetailsViewwithpaging,573GridViewcontrol,561–563performance,563PagingBulletedListExtender,862PanelcontrolsDefaultButtonproperty,183greetingcardgeneratorexample,201underlyingHTMLelement,175validationgroups,313panels,stackinginwebpage,853paragraphelement,XHTML,106parameterarrays,626ParameterSourcedrop-downlist,ExpressionEditorwindow,826parametertypes,listof,529parameterizedcommandsdatasourcecontrols,527–532othertypesofparameters,528–530overview,486–488settingparametervaluesincode,530–532parameterscontrolparameters,529datacontrol'sautomaticsubmissionof,534indicating,527methods,44outputparameters,65passingbyreference,64passingbyvalue,64usinginmaster-detailspage,531paramskeyword,626_parentframetarget,AdRotatorcontrol,325ParentpropertyDirectoryInfoclass,588HtmlControlclass,154WebControlclass,178ParentLevelsDisplayedproperty,SiteMapPathcontrol,431ParentNodeproperty,SiteMapNodeclass,425ParentNodeStyleproperty,TreeViewcontrol,440–441parent-to-childrelationship,495Parse()method,Int32class,31,311parsing,XMLdocument,611,613partialclasses,76–77partialkeyword,76–77,112,139partialrefreshes,Ajaxconditionalupdates,839–840controllingrefresheswithtriggers,840–845errorhandling,837–839overview,833refreshinglabelwithpartialupdate,834–837UpdatePanelcontrol,834,845updatesinterruptingupdates,840INDEX954partialrendering,Timercontrol,850Pascalcase,52pass-by-referenceparameter,64pass-by-valueparameter,64Passwordproperty,690passwordtype,inputelement,136,174Passwordvalue,TextBoxcontrol,175passwordAttemptWindowattribute,678passwordFormatattribute,678PasswordLabelTextproperty,692PasswordRecoverycontroldescription,688membership,securitycontrols,698–700overview,698SendingMailevent,700PasswordRecoveryIconUrlproperty,694PasswordRecoveryTextproperty,694PasswordRecoveryUrlproperty,691,693PasswordRequiredErrorMessageproperty,693passwordsconfiguringmembershipprovider,678disabledaccounts,687HashPasswordForStoringInConfigFilemethod,658recoveringlostpasswordswithLogincontrol,691PasswordRecoverycontrol,698–700regularexpressionfor,308PasswordStrength,862pathattribute,formsauthenticationsettings,651PathclassCombinemethod,581,586,594drawingcomplexshapeswithGraphicsclass,358fillingcomplexshapeswithGraphicsclass,358GetFileNamemethod,581,606methods,581overview,581–582Pathproperty,Requestclass,428PathDirectionproperty,SiteMapPathcontrol,432pathsaddingrelativepathtoabsolutepath,581filepathsinstrings,581masterpagesandrelativepaths,402–403PathSeparatorproperty,SiteMapPathcontrol,432PathSeparatorStyleproperty,SiteMapPathcontrol,432PathSeparatorTemplateproperty,SiteMapPathcontrol,432–433Penobject,specifyingBrushorPenobject,359Percentagedatatype,546Percentagemethod,179performanceapplicationstate,288cachingcachedependencies,785–790datacaching,774–784datasourcecontrolcaching,781–784descriptionofbenefitof,766fragmentcaching,772outputcaching,767–773overview,765CLR,14paging,563profiles,710sessionstate,273statemanagementoptionscompared,289–290viewstateencryption,257permissionsASPNET/networkserviceaccounts,879authorization,649Windowsaccountpermissions,896persistentcookies,270,662PhysicalApplicationPathproperty,586Pixelmethod,179pixelsindicatingUnittype,179measuring,359PlaceCodeinSeparateFileoption,AddNewItemwindow,92Pluralizeorsingularizeobjectnamesoption,VisualStudio,802plussign(+)character,269,305,307PNG,imageformatsandquality,363pollingASP.
NET,790polygon,Graphicsclass,358PopupControlExtender,862ports,VisualStudiowebserver,118Positioncategory,NewStyledialogbox,372INDEX955PositiveInfinityvalue,221postbacksautomaticpostback,195automaticpostbacks,208AutoPostBackproperty,195capturingchangeeventimmediately,195creatingfilebrowser,593cross-pagepostbacks,260–265doPostBackfunction,197eventsnotsuitablefor,196greetingcardgeneratorexample,202HTMLservercontrols,193IsPostBackproperty,Pageclass,156partialrefreshesusingAjax,834populatinglistcontrol,146postbackevents,197–198processingsequence,196reviewed,829UpdatePanelcontrol,836viewstate,253webcontroleventsand,195webcontroleventsandautomaticpostbacks,193–198PostBackUrlproperty,IButtonControlinterface,260PostedFileclass,605–606precompilationdeployingASP.
NETwebsite,897publishingwebsite,904PreRenderevent,Pageclass,257,259,265,523,710PreRenderCompleteevent,Pageclass,710Previewbox,NewStyledialogbox,372PreviousButtonClickevent,Wizardcontrol,338PreviousPageproperty,Pageclass,261,263,265PreviousPageTypedirective,263PreviousSiblingproperty,SiteMapNodeclass,425PrevMonthTextproperty,Calendarcontrol,322PrevViewcommandname,MultiViewcontrol,331primitiveproperties,808PrintOperatorrole,defaultWindowsroles,665privateassemblies,896privatekeys,howSSLworks,895privatekeywordbuilding.
NETclasses,52description,52methodaccessibility,43privatemembersofclass,namingconvention,53privatevariables,defining,52Productclassbuilding.
NETclasses,51–60testingnew.
NETclasses,60–63Productitem,802ProductCategoriestable,815ProductCategoryrecord,803ProductCategory.
Productsproperty,803Product.
CreateProduct()method,821Product.
csfile,60Productsproperty,803,809Productstable,803,818ProfileAPI,725–728ProfileclassAddressproperty,724FirstNameproperty,718GetProfilemethod,725,730LastActivityDateproperty,719LastUpdatedDateproperty,719Savemethod,719,725profiledatabase,714–716profileelement,725profilegroups,721–722profilepropertiesaddingorremovingproperties,721automaticsavesofcustomdatatypes,725changingnameordatatype,721defining,716–717profilegroups,721profilepropertyattributes,717stepstouseprofiles,712using,717–719versioning,721Profileproperty,Pageclass,725profileprovidersproviderattribute,717registering,715stepstouseprofiles,712profileserialization,719–721profiletables,715–716ProfileBaseclass,717,725ProfileCommonclass,726INDEX956ProfileInfoclass,726ProfileManagerclass,725–727ProfileMigrateEventArgsclass,730ProfileModuleclass,725,730ProfileParametercontroltag,529profiles,709–712anonymousprofiles,728–730ASP.
NET,709aspnet_Profiletable,715authenticationenablingauthentication,712–713formsauthentication,713overview,711Windowsauthentication,712automaticsavesofcustomdatatypes,725cacheprofiles,773caching,710changingprofiledata,710connectionstrings,713–714andcustomdatatypes,722–725definingprofileproperties,716–717limitations,709–710pagelifecycle,710parametertypes,529performance,710ProfileAPI,725–728profiledatabase,714–716profilegroups,721–722profileserialization,719–721retrievinginformationindatasource,728retrievingprofilesmanually,725scalability,710serialization,710–711SqlProfileProviderclass,712–730stepstouseprofiles,712storingdata,710–712usingprofileproperties,717–719usingwithSQLServer,713–714usingwithSQLServerExpress,713programming.
Seecomponent-basedprogrammingprogressnotificationusingAjax,845–849projectfiles,VisualStudio,89projections,796–797projectlessdevelopmentcreatingwebsiteswithVisualStudio,89–90openingprojectlesswebsitecreatedwithVisualStudio2008,94SolutionExplorer,91projectsaddingprojectreference,743usingprojectreferences,746propertiesaddingpropertiesto.
NETclasses,54–56automaticproperties,56component-basedprogramming,747–749creatingstaticproperties,73introductiontoclasses,50read-onlyproperties,55settingvalueof,155statefulorstatelessdesign,747–748write-onlyproperties,55Propertiescontextmenuitem,806propertieselement,web.
configfile,716Propertieswindow,98,111,806,823,826,828propertyaccessors,addingpropertiesto.
NETclasses,54–55propertyprocedures,usinginintegratedusercontrol,349PropertyNamesfield,aspnet_Profiletable,719–720PropertyValuesStringfield,aspnet_Profiletable,719–720protectedinternalkeyword,52protectedkeyword,52protectionattribute,651providerattribute,addtag,717Providerproperty,SiteMapclass,425ProviderSpecificvalue,serializeAsattribute,720pub_infotable,805publickeyword,43,52publicmembersofclass,52publicmethods,addingfunctionalitytoclass,742PublicationInfoentity,805PublishWebSitefeature,deployingwebapplicationswithVisualStudio,904–905publishingwebsite,904–905Pubssampledatabase,453,805px(pixel),indicatingUnittype,179INDEX957Qqueries,joinquery,494QueryDesigner,runningSQLqueriesinVisualStudio,460querystringscachingand,769–772outputcachingcachingmultipleversionsofwebpage,771–772cachingwithspecificquerystringparameters,770parametertypes,529statemanagementoptionscompared,288–289transferringinformationinURLs,265–269queryingdatamodels,809–810withLINQtoEntities,815–818QueryStringcollection,266QueryStringproperty,Requestclass,428QueryStringParametercontroltag,529questionmarkcharacter,304,652quirksmode,InternetExplorer,102Rradiotype,inputelementHTMLservercontrolclassfor,136relatedwebcontrolclasses,174–175RadioButtoncontroleventsandpostbacks,195underlyingHTMLelement,174RadioButtonListcontrol.
Seealsolistcontrolseventsandpostbacks,195listcontrolscompared,184repeated-valuedatabinding,507underlyingHTMLelement,175RangeValidatorcontrolcontrolspecificproperties,297description,294Displayproperty,299editingGridViewtemplatewithvalidation,570EnableClientScriptproperty,298howvalidationworks,297–298validatedwebformexample,309Ratingcontrol,863RawUrlproperty,Requestclass,428RDBMS(relationaldatabasemanagementsystem),452Readmethoddatareaderclasses,476,479XmlTextReaderclass,618ReadAllBytesmethod,Fileclass,598ReadAllLinesmethod,Fileclass,598ReadAllTextmethod,Fileclass,598ReadInt32method,BinaryReaderclass,597ReadLinemethod,StreamReaderclass,595readOnlyattribute,addtag,717ReadOnlyproperty,BoundFieldclass,544ReadStringmethod,BinaryReaderclass,597ReadXml()method,491ReadXyzmethods,XmlTextReaderclass,623recordeditor,repeated-valuedatabinding,516–521recordsDELETEstatement,commandobjectrepresenting,489–490INSERTstatement,commandobjectrepresenting,483–485selectingwithSqlDataSourcecontrol,525UPDATEstatement,commandobjectrepresenting,488updatingwithdatasourcecontrols,533–537rectangle,Graphicsclass,358Redirect()method,Responseclass,157,279,347,355RedirectFromLoginPagemethod,FormsAuthenticationclass,658–659redirectionLogincontrol,689redirectingusertonewwebpage,157–158refkeyword,passingparametersbyreference,64–65referencesaddingassemblyreference,743–744addingprojectreference,743addingreferencetocomponents,742–745removingreferences,745INDEX958references(continued)typesassignmentoperations,63datatypesbehavingas,66equalitytesting,64overview,63passingparametersbyreference,64usingassemblyreferences,746usingprojectreferences,746Refreshmethod,588Refreshtab,UpdateWizarddialogbox,807regenerateExpiredSessionIdattribute,281Regions,808Registerdirective,creatingusercontrols,345registeringcomponents,130RegisterRequiresViewStateEncryption()method,Pageclass,256regularexpressionscommonexamples,308findingappropriateregularexpression,305–306literals,304–305Luhnalgorithm,308metacharacters,304–305regularexpressioncharacters,307repeatingcharacters,305replacingcustomvalidationwith,311singlecharacters,305usingparentheses,305usingsquarebrackets,305validationusing,304–308RegularExpressionTestpage,findingappropriateregularexpression,305–306RegularExpressionValidatorcontrol,294,297,304–309relationaldatabasemanagementsystem(RDBMS),452relationaldatabasesautoincrementcolumn,465autoincrementcolumns,465definingrelationshipsindatasets,495joinquery,494many-to-manyrelationships,494modifyingdataindatabase,481–490one-to-manyrelationship,495relationalmodel,451uniqueidentitycolumn,465relationships,navigating,812–814relativepaths,masterpagesandrelativepaths,402–403RememberMecheckbox,689RememberMeSetproperty,693RemoteWebServeroption,903Remove()method,Stringclass,33RemoveUserFromRolemethod,Rolesclass,704RemoveUserFromRolesmethod,Rolesclass,704RemoveUsersFromRolemethod,Rolesclass,704RemoveUsersFromRolesmethod,Rolesclass,704RenderCurrentNodeAsLinkproperty,SiteMapPathcontrol,431renderingadaptive,173description,104focusedcontrolafter,183pagelifecycle,198partial,833partialrefreshesusingAjax,835UpdatePanelcontrol,836ReorderListcontrol,863repeated-valuedatabindingcreatingrecordeditor,516–521databindingwithADO.
NET,514–516databindingwithdictionarycollections,512–513databindingwithlistcontrols,507–509genericcollections,509–510introduction,500multiplebinding,510–511overview,506stronglytypedcollections,509–510usingDataValueFieldproperty,513–514Replace()method,Stringclass,32–33Replicatorrole,defaultWindowsroles,665RequestCertificatewizard,893Requestclass,428requestcookies,tracinginformation,244requestdetails,tracinginformation,243RequestFilteringicon,884RequestobjectCookiescollection,270determininguser'sbrowser,502PhysicalApplicationPathproperty,586INDEX959Requestproperty,Pageclass,157requestLimitattribute,application-leveltracing,250requestsApplication_BeginRequestevent,162Application_EndRequestevent,162stagesinASP.
NETrequest,143RequiredFieldValidatorcontrolcontrolspecificproperties,297description,294validatedwebformexample,309RequiredOpenedPaneproperty,Accordioncontrol,854requiresQuestionAndAnswerattribute,addtag,678requiresUniqueEmailattribute,addtag,678resettype,inputelement,136ResetPasswordmethod,MembershipUserclass,684,687ResizableControlExtender,862resourcesfiles,hugewebprojects,89ResponseclassRedirect()methodcookielesssessionstateconfiguration,279independentusercontrols,347passinginformationwithevents,355Writemethod,161–162responsecookies,tracinginformation,244Responseobject,Cookiescollection,270Responseproperty,Pageclass,157Response.
Write()method,61resultsetsdataretrievalusingADO.
NET,481readingpasttheendof,476RetrieveDatamethod,cachinginDataSet,778–779reusingwebpagemarkup,343Reverse()method,Arrayclass,37richcontrolsAdRotatorcontrol,323–326Calendarcontrol,315–323DetailsViewcontrol,573–575FormViewcontrol,575–578GridViewcontrol,539,572Menucontrol,442–448MultiViewcontrol,328–333Wizardcontrol,333–340role-basedsecuritycreatingandassigningroles,701–704LoginViewcontrol,705–707membership,669overview,700restrictingaccessbasedonroles,705RoleExistsmethod,Rolesclass,704RoleGroupstag,LoginViewcontrol,706–707Rolesclass,703–704roles,defaultWindowsroles,665Rootproperty,DirectoryInfoclass,588RootDirectoryproperty,DriveInfoclass,590RootNodeproperty,SiteMapclass,425RootNodeStylepropertySiteMapPathcontrol,432TreeViewcontrol,440–441RootNodeTemplateproperty,SiteMapPathcontrol,432–433root-relativepath,397,403rootshidingrootnodeofsitemap,420representingrootfolderofwebapplications,413rootnodeofsitemaps,415RoundedCornersExtender,862Rowproperty,GridViewRowEventArgsclass,551RowCommandevent,GridViewcontrol,554,568RowDataBoundevent,GridViewcontrol,550–551Rowscollection,DataRowclass,493Rowsproperty,TextBoxcontrol,175rows,retrieving,461–462RowStyle,GridViewcontrol,548rules,stylesheets,377–379applyingstylesheetrules,380–383CSSclassname,378CSSOutlinewindow,379–380limitations,383selectors,380RunToCursorcommand,breakmode,122runat="server"attributeaddingHTMLservercontrol,137headelement,XHTML,109HTMLsenttobrowser,134HTMLservercontrolclassfor,137INDEX960runat="server"attribute(continued)selectelement,HTML,145transformingHTMLelementsintoservercontrols,133webcontroltags,175Ss\scharacter,307sampledatabases,obtaining,453SavemethodImageclass,359,361Profileclass,719,725ProfileCommonclass,726XmlDocumentclass,626–627SaveAsmethod,PostedFileclass,605SaveChanges()method,820–823,828scalabilitycaching,descriptionofbenefitof,766profiles,710sessionstate,277usingfileswithwebapplications,579webapplications,sessionstate,273schemas,aspnet_SchemaVersionstable,715Scientificdatatype,formatstring,546scopeblock-levelscope,41statemanagementoptionscompared,289–290ScriptManagercontrol,Ajax,831–833,838ScriptManagerProxycontrol,832ScriptResource.
axd,ASP.
NETAJAXJavaScriptlibraries,832Scrollbarsproperty,Panelclass,546Seadragoncontrol,863seamlessdeploymentmodel,130searchengines,usesofdatabasewithASP.
NET,452SearchNodesmethod,447Secondproperty,DateTimeclass,35Secondsproperty,TimeSpanclass,35SecureSocketsLayer(SSL),892–893,895securityASP.
NETdeployment,878ASP.
NETsecuritymodel,649authentication,649authorization,649component-basedprogramming,735controllingASP.
NETsecurity,164controlsCreateUserWizardcontrol,694–698Logincontrol,688–694LoginViewcontrol,705–707membership,669,687PasswordRecoverycontrol,698–700cookies,269userrequestsrequiring,652validationfor,651deploymentconfiguration,896determiningsecurityrequirements,647–648expiredsessionIDs,281formsauthentication,649,661implementingWindows-basedsecurity,663makingviewstatesecure,255–256persistentcookies,662querystringstransferringinformationinURLs,266reasonstoavoidclient-sideprogramming,8role-basedcreatingandassigningroles,701–704membership,669overview,700restrictingaccessbasedonroles,705sessionstate,272SQLstatements,486–488SSL(SecureSocketsLayer),895statemanagementoptionscompared,289–290usingfileswithwebapplications,580Windowsauthentication,663–667Securitylog,Windowseventlogs,229Securitytab,WAT,655,657,679,701–703Seekmethod,Streamclass,597seekablestreams,363SelectAuthenticationoptions,656selectbutton,selectingGridViewrows,553–554selectclause,795–796Selectcommand,826selectelement,HTMLdrop-downlists,145HTMLservercontrolclassfor,137relatedwebcontrolclasses,174INDEX961runat="server"attribute,145valueattribute,147SelectMasterPageoption,AddNewItemwindow,93Selectproperty,825SELECTstatementAVGfunction,463Commandobjectrepresenting,475–476COUNTfunction,463DISTINCTkeyword,463MAXfunction,463MINfunction,463SELECT*statement,461SUMfunction,463TOPclause,462selecttag,relatedcontrolclasses,174SelectCommandproperty,SqlDataSourceclass,525,533SelectCommandTypeproperty,SqlDataSourceclass,525Selectedproperty,ListItemcontrol,184–185SelectedDataKeyproperty,GridViewcontrol,555SelectedDateproperty,Calendarcontrol,322SelectedDatesproperty,Calendarcontrol,322SelectedDayStyleproperty,Calendarcontrol,318SelectedIndexpropertyAccordioncontrol,854GridViewcontrol,552,554listcontrols,184SelectedIndexChangedeventcapturingchangeeventimmediately,195GridViewcontroladdingselectbutton,554creatingmaster-detailspages,555selectingGridViewrow,552webcontrols,194webcontrolsprovidingandpostbacks,195SelectedIndexChangingevent,GridViewcontrol,554SelectedItemproperty,ListBoxcontrol,208,513SelectedNodeStyleproperty,TreeViewcontrol,440SelectedRowStyle,GridViewcontrol,548,552Selected/Selectingeventspagelifecycle,523SqlDataSourcecontrol,532–533SelectedValueproperty,ListBoxclass,761,763SelectImageUrlproperty,GridViewcontrol,553SelectionChangedevent,Calendarcontrol,323SelectionModepropertyCalendarcontrol,322ListBoxcontrol,185SelectMethodproperty,ObjectDataSourcecontrol,760,784SelectMonthTextproperty,Calendarcontrol,322selectors,stylesheets,380SelectorStyleproperty,Calendarcontrol,318SelectParametersproperty,SqlDataSourceclass,525SelectQueryproperty,SqlDataSourceclass,525SelectTextproperty,GridViewcontrol,553SelectWeekTextproperty,Calendarcontrol,322_selfframetarget,AdRotatorcontrol,325semicolon(;)character,18–19senderparameter,eventhandlers,139,152SendingMailevent,PasswordRecoverycontrol,700serializationbinaryserializationofcustomdatatypes,724classes,721customdatatypes,724datatypes,721description,259makingobjectsserializable,259–260profileserialization,719–721profiles,710–711storingobjectsinviewstate,259–260XMLserializationofcustomdatatypes,724serializeAsattribute,addtag,717serializeAsattribute,web.
configfile,720Serverclass,Transfermethod,428INDEX962servercontrolsaddingtopagedynamicallyatruntime,141hiddenservercontrols,148HTMLandwebcontrolscompared,173HTMLservercontrolclasses,135–137HTMLservercontrols,130–134overview,130–131servercodereactingimmediatelytoevents,194transformingHTMLelementsinto,133webcontrols,130,173–176ServerExplorerwindow,VisualStudiocreatingdatabaseconnection,454databasesinApp_Datafolder,472runningSQLqueriesinVisualStudio,459SQLServerExpress,457Serverproperty,Pageclass,157–158servervariables,tracinginformation,246ServerChangeeventHTMLcontrolsproviding,152HTMLservercontrols,193ServerClickeventHTMLcontrolsproviding,152HTMLservercontrols,193HtmlAnchorclass,152HtmlInputButtonhandling,138HtmlInputImageclass,152redirectingusertonewwebpage,157ServerClickmethod,HtmlInputButtonclass,141server-sidecaching,clientsidecachingcompared,769server-sideevents,HTMLservercontrols,131server-sideprogrammingASP.
NET,7evolutionofwebdevelopment,6server-sidevalidation,295ServerValidateeventclient-sideequivalentforcode,312CustomValidatorcontrol,310ServiceBrokerenablingSQLServer,788SQLServernotifications,787ServiceMethodproperty,AutoCompleteExtendercontrol,858sessionIDscookielessmode,278–279expiredsessionIDs,281regenerateExpiredSessionIdattribute,281tracinginformation,243sessionkeys,howSSLworks,895Sessionproperty,Pageclass,156sessionstateconfiguration,web.
configfilecookielesssetting,278–281modesetting,281–286Offvalue,modeattribute,282overview,277SqlServervalue,modeattribute,285StateServervalue,modeattribute,282timeoutsetting,281cookies,272disablingsessionstatemanagement,282example,274–277losingsessionstate,273parametertypes,529performance,273scalability,277security,272sessiontracking,272–273statemanagementoptionscompared,290tracinginformation,244using,273–274webfarms,888SessionStateicon,IISManager,883sessiontracking,272–273Session_Endevent,162Session_Startevent,162SessionIDproperty,HttpSessionStateclass,274SessionParametercontroltag,529sessionStatetagcookielessattribute,278customProviderattribute,286modeattribute,281sessionstateconfiguration,277sqlCommandTimeoutattribute,286sqlConnectionStringattribute,285stateConnectionStringattribute,282stateNetworkTimeoutattribute,284timeoutattribute,281setaccessoraddingpropertiesto.
NETclasses,54–55automaticproperties,56INDEX963SetNextStatementcommand,122SetActiveView()method,MultiViewcontrol,331SetAttributesmethod,Fileclass,583SetAuthCookiemethod,FormsAuthenticationclass,658SetCurrentDirectorymethod,Directoryclass,583SetPropertyValuemethod,ProfileBaseclass,717Setuplog,Windowseventlogs,229sharedassemblies,896shortdatatype,C#,21ShortDatedatatype,547shorthandassignmentoperators,28ShowNextStatementcommand,122ShowCheckBoxesproperty,TreeViewcontrol,438ShowDayHeaderproperty,Calendarcontrol,322ShowDeleteButtonproperty,CommandFieldclass,558ShowDirectoriesInmethod,creatingfilebrowser,594ShowEditButtonproperty,CommandFieldclass,556,568ShowExpandCollapseproperty,TreeViewcontrol,438ShowFilesInmethod,594ShowGridLinesproperty,Calendarcontrol,322ShowHeaderproperty,DetailsViewcontrol,574ShowLinesproperty,TreeViewcontrol,438ShowMessageBoxproperty,ValidationSummarycontrol,301ShowNavigationControlsproperty,409ShowNextPrevMonthproperty,Calendarcontrol,322ShowSelectButtonpropertyCommandFieldclass,556–557GridViewcontrol,553ShowStartingNodeproperty,SiteMapDataSourcecontrol,420–421ShowSummaryproperty,ValidationSummarycontrol,301ShowTitleproperty,Calendarcontrol,322ShowToolTipsproperty,SiteMapPathcontrol,431sidebysideexecution,13SideBarButtonClickevent,338SideBarButtonStyleproperty,339SideBarStyleproperty,339signaturesdelegates,47methodoverloading,45SignOutmethod,FormsAuthenticationclass,658simpledatabinding.
Seesingle-valuedatabindingsimulatedprogressbar,progressnotificationusingAjax,845–847Singledatatype,21,66Single()method,820singlestepdebugging,VisualStudio,119–122SingleBitPerPixelGridFitvalue,365SingleLinevalue,TextBoxcontrol,175single-stepdebugging,VisualStudio,119single-valuedatabindingcodefragmentation,505determininguser'sbrowser,502introduction,500overview,500problemswith,505–506settingcontrolproperties,504simpledatabindingwithproperties,504–505templates,506usingcodeinsteadof,506sitemaps,411–428ASP.
NETnavigationwithsitemaps,412bindingpagesto,416–418bindingportionsof,420–425casesensitivityofURLinsitemap,416changingappearanceofnavigationalcontrols,411definingoverview,412–413siteMapelement,413siteMapNodeelement,413–415examplesitemap,416hidingrootnode,420mappingURLs,428nodeswithduplicateURLs,415retrievinginformationfrom,425INDEX964sitemaps(continued)retrievingsitemapinformationfromXMLfile,412rootnode,415SiteMapclass,425–427usingdifferentsitemapsinsamefile,424–425SiteMapclass,412,425–427siteMapelementdefiningsitemaps,413nestingsiteMapelements,414–415SiteMapDataSourceclass,522SiteMapDataSourcecontrolbindingmasterpagetositemap,418bindingnavigationalcontrols,422bindingpagestositemaps,417changingappearanceofnavigationalcontrols,411defaulttree,420definingsitemaps,412properties,420–421showingsubtreesofsitemaps,420–424ShowStartingNodeproperty,420–421StartFromCurrentNodeproperty,421,424StartingNodeOffsetproperty,421,423–424StartingNodeUrlproperty,421,424siteMapFileattribute,424SiteMapNodeclass,425siteMapNodeelement,definingsitemaps,413–415SiteMapNodeobject,SiteMapclass,425SiteMapPathcontroladdingcustomsitemapinformation,434–435CurrentNodeTemplateproperty,433–434customizingSiteMapPathcontrol,431–432description,417Evalmethod,433NodeTemplateproperty,434–435overview,430PathSeparatorTemplateproperty,433properties,431RootNodeTemplateproperty,433stylesandtemplates,432–434SiteMapProviderclassFindSiteMapNodemethod,425searchingfornodes,425sitemapnodeswithduplicateURLs,415sizedetails,controltagsinskinfile,390Sizeproperty,FontInfoclass,181SkinIDpropertyapplyingthemesdynamically,391seeingthemeeffects,386uniquenessofSkinID,389skinscontroltagsinskinfile,389–390imagesaspartoftheme,390–391multiple,creatingforsamecontrol,388–389themesand,384SliderExtender,862SlideShowExtender,862slidingExpirationparameter,Cacheclass,775SmoothingModeproperty,Graphicsclass,365SMTP,883socialsecuritynumber,regularexpressionfor,308SolutionExplorer,91,118,800solutionfiles,creatingwebsiteswithVisualStudio,90Sort()method,Arrayclass,37SortExpressionproperty,BoundFieldclass,544,559sortingGridViewcontrol,559sortingandselectingatsametime,560SqlDataSourcecontrol,560sourcecodefiles,App_Codedirectory,129SourceEditingtoolbar,HTML,116Sourceproperty,Exceptionclass,216sourceview,VisualStudio,95,97,100sourceEmployeesdatasource,826sourceSingleEmployeedatasource,828spanelementapplyingstylesheetrules,382HTML,174XHTML,107specialcharactersescaping,24HTML,158–160URLencoding,269INDEX965Split()method,Stringclass,33splitview,VisualStudio,95–97SQL(StructuredQueryLanguage)aggregatefunctions,463case-sensitivity,462FROMclause,461dates,462DELETEstatement,465–466injectionattacks,293,486INSERTstatement,465LIKEoperator,462onlinetutorials,459ORDERBYclause,461–462parameterizedcommands,486runningqueriesinVisualStudio,459–460SELECTstatement,461squarebracketsinqueries,462statementsCommandobjectsrepresenting,475security,486–488UPDATEstatement,463–464usingwithADO.
NET,458WHEREclause,461–462SQLExpress,517SQLServerauthentication,470creatingconnectioninVisualStudio,454dataprovider,466databaseconfiguration,453membershipusingfullversionof,673–675obtainingsampledatabase,453obtainingsampledatabases,453tousefullversion,517userinstanceconnections,472usingprofileswithSQLServer,713–714SQLServercachedependencies,787–790SQLServerExpresscreatingconnectioninVisualStudio,454–455creatingdatabaseconnections,469introduction,453learningessentialdatabaseconcepts,453membership,671–673role-basedsecurity,701ServerExplorerwindow,VisualStudio,457SQLServerManagementStudio,454sqlcmdtool,457userinstanceconnections,471–472SqlCacheDependencyproperty,781SqlClientnamespace,467sqlcmdtool,457–458SqlCommandclass,476.
SeealsocommandclassessqlCommandTimeoutattribute,sessionStatetag,286SqlConnectionclass.
SeealsoconnectionclassesClosemethod,476Openmethod,753usinginstanceorstaticmethods,747sqlConnectionStringattribute,sessionStatetag,285SqlDataAdapterclass.
SeealsodataadapterclassesSqlDataReaderclass.
SeealsodatareaderclassesClosemethod,476Readmethod,476SqlDataSourceclassautomaticcachingsupport,526ConflictDetectionproperty,535connectionstrings,524ConnectionStringproperty,525DeleteCommandproperty,533,558EnableCachingproperty,526InsertCommandproperty,533OldValuesParameterFormatStringproperty,535overview,523properties,525SelectCommandproperty,533Updatemethod,558UpdateCommandproperty,533–534UpdateParameterscollection,534,558usingObjectDataSourceinstead,759SqlDataSourcecontrolcachingproperties,781cachingwith,781–784choosingDataSetorDataReader,526DataSourceModeproperty,560description,521editingGridViewtemplatewithvalidation,571editingwithGridViewtemplate,570INDEX966SqlDataSourcecontrol(continued)eventsforsettingparametervalues,532handlingerrors,532–533parameterizedcommands,527–532selectingrecords,525sortingwith,560updatingrecords,533–537usingwithDataViewcontrol,541SqlDataSourceStatusEventArgsclassAffectedRowsproperty,535Exceptionproperty,533ExceptionHandledproperty,533SqlDependencyclass,788SqlException,222,557SQLEXPRESSinstance,671SqlMembershipProviderclass,677SqlProfileProviderclassanonymousprofiles,728–730definingprofileproperties,716–717enablingauthentication,712–713ProfileAPI,725–728profiledatabase,714–716profilegroups,721–722profileserialization,719–721profilesandcustomdatatypes,722–725standardprofileserialization,711usingprofileproperties,717–719usingprofileswithSQLServerExpress,713SQLServermode,888SqlServervalue,sessionStatetag,282,285SqlTypesnamespace,467squarebrackets,305srcattribute,imgelement,107Srcdirective,creatingusercontrols,345SSL(SecureSocketsLayer),892–893,895SSLSettingicon,884StackTraceproperty,Exceptionclass,216Startmethod,SqlDependencyclass,788StartPage,VisualStudio,84–85StartFromCurrentNodeproperty,SiteMapDataSourcecontrol,421,424StartingNodeOffsetproperty,SiteMapDataSourcecontrol,421,423–424StartingNodeUrlproperty,SiteMapDataSourcecontrol,421,424StartNextButtonStyleproperty,Wizardcontrol,339StartsWith()method,Stringclass,33stateapplicationstate,286–288component-basedprogramming,747–749cookielessstatelimitations,280cookies,269–272hiddentype,inputelement,135HTMLservercontrols,131managementoptionscompared,288–290problemofstateforwebapplications,253sessionstate,272–286configuration,web.
configfile,277–286disablingsessionstatemanagement,282sessiontracking,272–273statefulAccountclassexample,748–749statefulorstatelessdesign,747–748statelessAccountUtilityclassexample,749transferringinformationbetweenpagescross-pagepostbacks,260–265overview,260querystrings,265–269URLencoding,269usinginstanceorstaticmethods,747usingstatefulandstatefulclassestogether,749viewstateexample,254–255makingviewstatesecure,255–256overview,134–135,253–254retainingmembervariables,257–259storingcustomobjectsin,259–260ViewStatecollection,254statemanagement,profiles,709–710StateBagcollectionclass,254stateConnectionStringattribute,282statementtermination,C#,19stateNetworkTimeoutattribute,284StateServermode,888StateServervalue,282staticfactorymethod,808,821statickeyword,73staticmembers,classes,50–51INDEX967staticmembers,classes,fileanddirectoryaccess,580staticmethodsConvertclass,31description,29Mathclass,29usinginstanceorstaticmethods,747staticstyles,Menucontrol,444StaticDisplayLevelsproperty,Menucontrol,444StaticDynamicSelectedStyleproperty,Menucontrol,444StaticHoverStyleproperty,Menucontrol,444StaticItemTemplateproperty,445StaticMenuItemStyleproperty,444StaticMenuStyleproperty,Menucontrol,444StaticSubMenuIndentproperty,Menucontrol,445StepIntocommand,122StepOutcommand,122StepOvercommand,122StepNextButtonImageUrlproperty,339StepNextButtonStyleproperty,338–339StepNextButtonTextproperty,338StepNextButtonTypeproperty,338StepPreviousButtonStyleproperty,339StepStyleproperty,339StepTypeproperty,334storagelocations,statemanagementoptionscompared,289–290storedprocedures,databaseevolution,750storinginformationapplicationstate,286–288compression,286cookies,269–272problemofstateforwebapplications,253profiles,710–712sessionstate,272–286transferringinformationbetweenpagescross-pagepostbacks,260–265overview,260querystrings,265–269viewstate,253–260Streamclass,597StreamReaderclass,594–595streamsreadingandwritingwithbinaryfiles,596–597guestbookexample,598–604quickfileaccessmethods,597–598textfiles,594–596seekable,363StreamWriterclass,594–595Strikeoutproperty,FontInfoclass,181Stringclass,33,38,66Stringclass,Substringmethod,311stringdatatype,C#,21Stringdatatype,.
NET,21Stringtype/class,32–33,66Stringvalue,serializeAsattribute,720StringBuilderclass,239,586stringscomparing,38drawingstringoftextwithGraphicsclass,358filepathsin,581zero-basedcounting,32strongelement,XHTML,106stronglytypedcollections,repeated-valuedatabinding,509–510structuredexceptionhandling,215StructuredQueryLanguage.
SeeSQL(StructuredQueryLanguage)structures,.
NETtypes,66styleattribute,150stylebuilder,369–374Stylecollection,HTMLservercontrols,150styleinheritance,376–377stylepropertiesinheritedandoverriddenstyleproperties,377Logincontrol,690–691Styleproperty,HtmlControlclass,154stylesheets.
SeealsoCSS(CascadingStyleSheets)applyingstylesheetrules,380–383creatingstylesheets,377–380CSSOutlinewindow,379–380formattinginXHTML,108navigatingstylesheets,380selectors,380traceinformation,242XSLT(XSLTransformations),640INDEX968styles.
SeealsoCSS(CascadingStyleSheets)addingastyletoadiv,370attributes,HTMLandXHTML,107CSSPropertieswindow,374–376description,367externalstylesheets,368formattingGridViewusing,547–550formattingproperties,369inheritance,369inherited,376–377inline,368–374internalstylesheets,368limitationsinASP.
NET,367Menucontrol,444–445modifyinginVisualStudio,374–376NewStyledialogbox,370–371SiteMapPathcontrol,432–434stylecategories,371themes,367,383TreeViewcontrol,438–442types,368stylesheetelement,XSLTransformations,641StyleSheetThemeattribute,Pagedirective,386–388StyleSheetThemeproperty,Pageclass,391subdirectories,876submenus,443submittype,inputelement,136,138,174Substring()methodDateTimeclass,35Stringclass,32–33,311TimeSpanclass,34,36subtrees,showingsubtreesofsitemaps,420–424SUMfunction,463element,629switchstatement,39–40SwitchViewByIDcommandname,331SwitchViewByIndexcommandname,331Systemlog,Windowseventlogs,229Systemnamespace,Mathclass,29System.
Collections.
Genericnamespace,78System.
Datanamespace,467System.
Data.
SqlClientnamespace,467System.
Data.
SqlTypesnamespace,467SystemOperatorrole,defaultWindowsroles,665system.
webelement,web.
configfile,163–164System.
Web.
UI.
WebControlsnamespace,176System.
Xmlnamespace,615System.
Xml.
Schemanamespace,637TTabContainercontrol,863TabIndexproperty,WebControlclass,178Tablecategory,NewStyledialogbox,372Tablecontrolaspxcodecreating,191fully-featuredobjects,193generatingtabledynamically,191overview,188–190underlyingHTMLelement,175tableelementHTML,136,175XHTML,107TableMappingcontextmenuitem,805TableMappingwindow,806table-basedlayouts,masterpages,403–408TableCellclassdynamicallycreatingtable,191fully-featuredobjects,193Tablecontrolcontaining,188TableCellcontrol,175,192TableRowclass,188,191,193TableRowcontrol,175tables,generatingtabledynamically,189–190TableTestclass,191tagprefixes,creatingusercontrols,345TagNameproperty,HtmlControlclass,154tags.
SeealsoelementsASP.
NET,webcontroltags,175–176HTMLdocument,4TargetControlIDproperty,858TargetSiteproperty,Exceptionclass,216tdelementHTML,136,175XHTML,107TemplateFieldclass,542,563,566templatesFormViewtemplatemodel,575GridViewcontroleditinginVisualStudio,566–567INDEX969editingwithGridViewtemplate,568–572editingwithvalidation,570–571editingwithoutcommandcolumn,571–572handlingeventsinGridViewtemplate,567–568multipletemplates,565–566overview,563–564Menucontrol,445–448Menu/TreeViewcontrolscompared,443multipletemplates,GridViewcontrol,565–566single-valuedatabinding,506SiteMapPathcontrol,432–434templatesnotsupportedbynavigationcontrols,435UpdatePanelcontrol,836Wizardcontrol,340testcertificates,893TestEmployee()method,798testingcachingtest,776–777component-basedprogramming,736disablingcachingwhiletesting,769testingnew.
NETclasses,60–63textbox,HTML,173textfiles,readingandwritingwithstreams,594–604Textproperty,184,192,239,300,445,502texttype,inputelementcurrencyconverterexample,138HTMLservercontrolclassfor,136relatedwebcontrolclasses,174textareaelement,HTMLHTMLservercontrolclassfor,136relatedwebcontrolclasses,174TextBoxclass,725TextBoxcontrolAccessKeyproperty,183aspxcodecreating,191Bindmethod,569consolidatingHTMLtextboxelements,173eventsandpostbacks,195howvalidationworks,297properties,175underlyingHTMLelement,174usingAutoCompleteExtendercontrol,857TextBoxStyleproperty,Logincontrol,691TextBoxWatermarkExtender,862TextChangedeventcapturingchangeeventimmediately,195TextBoxclass,725webcontrols,194–195TextModeproperty,TextBoxcontrolclass,175thelement,HTMLHTMLservercontrolclassfor,136relatedwebcontrolclass,175Thawtecertificateauthority,892Themeattribute,Pagedirectiveapplyingthemes,385handlingcontrol/themeconflicts,387–388Themeproperty,Pageclass,391themesApp_Themesdirectory,130applyingthemes,385–386applyingthemesdynamically,391applyingtoentirewebsite,388configuringcontrolproperties,383controltagsinskinfile,389–390creatingmultipleskinsforsamecontrol,388–389defaultthemes,386description,367globalthemes,384handlingcontrol/themeconflicts,386–387imagesaspartoftheme,390–391localthemes,384skinsand,384stylesand,367,383thinclients,reasonstoavoidclient-sideprogramming,9third-partylanguagesand.
NET,17thiskeywordrecallingnamesofcontrols,114single-valuedatabinding,502variablewatchwindows,124thread-safety,datacaching,774three-tierdesign,736–737throwstatement,throwingexceptions,224throwingexceptions,224–228Ticketproperty,FormsIdentityclass,661ticks,description,22INDEX970timeprogressnotificationusingAjax,845refreshingtimewithpartialupdate,834–837timedatatypes,formatstrings,547timedrefreshesusingAjax,849–850timeoutattributeformsauthenticationsettings,651sessionStatetag,281Timeoutproperty,HttpSessionStateclass,274timeoutsettingsessionstateconfiguration,281TimercontrolAjax,849–850Enabledproperty,850Intervalproperty,849partialrendering,850triggers,850TimeSpanclassarithmeticoperators,34natureandbehaviorofdatatypes,66proprtiesandmethods,35TimeSpandatatype,.
NET,22TimeSpantype/class,34–36timestamps,concurrencychecking,537Titleattribute,Pagedirective,397titleelement,HTML,137Titleproperty,334TitleFormatproperty,322TitleStyleproperty,318TitleTextproperty,692TitleTextStyleproperty,691ToLowermethod,33ToUpper()method,33Todayproperty,DateTimeclass,35TodayDayStyleproperty,318TodaysDateproperty,319,322ToggleButtonExtender,862ToList()method,811,818ToolboxaddingASP.
NETAJAXControlToolkit,852stoppingToolboxhidingitself,96ToolTipproperty,WebControlclass,178tooltips,VisualStudio,114TOPclause,462_topframetarget,AdRotatorcontrol,325ToString()methodDateTimeclass,35eventhandlers,140object-basedmanipulation,31TimeSpanclass,36TotalFreeSpaceproperty,DriveInfoclass,589TotalSizeproperty,DriveInfoclass,589TotalXyzproperties,TimeSpanclass,35ToUpper()method,Stringclass,32trelementHTML,136,175XHTML,107Traceclass,250traceinformationpagetracing,243writingtraceinformation,246–250Traceobjectenablingpagetracing,240Warnmethod,247Writemethod,247TraceModeattributeapplication-leveltracing,250Pagedirective,249TraceModeproperty,Traceclass,250tracing,250.
SeealsopagetracingTransactionCountvariable,Pageclass,501–502TransfermethodHttpServerUtilityclass,158Serverclass,428Transformmethod,XslCompiledTransformclass,640transformations,XSLT(XSLTransformations),640–643TransitionDurationproperty,Accordioncontrol,856TreeNodeDataBoundevent,435TreeNodeStyleclass,438TreeViewcontrolapplyingstylestonodelevels,441–442applyingstylestonodetypes,440–441AutoFormatfeature,442bindingmasterpagetositemap,419bindingnavigationalcontrols,422choosingpredefinedsetofnodeicons,436comparedtoMenucontrol,443description,417INDEX971differentlooksfortreeviews,437ImageSetproperty,436,438LevelStylescollection,441MaxDataBindDepthproperty,424NodeIndentproperty,436,438–439NodeStyleproperty,440overview,435properties,436–438styleproperties,440styles,438–442table-basedlayoutsformasterpages,408Visibleproperty,409–410TreeViewImageSetenumeration,436triggerscontrollingpartialrefresheswith,840–845Timercontrol,850Trim()method,Stringclass,32–33TrimEnd()method,Stringclass,33TrimStart()method,Stringclass,33troubleshootingcomponent-basedprogramming,736EntityFramework,810–812try.
.
.
catch.
.
.
finallyblockscatchblock,219catchingspecificexceptions,219–220creatinglistoffilesindirectory,586dataretrievalusingADO.
NET,479databaseconnections,469finallyblock,219nestedexceptionhandlers,221noactiveexceptionhandlerexists,222structuredexceptionhandling,219testingdatabaseconnections,473testingoccurenceofexceptions,224tipsforexceptionhandling,224usingstatementsasalternative,474TryParsemethoderrorhandling,144Int32class,311typeattributeconfiguringmembershipprovider,677HTMLinputelement,133profileproperties,717typeconversionsnarrowingconversions,29–30overview,29wideningconversions,29Typeproperty,HtmlInputControlclass,156TypeConverterclass,208TypeNameproperty,ObjectDataSourcecontrol,760types.
NETtypes,65–66referencetypes,63–66valuetypes,63–66Uuelement,XHTML,106,108ulelementHTML,175XHTML,106Underlineproperty,FontInfoclass,181underlinedelement,XHTML,106unhandledapplicationerror,162Unittype,179UnitTypeenumeration,179UniversalResourceIdentifiers(URIs),632UniversalResourceLocators.
SeeURLs(UniversalResourceLocators)Unloadevent,Pageclass,198,259,710Unlock()method,287UnlockUsermethod,MembershipUserclass,684,687unorderedlistelement,XHTML,106UpdatemethodSqlDataSourceclass,558statefulAccountclassexample,748UpdatePanelcontrol,840Update()method,Wizardcontrol,338UpdateModelFromDatabasecontextmenuitem,806UPDATEstatement,463–464,481,488UpdateWizarddialogbox,806–807UpdateCommandproperty,SqlDataSourceclass,525,533–534UpdateCommandTypeproperty,SqlDataSourceclass,525Updated/Updatingeventspagelifecycle,523SqlDataSourcecontrol,532–533UpdateFailedExceptionclass,217UpdateMethodproperty,760UpdateModeproperty,839UpdatePanelcontrolbrowsernotsupportingAjax,834INDEX972UpdatePanelcontrol(continued)conditionalupdates,839–840ContentTemplateelement,836controllingrefresheswithtriggers,840–845controlsthatcan'tbeusedin,839dynamicallyaddingcontrolsto,836errorhandling,837–839inheritance,835linkingUpdateProgresscontrolto,847refreshinglabelwithpartialupdate,834–837renderingHTML,836responsetimeandbandwidthused,837stylesettingsupport,835Updatemethod,840UpdateModeproperty,839updatesinterruptingupdates,840updateswithmultipleUpdatePanelcontrols,839–840useoftemplates,836visibilityof,835UpdatePanelAnimationExtender,862UpdateParameterscollection,SqlDataSourceclass,534,558UpdateProgresscontrolAssociatedUpdatePanelIDproperty,847cancelbutton,847–849linkingtoUpdatePanelcontrol,847simulatedprogressbar,845–847UpdateProgresscontrol,Ajax,845–849updates,820–822UpdateUsermethod,Membershipclass,682–683,687updatingdatamodels,806–807records,datasourcecontrols,533–537uploadingfiles.
Seefileuploadsuploadsallowingfileuploads,604–607FileUploadcontrol,604maximumsizeoffileuploads,607URIs(UniversalResourceIdentifiers),632URLencoding,269UrlDecodemethod,HttpServerUtilityclass,160,269UrlEncodemethod,HttpServerUtilityclass,160,269urlMappingssection,web.
configfile,428URLs(UniversalResourceLocators)casesensitivityofinsitemap,416duplicate,sitemapnodeswith,415friendly,428GetRedirectUrlmethod,658loopbackalias,868mapping,428munged,278querystringstransferringinformationin,160,265–269sessiontracking,273specialcharactersinURLs,269UseCookiesvalue,HttpCookieModeenumeration,278UseDeviceProfilevalue,HttpCookieModeenumeration,278userauthentication,Pageclass,157Userclass,661,666,705usercontrolsASP.
NETfiletypedescribing,128creating,344–346independentusercontrols,347–349integratedusercontrols,349–352introduction,343passinginformationwithevents,354–356requesting,343usercontrolevents,352–354webformscompared,343userinputerrorsrequiringvalidation,293validatinginput,293userinstanceconnectionsdataaccess,ADO.
NET,471–472SQLServer,472UserInstancesproperty,connectionstrings,471userinterfaceproblemswithsingle-valuedatabinding,505three-tierdesign,736webcontrols,benefitsof,173Userproperty,Pageclass,157,660userrecordmanagement,membershipdatastore,669–687Userrole,defaultWindowsroles,665UserControlclass,343–344,350UserNamepropertyLogincontrol,690ProfileInfoclass,726INDEX973UserNameLabelTextproperty,692UsernameRequiredErrorMessageproperty,692usersaspnet_Userstable,715assigningrolesusingWAT,702authorizationrulescontrollingaccess,654–655creatingwithCreateUserWizard,694–698creatingwithMembershipclass,681–682creatingwithWAT,679–681displayingfulllistofinwebpage,728examininguser'sgroupmembership,664multipleauthorizationrulesfor,652registeringnewuserswithLogincontrol,691restrictingaccessbasedonroles,705restrictinganonymoususeraccess,651usingfileswithwebapplications,579UserTypeenumeration,27UseUrivalue,HttpCookieModeenumeration,278usingstatementsclosingdatabaseconnections,474–475code-behindclass,139usingstatements,importingnamespaces,69UTC(coordinateduniversaltime)property,DateTimeclass,35VValidatemethod,Pageclass,302ValidateEmptyTextproperty,313ValidateUsermethod,Membershipclass,683,686validationautomaticvalidation,295CausesValidationproperty,295client-sidevalidation,295configuringleveloferrorchecking,116controlsBaseValidatorclass,295CompareValidatorcontrol,294ControlToValidateproperty,296,304CustomValidatorcontrol,294description,293Displayproperty,296,299EnableClientScriptproperty,296,302Enabledproperty,296ErrorMessageproperty,296,303ForeColorproperty,296hidingerrormessages,296,299indicatinginvalidinputtouser,300IsValidproperty,296RangeValidatorcontrol,294RegularExpressionValidatorcontrol,294,304–308RequiredFieldValidatorcontrol,294usingmultiplevalidationcontrols,294validatedwebformexample,308–313validationgroups,313–314ValidationGroupproperty,313ValidationSummarycontrol,294,299–302displayingallerrormessagesforpage,299editingGridViewtemplateswithvalidation,570–571howvalidationworks,297–299KeyPressevent,294manualvalidation,302–304replacingcustomvalidationwithregularexpressions,311securitycookie,651server-side,295usingregularexpressions,304–308validatedwebforms,308–313validationgroups,313–314webapplications,293XML,632–639ValidationEventArgsclass,639ValidationEventHandlerevent,XmlReaderSettingsclass,639ValidationGroupproperty,313ValidationSummarycontroldescription,294DisplayModeproperty,301ForeColorproperty,301HeaderTextproperty,301indicatinginvalidinputtouser,299–301overview,299ShowMessageBoxproperty,301ShowSummaryproperty,301ValidationTypeproperty,XmlReaderSettingsclass,637INDEX974ValidatorCalloutExtender,862validatorscontrols.
Seealsovalidation,controlsclasses,294Logincontrol,688Textproperty,300description,293validationgroups,313ValidatorTextStyleproperty,691valueattribute,HTMLselectelement,147valuekeyword,55ValuepropertyHtmlInputControlclass,156ListItemcontrol,184valuetypesassignmentoperations,63datatypesbehavingas,66equalitytesting,64passingparametersbyvalue,64structures,66value-ofcommandelement,XSLTransformations,641values,enumerations,26–27varkeyword,794–796indicatingdatatype,23streamlinedobjectcreation,70variablesarrays,24–26block-levelscope,41C#,20castingobjectvariables,74–76datatypeprefixes,22delegatevariables,47–48initializationandassignment,22–24operationsadvancedmath,29arithmeticoperators,28overview,27typeconversions,29–31streamlinedobjectcreation,70trackingvariables,124watchwindows,VisualStudiodebugging,124VaryByParamattribute,OutputCachedirectivecachingandquerystring,769cachingmultipleversionsofwebpage,771cachingwithspecificquerystringparameters,770VBScript,197Verisigncertificateauthority,892verticallayout,444VerticalPaddingproperty,TreeNodeStyleclass,439viewstateEnableViewStateproperty,Pageclass,156encryption,255–257example,254–255makingsecure,255–256retainingmembervariables,257–259retrievingvalues,254statemanagementoptions,289statemanagementoptionscompared,288–289storingcustomobjectsinviewstate,259–260ViewStatecollection,254webcontrols,254webfarms,888views,pageswithmultipleviews,326–328ViewStatecollection,254ViewStateproperty,Pageclass,254ViewStateEncryptionModeproperty,Pagedirective,256virtualdirectoriesaccessingsubdirectories,876creating,874creatingfornewproject,898–901customerrorpages,886–888description,127–129,867managingwebsiteswithIISManager,873removing,875settingdefaultpage,885VisiblepropertyBoundFieldclass,544Controlclass,settingtofalse,327HtmlControlclass,154TreeViewcontrol,409–410WebControlclass,178VisibleDateproperty,Calendarcontrol,322VisibleMonthChangedevent,Calendarcontrol,320,323VisibleWhenLoggedInproperty,Logincontrol,693INDEX975VisualStudioaddingreferencestocomponents,742,745applyingstylesheetrules,380–381applyingthemes,385–386automaticcoloringofcode,117automaticformattingofcode,117automaticallyimportingnamespaces,116–117Autoswindow,124benefits,83Breakpointswindow,123browsingandmodifyingdatabasesin,454–456configuringleveloferrorchecking,116ConversionWizard,94creatingcomponents,739contentpagesbasedonmasterpage,393–396databaseconnectioninVisualStudio,454,456masterpage,392–393stylesheets,377–378usercontrols,344–346websites,84–95debuggingbreakpoints,119components,757customizingbreakpoints,123debugginglargewebsite,123overview,118singlestepdebugging,119–122variablewatchwindows,124–125VisualStudiowebserver,118–119deployingwebapplicationswithcopyingwebsitetoremotewebserver,901–904creatingvirtualdirectoryfornewproject,898–901overview,897publishingwebsite,904–905description,9designingwebpagesaddingwebcontrols,96–98configuringwebcontrolsinPropertieswindow,98overview,95displayinginheritedstyles,376–377editingGridViewtemplatesin,566–567ErrorListwindow,116errorunderlining,115–116eventhandling,141executingupdatequeryin,464generatingcolumnswithGridViewcontrol,544–545gridlayoutfeature,98highlightedwebpagecode,100IntelliSense,118introduction,83Localswindow,124memberlist,113–115migratingwebsitefrompreviousversion,93–95modifyingstylesinVisualStudio,374–376multitargeting,95NewWebSitedialogbox,85outlining,112–113projectfiles,89projectlessdevelopment,89runningSQLqueriesin,459–460side-by-sideregionsforsplitview,96SolutionExplorer,91solutionfiles,90StartPage,84–85tooltips,114trackingvariables,124userinstancedadabases,472viewsof.
aspxpage,95Watchwindow,124webprojects,89writingcode,110–118VisualStudioHelpreference,67VisualStudioPremium,15VisualStudioProfessional,15VisualStudiowebserver,119VisualStudioTestProfessional,15VisualStudioUltimate,15VisualWebDeveloperExpress,15VolumeLabelproperty,DriveInfoclass,590Ww\wcharacter,307WAN(wideareanetwork),867Warnmethod,247INDEX976WAT(WebsiteAdministrationTool)creatinguserswith,679–681ManageAccessRuleslink,705overview,168–170role-basedsecurity,701–703Securitytab,655,657settingupformsauthenticationusing,655–657settingupWindowsauthenticationusing,663Watchwindow,VisualStudio,124–125webapplications.
SeealsoASP.
NETapplicationsaspnet_Applicationstable,715benefitsusingfileswith,580creatingwithVisualStudio,85–89deployingadditionalconfigurationsteps,896ASPNET/networkserviceaccounts,878–879codecompilation,896–897copyingwebsitetoremotewebserver,901–904creatingvirtualdirectoryfornewproject,898–901publishingwebsite,904–905usingcustomcomponents,895–896deployingASP.
NETwebsite,869fileaccess,579limitationsusingfileswith,579problemofstateforwebapplications,253representingrootfolderof,413scalabilityandsessionstate,273securitydeterminingsecurityrequirements,647–648formsauthentication,649–661Windowsauthentication,663–667trackingvariables,124validation,293web.
configfile,163webbrowsers.
SeealsobrowsersAjaxand,830–831dealingwithnon-HTMLinwebforms,101webcontrolsAdRotatorcontrol,323–326applyingstylesheetrules,382ASP.
NETadaptiverendering,173pagelifecycle,198,201reasonsforusing,173workingsof,62ASP.
NETtags,175–176automaticpostback,195AutoPostBackproperty,195Calendarcontrol,315–323classes,174–184Colorproperty,180–181configuringinPropertieswindow,98defaultbutton,183designingwebpageswithVisualStudio,96–98enumerations,179–180events,195,201eventsandautomaticpostbacks,193–198Focusmethod,183Fontproperty,181–182greetingcardgeneratorexample,201–210HTMLelementsunderlying,174HTMLservercontrolscompared,173inheritance,177listcontrols,184–188MultiViewcontrol,328–333prefixes,184propertiesandmeasurements,179rendering,104resizing,97richcontrols,315servercodereactingimmediatelytoevents,194Tablecontrol,188–193tags,175–176Unittype,179usercontrolevents,352viewstate,254visibility,178WebControlclass,177–179Wizardcontrol,333–340webdevelopmentclient-sideprogramming,7–9evolutionofwebdevelopment,3–9HTMLandHTMLforms,3–6server-sideprogramming,6webfarms,869INDEX977WebFormcontrols,315webformdesigner,VisualStudiobenefits,83webforms.
SeealsowebpagescreatingwebsiteswithVisualStudio,92events,138validatedcustomerform,308–313webhostingcompanies,866,896webmethods,857–858webpagesabsolutepositioning,98addingwebcontrols,96–98applyingstylesheetrules,380–383applyingthemes,385–386ASP.
NETapplications,127ASP.
NETfiletypedescribing,128codestructurewithcomponents,736completeXHTMLwebpage,108–109componentsandstructureofwebformdoctype,102–104Pagedirective,101–102webformmarkup,100–101XHTMLessentials,104–109convertingHTMLpagetoASP.
NETpage,131–134creatingcode-freewebpages,759creatingcontentpagesbasedonmasterpage,393–396creatingmasterpage,392–393creatingstylesheets,377–380creatingwebsiteswithVisualStudio,92dealingwithnon-HTMLinwebforms,101defaultbuttonon,183defaultcontent,401–402designingwithVisualStudio,95–98displayingfulllistofusersin,728embeddingdynamicgraphics,361eventhandlinginwebpage,141focusedcontrolafterrendering,183greetingcardgeneratorexample,201–210groupingportionsofpages,109indicatingtypeofmarkup,102inheritance,156insertingformattedtextinto,138isolationfromdatabase,737markup,reusing,343masterpages,391–410orderofeventsinpageprocessing,194pagelifecycle,198,201partialrefreshesusingAjax,833–845placingcustomimagesin,361–363progressnotificationusingAjax,845–849redirectingusertonew,157–158referenceto,178reusingheadersandfootersin,345stackingpanelsin,853styles,367–383table-basedlayoutsformasterpages,403–408themes,383–391throwingexceptionswithoutdetails,758timedrefreshesusingAjax,849–850usercontrolscompared,343webprojects,VisualStudio,89WebServerCertificatewizard,893webserversallowingfileuploads,604–607creatingwebserverfilebrowser,591–594debuggingwithVisualStudio,118–119description,865howwebserverswork,865–866virtualdirectories,867VisualStudiobenefits,84Windowsauthentication,663webservices,App_WebReferencesdirectory,130web.
configfileaccessingspecificdirectories,653accessingspecificfiles,653accessingviaIIS,168addelement,166adjustingdefaultmembershipconnectionstring,674anonymousIdentificationelement,729appSettingselement,163,166authorizationsection,705basicstructureof,163case-sensitivity,163configurationelement,163configurationinheritance,165configuringwithWAT,168–170connectionStringselement,163connectionStringssection,472,524INDEX978web.
configfile(continued)debuggingwithVisualStudio,118description,129formsauthentication,651LocalSqlServerconnectionstring,713maximumsizeoffileuploads,607maxRequestLengthsetting,607multilayeredconfiguration,165outputCacheProfilessection,773profileproperties,721profilesection,716role-basedsecurity,701serializeAsattribute,720sessionstateconfigurationcookielesssetting,278–281modesetting,281–286overview,277timeoutsetting,281storingcustomsettingsin,166–168system.
webelement,163updatingsettings,163urlMappingssection,428webapplications,163Windowsauthentication,663–665XMLstructureof,163WebConfigurationManagerclassAppSettingsproperty,167creatingdata-accesscomponent,751WebControlclass,177–179WebsiteAdministrationTool(WAT).
SeeWAT(WebsiteAdministrationTool)websitenavigationASP.
NETnavigationwithsitemaps,412Menucontrol,442–448navigationcomponents,411pageswithmultipleviews,Wizardcontrol,340sitemapsbindingmasterpagetositemap,418–420bindingpagestositemaps,416–418bindingportionsofsitemaps,420–425definingsitemaps,412–416examplesitemap,416mappingURLs,428nodeswithduplicateURLs,415overview,411retrievinginformationfromsitemaps,425showingsubtrees,420–424usingdifferentsitemapsinsamefile,424–425SiteMapclass,425–427SiteMapPathcontrol,430–435TreeViewcontrol,435–442Web.
sitemapfilebindingpagestositemaps,416retrievingsitemapinformationfromXMLfile,412showingsubtreesofsitemaps,422siteMapelement,413siteMapNodeelement,413–415usingdifferentsitemapsinsamefile,425websitesapplyingthemetoentirewebsite,388creatingwithVisualStudio,84–95addingwebforms,92deployingASP.
NETwebsite,895additionalconfigurationsteps,896ASPNET/networkserviceaccounts,878–879codecompilation,896–897usingcustomcomponents,895–896deployingASP.
NETwebsitewithVisualStudio,897–905copyingwebsitetoremotewebserver,901–904creatingvirtualdirectoryfornewproject,898–901publishingwebsite,904–905managingwebsiteswithIISManager,873–874migratingfrompreviousversionofVisualStudio,93–95settingupwebsitetouseformsauthentication,670SolutionExplorer,91synchronizingremotewebsite,904WeekendDayStyleproperty,Calendarcontrol,318WHEREclause,461–462whereclause,798,817–818Whereexpressioncheckbox,ExpressionEditorwindow,826wherekeyword,820Whereproperty,826whileloop,42INDEX979whitespacelinebreaks,105masterpages,400regularexpressioncharacters,307wideareanetwork(WAN),867wideningconversions,29Widthproperty,WebControlclass,178Windowsaccountpermissions,deploymentconfiguration,896Windowsauthentication,663–667authorizationrules,664Basicauthentication,890configuringauthenticationinIIS7,892dataaccess,ADO.
NET,470defaultWindowsroles,665description,649Digestauthentication,890examininguser'sgroupmembership,664IISsettings,892implementingWindows-basedsecurity,663integratedWindowsauthentication,470,890loginpage,666modes,890profiles,712testpage,666–667web.
configsettings,663–665WindowsBuiltInRoleenumeration,665WindowseventlogsviewingWindowseventlogs,229–232writingtoeventlogs,232–233WindowsFeatureswindow,authenticationinIIS7,891WindowsBuiltInRoleenumeration,665WindowsIdentityclass,661Wizardcontrol,333–340ActiveStepChangedevent,338ActiveStepIndexproperty,336CreateUserWizardcontrol,694creatingwizards,333–337DisplaySideBarproperty,333events,337–338formattingthewizard,338–340programmingmodels,338slimmingdowncomplexwizards,337styles,339stylesandtemplates,340templates,340Update()method,338validationwithinwizards,340WizardStepcontrols,creatingwizards,333–337WritemethodResponseclass,161–162Traceobject,247WriteAllBytesmethod,Fileclass,598WriteAllLinesmethod,Fileclass,598WriteAllTextmethod,Fileclass,598WriteLinemethod,StreamWriterclass,595write-onlyproperties,55WriteStartElement()method,634WriteXml()method,491wwwrootdirectorycreatingvirtualdirectories,875,898managingwebsiteswithIISManager,873Xxcoordinate,359XAttributeclass,629XCopydeployment,896XDocumentclass,634–635XDocument.
Load()method,628XElementclass,629–630XHTMLattributes,107–108completeXHTMLwebpage,108–109componentsandstructureofwebform,104–109configuringleveloferrorchecking,116documents,completeXHTMLwebpage,108elements,105–107formattingin,108HTMLand,103referencestoHTMLinthisbook,103strict,102transitional,102XMLattributescreatingXMLdocumentasobjects,627syntaxandvalues,614usingelementsorattributes,613–614classesXmlDocumentclass,623XmlTextReaderclass,618–623XmlTextWriterclass,615–618INDEX980XML(continued)comments,19,166,614,627declaration,613description,103documentsclassprovidingin-memorymodelof,624comments,614creatingXMLdocumentasobjects,627declaration,613description,623parsing,611,613reading,618,628–630readingpartofXMLdocument,623searchingXMLdocument,631validatingagainstschema,639workingwithXMLdocumentsinmemory,623–628writing,615elementsattributes,613–614casesensitivity,612compositionof,612creatingXMLdocumentasobjects,627description,611emptyelement,413nesting,612overlappingelements,613specialcharacters,612usingelementsorattributes,613–614whitespace,612formattingXML,618introduction,612metalanguage,611namespacesattributes,634namespaceprefixes,633namingconventions,632xmlnsattribute,634nodes,618overview,609–610parsers,611serialization,customdatatypes,724validationvalidatingXMLdocumentagainstschema,639XMLnamespaces,632–634XSDdocuments,635–639web.
configfileformat,163XMLfilescomparedtodatabases,612XSLT(XSLTransformations),640–643XMLSchemaDefinition(XSD),632,635–636,639Xmlvalue,serializeAsattribute,720Xmlwebcontrol,642–643XmlAttributeclasscreatingXMLdocumentasobjects,627objectmodelforXmlDocument,624XmlCommentclass,627XmlDataSourceclass,522XmlDataSourcecontrol,781XmlDocumentclassGetElementByIdmethod,631GetElementsByTagNamemethod,631in-memorymodelofXMLdocuments,624objectmodel,624overview,623readingXMLdocument,628–630Savemethod,626–627searchingXMLdocument,631whentouse,630XmlElementclass,627XmlElement.
Element()method,635xmlnsattribute,413,634XmlReaderclass,637XmlReaderSettingsclass,637,639XmlSchemaclass,637XmlSchemaCollectionclass,637XmlSchemaExceptionclass,638XmlSerializerclass,724XmlSiteMapProvidercontrol,412XmlTextReaderclass,618,621,623,630XmlTextWriterclass,615–618,634XNamespaceobject,634xsnamespaceprefix,XSDdocuments,636XSD(XMLSchemaDefinition),632,635–636,639XSL(eXtensibleStylesheetLanguage),640XslCompiledTransformclass,640,642XSLT(XSLTransformations),640–643Yycoordinate,359Yearproperty,DateTimeclass,34–35INDEX981Zzero-basedcountingarrays,36strings,32zero-touchdeployment,896

御云(RoyalYun):香港CN2 GIA VPS仅7.9元每月起,美国vps仅8.9/月,续费同价,可叠加优惠

御云怎么样?炎炎暑期即将来临,御云(royalyun)香港、美国服务器开启大特惠模式。御云是新成立的云服务提供商,主要提供香港、美国的云服务器,不久将开启虚拟主机业务。我们的香港和美国主机采用CN2 GIA线路。目前,香港cn2 gia vps仅7.9元每月起,美国vps仅8.9/月,续费同价,可叠加优惠,香港云服务器国内延迟一般在50ms左右,是搭建网站的最佳选择,但是请不要用于违法用途。点击进...

AkkoCloud(60元/月 ),英国伦敦CN2 1核 768 MB 内存 10 GB SSD 硬盘 600GB 流量 英国伦敦CN2 1核  1.5G  300Mbps

官方网站:https://www.akkocloud.com/AkkoCloud新品英国伦敦CN2 GIA已上线三网回程CN2 GIA 国内速度优秀.电信去程CN2 GIALooking Glass:http://lonlg.akkocloud.com/Speedtest:http://lonlg.akkocloud.com/speedtest/新品上线刚好碰上国庆节 特此放上国庆专属九折循环优惠...

BuyVM($5/月)不限流量流媒体优化VPS主机 1GB内存

BuyVM商家属于比较老牌的服务商,早年有提供低价年付便宜VPS主机还记得曾经半夜的时候抢购的。但是由于这个商家风控非常严格,即便是有些是正常的操作也会导致被封账户,所以后来陆续无人去理睬,估计被我们风控的抢购低价VPS主机已经手足无措。这两年商家重新调整,而且风控也比较规范,比如才入手他们新上线的流媒体优化VPS主机也没有不适的提示。目前,BuyVM商家有提供新泽西、迈阿密等四个机房的VPS主机...

outputcache为你推荐
支持ipad支持ipadCTios三星苹果5eacceleratoreaccelerator.shm_size设置多少合适呢?css3圆角怎样用css实现圆角矩形?ipad连不上wifiiPad mini WiFi开关成灰色无法连接,怎么办win10445端口Win10系统开放端口号怎样查看?win7telnet怎样在win7下打开telnet 命令google统计google分析里的数据包括搜索引擎爬虫的数据吗?Google中文专题交流
美国网站空间 域名系统 com域名价格 国内vps enzu hostgator unsplash 秒杀预告 hostloc 360云服务 智能dns解析 免费asp空间申请 114dns 中国联通宽带测速 wordpress空间 腾讯服务器 九零网络 forwarder 删除域名 远程登录 更多