Directoryoutputcache

outputcache  时间:2021-05-18  阅读:()
875IndexSymbolsandnumerics#(numbersign)character,URLs,218%characterindicatingUnittype,168URLencoding,218&(ampersand)character,151,218&=operator,135&characterentity,151>characterentity,151<characterentity,151 characterentity,101,126,151"characterentity,151*character,regularexpressions,334*character,SELECTstatement,481+character,regularexpressions,334+character,URLs,218.
character,regularexpressions,334.
NETentriesarealphabetizedasNET==(equalto)operator,37@character,XSLT,668[]characters,regularexpressions,334^character,regularexpressions,334_blankframetarget,AdRotatorcontrol,352_parentframetarget,AdRotatorcontrol,352_selfframetarget,AdRotatorcontrol,352_topframetarget,AdRotatorcontrol,352"character,151{}characters,regularexpressions,334()characters,regularexpressions,334|character,regularexpressions,334~/charactersequenceconnectingcontentpagestomasterpages,420masterpagesandrelativepaths,426representingrootfolderofwebapplications,436usingImagecontrolinsteadofimgtag,453(notequalto)operator,37>character,151greaterthanoperator,37404NotFounderror,436Aa(anchor)element,102attributes,103HTMLservercontrolclassfor,130masterpagesandrelativepaths,425redirectingusertonewwebpage,150relatedwebcontrolclasses,164Abandonmethod,HttpSessionStateclass,223AbortPostBackfunction,JavaScript,860absolutepositioning,webpages,93absoluteExpirationparameterInsertmethod,Cacheclass,820,821accesscontrolrulesformsauthentication,687AccessDataSourcecontrol,548accessibilityaddingeventsto.
NETclasses,58declaringmembervariable,52accessibilitykeywords,43,52accessingfilesseefileaccessAccessKeypropertyTextBoxcontrol,173WebControlclass,167accessors,54,56Accordioncontrol,Ajax,865–869AutoSizeproperty,869choosingpanelinAccordion,866FadeTransitionsproperty,866FramesPerSecondproperty,869876INDEXRequiredOpenedPaneproperty,867SelectedIndexproperty,867TransitionDurationproperty,869Accountclassstatefuldesignexample,791,792AccountOperatorrole,701AccountUtilityclassstatelessdesignexample,792–793ActiveDirectoryMemberProviderclass,721ActiveStepChangedevent,Wizardcontrol,364,365ActiveStepIndexproperty,Wizardcontrol,364ActiveViewIndexproperty,MultiViewcontrol,358adaptiverendering,164AdCreatedevent,AdRotatorcontrol,353addelement,web.
configfile,158Addmethod,DateTime/TimeSpanclasses,35AddNewItemwindowcreatingcontentpage,417,418creatingwebsiteswithVisualStudio,88–89PlaceCodeinSeparateFileoption,88SelectMasterPageoption,88AddReferencedialog,786AddTabledialog,479addtagattributesforconfiguringmembershipprovider,721profilepropertyattributes,761AddWebReferencedialog,786AddDaysmethods,DateTimeclass,34AddHandlerstatement,59,60AddItemmethod,DBUtilclass,806,807additionoperator(+),28Addressproperty,Profileclass,768Addressproperty,ProfileCommonclass,770AddUser(s)ToRole(s)methods,Rolesclass,749AddXyzmethods,DateTimeclass,35administrationpageretrievingloginformation,262Administratorrole,701ADO.
NET,486–490briefintroduction,472classes,groupsof,486datanamespaces,488–489dataproviderclasses,489–490dataproviders,486dataretrievalusing,500–504fillingListBoxcontrol,501–503retrievingrecords,503–504description,471modifyingdataindatabase,504–514retrievingdatafromdatabase,499usingdatareaderclasses,499–500usingdatasetclasses,514–522SQLbasics,478–486usingSQLwith,479ADO.
NETdataaccesscreatingconnections,492–499connectionstrings,493storingconnectionstrings,496userinstanceconnections,495–496Windowsauthentication,494data-accesscomponents,793–802aggregatefunctionsenhancement,801–802creatingdata-accesscomponent,793–797errorhandlingenhancement,800–801usingdata-accesscomponent,797–800directdataaccess,491–514disconnecteddataaccess,514–522definingrelationshipsindatasets,520–522opening/closingconnections,497–499verifyingconnections,497XMLand.
NET,636AdRotatorcontrol,351–354AdCreatedevent,353Advertisementfile,351AdvertisementFileproperty,352eventhandling,353frametargets,352KeywordFilterproperty,353877INDEXFinditfasterathttp://superindex.
apress.
comAdvertisementFileproperty,AdRotatorclass,352Advertisementfile,AdRotatorcontrol,351elements,352AffectedRowspropertySqlDataSourceStatusEventArgsclass,562aggregatefunctions,SQL,483data-accesscomponentenhancement,801–802Ajax,841–845Accordioncontrol,865–869advantagesof,842AjaxorAJAX,843AlwaysVisibleControlExtendercontrol,872AnimationExtendercontrol,872ASP.
NETAJAXControlToolkit,863–874ASP.
NETAJAX,learningmoreabout,874AutoCompleteExtendercontrol,869–872CalendarExtendercontrol,872controlextenders,869disadvantagesof,842–843DragPanelExtendercontrol,873DynamicPopulateExtendercontrol,873FilteredTextBoxExtendercontrol,873HoverMenuExtendercontrol,873ListSearchExtendercontrol,873ModalPopupExtendercontrol,873MutuallyExclusiveCheckboxExtendercontrol,873NumericUpDownExtendercontrol,873PagingBulletedListExtendercontrol,873partialrefreshes,845–857PasswordStrengthExtendercontrol,873PopupControlExtendercontrol,873progressnotification,857–861Ratingcontrol,873ResizableControlExtendercontrol,873scriptdebugging,113ScriptManagercontrol,844–845SlideShowExtendercontrol,874TabContainercontrol,874TextBoxWatermarkcontrol,874timedrefreshes,861–863Timercontrol,861–863UpdatePanelcontrol,845–857UpdateProgresscontrol,857–861aliasescreatingvirtualdirectories,299allowrule,web.
configfileformsauthentication,690Windowsauthentication,700allowAnonymousattributeanonymousprofiles,774profileproperties,761AllowPagingpropertyDetailsViewcontrol,598FormViewcontrol,602GridViewcontrol,587AllowReturnproperty,WizardStepcontrol,362AllowSortingproperty,GridViewcontrol,584,585altattribute,imgelement,103AlternateTextelement,AdvertisementFile,352AlternatingItemTemplatemode,591AlternatingRowStyleproperty,GridViewcontrol,573AlwaysVisibleControlExtendercontrol,872AmazonquerystringstransferringinformationinURLs,215ampersand(&)character,URLs,218anchorelementseea(anchor)elementANDkeyword,WHEREclause,482Andoperator,37AndAlsooperator,37AnimationExtendercontrol,872anonymousaccessprogrammaticimpersonation,707Windowsauthentication,704anonymousidentificationdeletingoldanonymoussessions,774Anonymousmode,Windowsauthentication,702anonymousprofiles,773–775migrating,774–775Finditfasterathttp://superindex.
apress.
com878INDEXanonymoususersASP.
NETsecurity,683controllingaccesstospecificdirectories,689controllingaccesstospecificfiles,690denyingaccessto,688formsauthentication,685IUSERaccount,699IUSRaccount,683multipleauthorizationrules,689non-ASP.
NETsecurity,681questionmarkwildcard,688restrictingaccessbasedonroles,750restrictinguseraccess,687anonymousIdentificationelement,web.
configfile,773,774AnonymousTemplatesection,LoginViewcontrol,750AntiAliasvalue,SmoothingModeproperty,390AntiAliasGridFitvalue,TextRenderingHintproperty,391antialiasing,390,391Appendmethod,XmlNodeclass,657AppendChildmethod,XmlDocumentclass,654AppendChildmethod,XmlNodeclass,657ApplicationclassEndRequestevent,153applicationdirectories,ASP.
NET,123–124applicationdomainsASP.
NETapplications,121ASP.
NETprocessexplained,136applicationevents,152–154eventhandlingmethods,154Global.
asaxfile,153handlingincodebehind,153Applicationlog,Windows,255applicationpoolchangingNetworkServiceaccount,310creatingvirtualdirectories,299Applicationproperty,Pageclass,149applicationserverrole,291ApplicationSettingsicon,IISManager,303applicationstate,235–236datacachingcompared,811performance,236statemanagementoptionscompared,238tracinginformation,274ApplicationstatecollectionLock/Unlockmethods,236application-leveltracing,280viewingtracinginformation,281ApplicationExceptionclasscustomexceptionclasses,251,252enhancingcomponentswitherrorhandling,801applicationNameattribute,addtag,721applications,ASP.
NET,121–124Application_Xyzevents,154ApplyStyleswindow,406,407apply-templatescommand,xsl,667ApplyFormatInEditModeproperty,BoundFieldclass,569appSettingselement,web.
configfile,156storingcustomsettingsin,157–159AppSettingsproperty,WebConfigurationManagerclass,158App_Codedirectory,124App_Datadirectory,124creatingwebsiteswithVisualStudio,85DataDirectoryvalue,495membershipwithSQLServer2005Express,715,716ServerExplorerwindow,VisualStudio,476usingprofileswithSQLServer2005Express,758VisualStudioworkingwith,496App_GlobalResourcesdirectory,124App_LocalResourcesdirectory,124App_Themesdirectory,124App_WebReferencesdirectory,124arcsdrawingwithGraphicsclass,383ARGB(alpha,red,green,blue)colorvalue,170879INDEXFinditfasterathttp://superindex.
apress.
comarithmeticoperators,28DateTimeclass,34shorthandassignmentoperators,28TimeSpanclass,34Arrayclass,36–37Clonemethod,66natureandbehaviorofdatatypes,66propertiesandmethods,36ArrayListclass,26castingobjects,74generics,77repeated-valuedatabinding,534,535whyitremainsin.
NET,78arrays,24–26accessinganelement,25ArrayListclass,26multidimensionalarrays,24ReDimkeyword,25redimensioning,25zero-basedcounting,24,36ascxfiles,123usercontrols,369asmxfiles,123ASPASP.
NETcompared,7languageevolution,20asp:prefixcreatingusercontrols,371webcontroltags,165ASP.
NETASPcompared,7caching,811–812self-limitingnature,810collections,202component-basedprogramming,779convertingHTMLpagetoASP.
NETpage,126–128deployingwebapplications,304–311additionalconfigurationsteps,305–306ASPNET/networkserviceaccounts,307–308codecompilation,306–307usingcustomcomponents,305deployingwebapplicationswithVisualStudio,311–318copyingwebsitetoremotewebserver,314–317creatingvirtualdirectoryfornewproject,312–314publishingwebsite,317–318description,9howIIShandlesanASPfilerequest,284HTMLservercontrols,125impersonation,706,708IUSRaccountandrunningcode,683majorreleasesof,11partialrefreshesusingAjax,845,857pollingenabling,835notificationsnotreceived,840pollingmodel,832processforcurrencyconverterexplained,135,136profiles,753progressnotificationusingAjax,857,861servercontrols,124–136server-sideprogramming,6,7stagesinASP.
NETrequest,137stylelimitations,393themes,409timedrefreshesusingAjax,861–863usesofdatabasewith,472verifyingASP.
NETinstallation,294–295webcontrols,125,163–166ASP.
NETAJAXAccordioncontrol,865–869AutoCompleteExtendercontrol,869–872caching,844introduction,843learningmoreaboutASP.
NETAJAX,874partialrefreshes,845–857progressnotification,857–861ScriptManagercontrol,844–845timedrefreshes,861–863Timercontrol,861–863UpdatePanelcontrol,845–857UpdateProgresscontrol,857–861updatesinterruptingupdates,852880INDEXASP.
NETAJAXControlToolkit,863–874controlextenders,869installing,864–865tableofcontrols,872–874ASP.
NETAJAXJavaScriptlibrariesScriptManagercontrollinkingto,844ASP.
NETapplicationdirectories,123–124ASP.
NETapplications,121–124seealsowebapplicationsapplicationdomains,121Global.
asaxfile,153virtualdirectory,121,123webpagesand,121webserversand,283ASP.
NETconfiguration,155–160multilayeredconfiguration,156storingcustomsettingsinweb.
configfile,157–159virtualdirectories,302–304WAT(WebsiteAdministrationTool),159–160web.
configfile,155–156ASP.
NETcontrolsseecontrolsASP.
NETfilemappings,registering,293–294ASP.
NETfiletypes,122–123ASP.
NETformscase-sensitivity,166ASP.
NETsecuritymodel,680–685authentication,684authorization,684IISwebserver,680–683VisualStudiowebserver,683ASP.
NETtagsseealsowebcontroltagshowwebserverswork,284ASP.
NETwebcontrolsseewebcontrolsASP.
NETwebformsusercontrolscomparedto,369ASPNETaccountchanging,308–309deployingwebapplications,307–308givinglimitedprivilegesto,311permissions,308aspnetdb.
mdffilecreating,718SQLServer2005Express,715,716,758userrecordinaspnetdb.
mdfdatabase,717aspnet_Applicationstable,759aspnet_compiler.
exetool,306,307,317aspnet_isapi.
dllASP.
NETdeploymentsecurity,307aspnet_MembershiptablecreatinguserswithWAT,724MembershipUserobject,727SQLServer2005Express,716aspnet_Profiletable,759profileproperties,764profileserialization,763aspnet_regiis.
exeutilityregisteringASP.
NETfilemappings,293,294verifyingASP.
NETinstallation,295aspnet_regsql.
execommand,234command-lineswitches,719creatingaspnetdbdatabase,718enablingnotificationswithSQLServer2000,832manuallycreatingmembershipdatastore,718,719role-basedsecurity,746usingprofileswithSQLServer,758aspnet_SchemaVersionstable,759aspnet_Userstable,759creatinguserswithWAT,724membershipwithSQLServer2005Express,716MembershipUserobject,727aspxfilesaddingHTMLservercontrol,132ASP.
NETprocessexplained,135CurrencyConverter.
aspxfile,133description,123howwebserverswork,284OutputCachedirective,812VisualStudioviewsofaspxpage,91aspx.
vbfilesCurrencyConverter.
aspx.
vbfile,134881INDEXFinditfasterathttp://superindex.
apress.
comassemblies,69addingassemblyreference,786,787assembliesandnamespaces,70componentsandclasses,785creatingdata-accesscomponent,794dllandexeextensions,70privateassemblies,305sharedassemblies,305usingassemblyreferences,790assignmentoperationscopyinganobject,notareference,64referencetypes,63shorthandassignmentoperators,28Stringclass,66valuetypes,63assignment,variables,23–24AssociatedControlIDproperty,Labelcontrol,173AssociatedUpdatePanelIDproperty,UpdateProgresscontrol,859asynchronouscallbackspartialrefreshesusingAjax,845UpdatePanelcontrol,848asynchronouspostbacksseepartialrefreshesusingAjaxasynchronousrequestscancelling,859progressnotificationusingAjax,857AttachDBFilenameproperty,connectionstrings,495attributesHTMLandXHTML,103settingpropertiesincontroltag,147XMLnamespaces,661AttributespropertyDirectoryInfoclass,614FileInfoclass,614HtmlControlclass,147XmlNodeclass,657attributes,XMLseeXMLattributesAuthenticateevent,Logincontrol,733,734Authenticatemethod,FormsAuthenticationclass,695AuthenticateEventArgsclassAuthenticatedproperty,734authenticatingusersweb.
configfile,688authenticationASP.
NETrequest,681authenticationwithmembership,730–731description,684formsauthentication,685–699impersonation,707mixed-modeauthentication,494non-ASP.
NETrequest,681profiles,756enablingauthentication,757formsauthentication,757stepstouseprofiles,756Windowsauthentication,757SelectAuthenticationoptions,691SQLServerauthentication,494Userproperty,Pageclass,149Windowsauthentication,494,685,699–706authenticationelement,web.
configfile,156AuthenticationMethodswindowchoosingauthenticationmethodinIIS5,703authenticationtag,web.
configfileattributes/settings,687changingforsubdirectory,689formsauthentication,686Windowsauthentication,700authorization,684authorizationelement,web.
configfile,156authorizationrulesaccessforspecificusers,690–691accessingspecificdirectories,689accessingspecificfiles,689–690addingauthorizationrules,693formsauthentication,687–691multipleauthorizationrules,689orderingauthorizationrules,694restrictingaccessbasedonroles,749settingupusingtheWAT,691–694Windowsauthentication,700882INDEXauthorizationsection,web.
configfile,749authorizationtag,web.
configfileaccesscontrolrules,687controllingaccesstospecificdirectories,689multipleauthorizationrules,688AutoFormatdialogboxconfiguringstyleswithVisualStudio,575AutoFormatfeatureCalendarcontrol,346GridViewcontrol,627autoincrementcolumnsrelationaldatabases,485AutoCompleteExtendercontrol,Ajax,869–872GetNameswebmethod,870MinimumPrefixLengthproperty,870ServiceMethodproperty,870TargetControlIDproperty,870AutoCorrect,VisualStudio,111–112AutoDetectvalue,HttpCookieModeenumeration,228AutoGenerateColumnsproperty,GridViewcontrolautomaticcolumngeneration,566definingcolumns,567displayingfulllistofusersinwebpage,772generatingcolumnswithVisualStudio,570AutoGenerateDeleteButtonproperty,DetailsViewcontrol,560AutoGenerateEditButtonproperty,DetailsViewcontrol,560AutoGenerateInsertButtonproperty,DetailsViewcontrol,560,806AutoGenerateRowsproperty,DetailsViewcontrol,554,599,600automateddeployment,MSBuildutility,86automaticpagingfeature,GridViewcontrol,587automaticpostbacksdescription,184greetingcardgeneratorexample,198slowconnectionsand,200webcontroleventsand,183–188automaticvalidation,server-side,323AutomaticallyGenerateDataBindingsproperty,TreeViewcontrol,674automaticSaveEnabledattribute,profileelement,769AutoPostBackproperty,listcontrolscapturingchangeeventimmediately,185creatinglistoffilesindirectory,612dataretrievalusingADO.
NET,503greetingcardgeneratorexample,198howpostbackeventswork,187pagelifecycle,188repeated-valuedatabinding,539,544usingwithObjectDataSource,805Autoswindow,VisualStudio,118autosaves,customdatatypes,769AutoSizeproperty,Accordioncontrol,869AvailableFreeSpaceproperty,DriveInfoclass,616AVGfunction,SQL,483Bbelement,101,158formattinginXHTML,103BackColorpropertyTextBoxcontrol,165WebControlclass,167Backgroundcategorystylesettings,NewStyledialogbox,397backslash(\)charactercreatingfilebrowser,620BackupOperatorrole,701BaseValidatorclass,324Basicmode,Windowsauthentication,702Bindirectory,124addingreferencestocomponents,786,788binaryfilesreadingandwritingwithstreams,623–624binaryserializationcustomdatatypes,769Binaryvalue,serializeAsattribute,764BinaryFormatterclassbinaryserializationofcustomdatatypes,769883INDEXFinditfasterathttp://superindex.
apress.
comBinaryReaderclass,623BinaryWriterclass,623Bindmethod,TextBoxcontrol,594bindingseedatabindingBitmapclassbasicstepsforusingGDI+,382bitmapsseealsoimagessizingbitmapscorrectly,382bitwisearithmeticcreatinglistoffilesindirectory,612Blockcategorystylesettings,NewStyledialogbox,397block-levelscope,40bodyelement,4,104ContentPlaceHoldercontrol,416boldelementseebelementBoldproperty,FontInfoclass,171BookEntryclass,626Booleandatatype,22,66Bordercategorystylesettings,NewStyledialogbox,398BorderColorproperty,WebControlclass,167BorderStyleenumerationvalues,167BorderStylepropertyPanelcontrol,196,197WebControlclass,167BorderWidthproperty,WebControlclass,167BoundFieldclassDataFormatStringproperty,572DetailsViewcontrol,600GridViewcontrolcolumntype,568properties,569SortExpressionproperty,584BoundFieldelement,GridViewcontrol,570Boxcategorystylesettings,NewStyledialogbox,398brelement,101,102,158masterpages,423breadcrumbnavigation,451breakpointscommandsinbreakmode,116customizing,117debugginglargewebsite,116saving,117single-stepdebugging,114Breakpointswindow,VisualStudio,117browsertypecustomcachingcontrol,817determininguser'sbrowser,529browsersseewebbrowsersBrushobject,specifying,384BulletedListcontrol,177–178seealsolistcontrolsadditionalproperties,177BulletStylevaluessupported,177DisplayModeproperty,177listcontrolscompared,174renderingoftext,177underlyingHTMLelement,165BulletImageUrlproperty,BulletedListcontrol,177BulletStyleproperty,BulletedListcontrol,177businesslayer,three-tierdesign,780businessobjects,782Buttoncontroladdinglinkedimages,140aspxcodecreating,180CausesValidationproperty,327,330CauseValidationproperty,325Clickevent,183,214eventsandpostbacks,185inputtagunderlying,164underlyingHTMLelement,164buttonelement,130buttontype,inputelement,130Buttonwebcontrol,325ButtonFieldclassCommandNameproperty,579DetailsViewcontrol,600GridViewcontrolcolumntype,568usingdatafieldasselectbutton,579buttonsCausesValidationproperty,323controlswithspecificcommandnames,358884INDEXdefaultbutton,173imagesaspartoftheme,414–415ButtonTypeproperty,GridViewcontrol,578ByRefkeyword,65Bytedatatype,22natureandbehaviorofdatatypes,66ByValkeyword,43,64,65CCacheclasscachingtest,Cacheobject,821–822datacaching,819expiryofCacheobject,820Insertmethod,820creatingcachedependency,835parameters,820insertingobjectsintocache,820–821supportfordependencies,820thread-safety,820cachedependencies,830–840cacheitemdependencies,831filedependencies,830–831SQLServer2000,832–836SQLServer2005/2008,836–840usingSQLcachedependencies,832cacheinvalidationSQLServer2000,832,833,835SQLServer2005/2008,836cachenotificationsseenotificationscacheprofiles,819Cacheproperty,Pageclass,149,819CacheDependencyclasscacheitemdependencies,831creatingdependencyforcacheditem,820creatinginstance,830,831CacheDurationproperty,datasourcecontrol,826CacheExpirationPolicyproperty,datasourcecontrol,826CacheKeyDependencyproperty,datasourcecontrol,826CacheProfileattribute,OutputCachedirective,819caching,809–840ASP.
NET,811–812self-limitingnature,810ASP.
NETAJAX,844ASP.
NETprocessexplained,136cachedependencies,830–840cacheprofiles,819cacheditemexpiresimmediately,840cachinggenericportionofpage,813cachingmultipleversionsofwebpage,815–817clientsidecaching,813customcachingcontrol,817–818datacaching,819–830cachinginDataSet,822–826cachingtest,821–822description,811insertingobjectsintocache,820–821datasourcecaching,811datasourcecontrolcaching,826–830cachingwithObjectDataSource,829–830cachingwithSqlDataSource,826–829databasequeries,810disablingcachingwhiletesting,813fragmentcaching,811,818frequentlyuseddata,810outputcaching,811,812–819OutputCachedirective,812performance,810querystringsandcaching,814–817recompilingcachedpages,813scalability,810sessionstatescalability,226whentouse,810whichdatatocache,810Calendarcontrol,343–350adjustingstyles,346AutoFormatfeature,346CalendarDayclassproperties,347configuringselectionmodes,344controltagsinskinfile,413events,350formatting,345–346highlightinganimportantdate,347multipledateselection,344885INDEXFinditfasterathttp://superindex.
apress.
comnavigatingfrommonthtomonth,344properties,349propertiesforCalendarstyles,345restrictingdates,346–350retrievingselecteddayincode,344CalendarDayclass,347CalendarExtendercontrol,Ajax,872cancelbutton,UpdateProgresscontrol,859–861Cancelproperty,MailMessageEventArgsclass,745CancelButtonClickevent,Wizardcontrol,364CancelButtonStyleproperty,Wizardcontrol,366Caption/CaptionAlignpropertiesCalendarcontrol,349GridViewcontrol,572casesensitivityASP.
NETforms,166SQL,482URLinsitemap,439web.
configfile,155XML,639castingobjectvariables,73–75CatchblockseeTry.
.
.
Catch.
.
.
FinallyblocksCausesValidationpropertyButtonclass,327,330client-sidevalidation,323LinkButtoncontrol,597server-sidevalidation,323CauseValidationproperty,Buttonclass,325CellPaddingproperty,Calendarcontrol,349CellPaddingproperty,GridViewcontrol,572Cellscollection,GridViewRowcontrol,576CellSpacingproperty,Calendarcontrol,349CellSpacingproperty,GridViewcontrol,572certificateauthorities,708,711certificates,SSL,708,711creatingcertificaterequest,708–710testcertificates,710CGI(CommonGatewayInterface)scalability,6chainsexceptionchains,243changeeventscapturingchangeeventimmediately,185CtrlChangedmethodhandling,191greetingcardgeneratorexample,198onchangeevent,187pagelifecycle,188SelectedIndexChangedevent,184ServerChangeevent,183ChangeDetectedmethod,59ChangeExtensionmethod,Pathclass,607ChangePasswordcontrol,732ChangePasswordmethod,MembershipUserclass,728ChangePasswordQuestionAndAnswermethod,728Chardatatype,22,66characterscharactermatching,334regularexpressioncharacters,334checkboxesMenu/TreeViewcontrolscompared,463CheckBoxcontrolaspxcodecreating,180eventsandpostbacks,185underlyingHTMLelement,164validation,339checkboxtype,inputelementHTMLservercontrolclassfor,130relatedwebcontrolclasses,164,165CheckBoxFieldclassGridViewcontrolcolumntype,568CheckBoxListcontrolseealsolistcontrolscachinginDataSet,825convertingstepintotemplate,742eventsandpostbacks,185listcontrolscompared,174multipleselections,175repeated-valuedatabinding,533selecttagunderlying,165underlyingHTMLelement,165CheckBoxStyleproperty,Logincontrol,735886INDEXCheckedChangedevent,185ChildNodescollection,656ChildNodesproperty,SiteMapNodeclass,448ChildNodesPaddingproperty,TreeNodeStyleclass,459ChooseLocationdialogbox,84classattribute,406,407classlibrarysee.
NETclasslibraryalphabetizedasNETclassmembersaddingfunctionalitytoclasses,786classname,CSS,403classes,49–63addingfunctionalityto,786ArrayListclass,26assembliesandnamespaces,70building.
NETclasses,52–63addingconstructors,57–58addingevents,58–61addingmethods,56–57addingproperties,54–56creatingobjects,53–54testingclasses,61–63CacheDependencyclass,831castingobjectvariables,73–75compilingcomponents,784–785component-basedprogramming,783creatingcomponents,786creatingsimpleclass,51datatypesbehavingasvaluetypes,66Directoryclass,608–613DirectoryInfoclass,613–615DriveInfoclass,615–616events,50Fileclass,608–613FileInfoclass,613–615fullyqualifiednames,68generics,77–78HTMLservercontrolclasses,129–132HtmlContainerControlclass,148HtmlControlclass,143,146–147HtmlInputControlclass,148inheritance,71–72instancemembers,51Membershipclass,726–727MembershipUserclass,727–728methods,50.
NETtypes,65objectsandclasses,50Pageclass,148–150partialclasses,75–77Pathclass,607–608properties,50Rolesclass,748–749serialization,765sharedmembers,51,72–73SiteMapclass,447–449statefulorstatelessdesign,790,791usingstatefulandstatefulclassestogether,793valuetypesandreferencetypes,63VisualStudioHelpreference,67webcontrols,164–174WebControlclass,167–168XMLclasses,642–659XmlDataDocumentclass,676XmlDocumentclass,650–659XmlTextReaderclass,645–650XmlTextWriterclass,642–644clearelementremovingconnectionstrings,758Clearmethod,Arrayclass,37Clearmethod,HttpSessionStateclass,223ClearTypeGridFitvalue,TextRenderingHintproperty,391ClickeventButtoncontrols,183LinkButtoncontrol,380webcontrolsprovidingandpostbacks,185Clickevent,Buttonclassaddinglinkedimages,141cross-pagepostbacks,214greetingcardgeneratorexample,194client-sidecaching,813client-sideprogramming,7,187client-sidevalidation,323887INDEXFinditfasterathttp://superindex.
apress.
comClientValidationFunctionproperty,CustomValidatorcontrol,338,339Clonemethod,Arrayclass,66copyinganobject,notareference,64CloneNodemethod,XmlNodeclass,656Closemethodconnectionclasses,498,500datareaderclasses,500Fileclass,622closingtags,HTMLcontrol,148CLR(CommonLanguageRuntime),14–15briefdescription,9ILandCLR,12,20CLS(CommonLanguageSpecification),12,14cmdUpdate_Clickeventhandler,196,198codereusingwebpagemarkup,369writingcodeinVisualStudio,105–112addingeventhandlers,106–108automaticcoloringofcode,112automaticformattingofcode,112code-behindclass,106IntelliSense,108–112codeblocksstructuredexceptionhandling,241codefragmentationproblemswithsingle-valuedatabinding,531codereusecomponent-basedprogramming,780codetransparency,15codeviewswitchingtodesignview,105code-behindclasscreatingusercontrols,370currencyconverterexample,134eventhandlers,106,134Pageclass,134Partialkeyword,134writingcodeinVisualStudio,106code-behindfileshandlingapplicationeventsin,153pagedirective,127problemswithsingle-valuedatabinding,531usercontrols,369codingwebforms,82CollapseImageUrlproperty,TreeViewcontrol,458CollapseNavigationControlspropertymasterpageclass,430collectionclassescastingobjects,74generics,78purposeof,70StateBagcollectionclass,202collectionsASP.
NET,202dictionarycollections,537–539genericcollections,535QueryStringcollection,215repeated-valuedatabinding,533,534ViewStatecollection,202Collectionsnamespace,534colorproperties,webcontrols,94Colorproperty,webcontrolclasses,170colorsARGBcolorvalue,170greetingcardgeneratorexample,196,197colspanattribute,tdtags,427columntypes,GridViewcontrol,568Combinemethod,Pathclass,607creatingfilebrowser,620creatinglistoffilesindirectory,612Commandclassdataproviders,490commandclassesCommandTextproperty,519dataretrievalusingADO.
NET,503disposingofCommandobjects,499ExecuteNonQuerymethod,505,513ExecuteReadermethod,500modifyingdataindatabase,504–514representingDELETEstatement,513–514representingINSERTstatement,507–508representingSELECTstatement,499representingSQLstatements,499888INDEXrepresentingUPDATEstatement,511–513retrievingdata,499usingwithdatareaderclasses,499–500commandcolumneditingGridViewtemplateswithout,597–598Commandevent,LinkButtoncontrol,380Commandobjectrepeated-valuedatabinding,546CommandArgumentproperty,buttoncontrols,593CommandBuilderobjectconcurrencychecking,561CommandFieldclassGridViewcontrolcolumntype,568ShowDeleteButtonproperty,583ShowEditButtonproperty,582editingwithGridViewtemplate,594ShowSelectButtonproperty,582CommandNamepropertybuttoncontrols,593ButtonFieldclass,579LinkButtonclass,597CommandTextproperty,commandclasses,519comments,XML,157,641commit-as-you-goprogrammingmodel,Wizardcontrol,365commit-at-the-endprogrammingmodel,Wizardcontrol,365commondatatypesystem,21,22CommonGatewayInterface(CGI),6CommonLanguageRuntimeseeCLRCommonLanguageSpecification(CLS),12,14Commonnamespace,System.
Data,489CompareAllValuesvalue,ConflictOptionsenumeration,562CompareValidatorcontrol,322controlspecificproperties,324propertiesofBaseValidatorclass,324validatedwebformexample,336comparisonoperators,38compilationin-placecompilation,307precompilation,306component-basedprogrammingaddingreferencetocomponents,786–788advantagesof,779–780businessobjects,782classes,783classesandnamespaces,784–785compilingcomponents,784creatingcomponents,783–790dataobjects,782data-accesscomponents,793–802aggregatefunctionsenhancement,801–802creatingdata-accesscomponent,793–797errorhandlingenhancement,800–801usingdata-accesscomponent,797–800encapsulation,782ObjectDataSourcecontrol,802–808propertiesandstate,790–793removingreferences,788statefulorstatelessdesign,791terminology,780–783three-tierdesign,780–782usingassemblyreferences,790usingcomponents,788usingprojectreferences,790componentsdata-accesscomponents,793–802debuggingusingVisualStudio,800simplecomponent,786throwingexceptionswithoutdetails,801usingstatefulandstatefulclassestogether,793concatenationoperator(&),28concurrencydatabaseconcurrencyinwebapplications,473concurrencycheckingCommandBuilder,561timestamps,563updatingrecordswithdatasourcecontrols,561–563889INDEXFinditfasterathttp://superindex.
apress.
comconditionalstructures,37–39If.
.
.
EndIfblocks,38logicaloperators,37SelectCaseblock,38–39conditionalupdatesUpdatePanelcontrol,851–852configurationASP.
NETconfiguration,155–160configurationinheritance,156,157databasedeployment,306databases,474–478multilayeredconfiguration,156WAT(WebsiteAdministrationTool),159–160web.
configfile,155–156XCopydeployment,305configurationelement,web.
configfile,155configurationfilesaccessingconfigfilesviaIIS,159adjustingdefaultmembershipconnectionstring,717–719changingsettingsformembershipdatastore,719–723debuggingwithVisualStudio,112XMLand.
NET,635ConflictDetectionproperty,SqlDataSourceclass,562ConflictOptionsenumeration,562Connectionclassdataproviders,490repeated-valuedatabinding,546connectionclassesClosemethod,498,500ConnectionStringproperty,492creatingdatabaseconnections,492,493dataretrievalusingADO.
NET,503Disposemethod,498Openmethod,498,797usinginstanceorsharedmethods,790connectionpooling,797connectionstringsadjustingdefaultmembershipconnectionstring,717–719AttachDBFilenameproperty,495ConnectionStringproperty,493ConnectionTimeoutproperty,493dataaccess,ADO.
NET,493dataproviderdifferences,490dataretrievalusingADO.
NET,501DataSourceproperty,493defaultmembershipconnectionstring,717enhancingcomponentswitherrorhandling,800InitialCatalogproperty,493IntegratedSecurityproperty,493LocalSqlServerconnectionstring,758profiles,758SqlDataSourceclass,550storingconnectionstrings,496UserInstancesproperty,495ConnectionStringsicon,IISManager,303connectionscreatingforADO.
NETdataaccess,492–499data-accesscomponents,793ConnectionStringpropertyconnectionclasses,492connectionstrings,493SqlDataSourceclass,551connectionStringNameattribute,addtag,721connectionStringssection,web.
configfile,156,496,550ConnectionTimeoutproperty,connectionstrings,493constructorsaddingconstructorsto.
NETclasses,57–58customexceptionclasses,252overloading,58containersHtmlContainerControlclass,148containment,70contentpagesconnectingtomasterpages,419–421creatingcontentpagesbasedonmasterpage,417–419defaultcontent,424–425890INDEXmasterpagesand,393multiplecontentregionsinmasterpages,421–424nocontentregionsinmasterpage,424overridingtitlespecifiedinmasterpage,420overridingdefaultcontentinmasterpage,424viewingmasterpages,416Contenttag,426connectingcontentpagestomasterpages,420,421ContentPlaceHolderIDattribute,421overridingdefaultcontentinmasterpage,424ContentView,IISManager,296ContentLengthproperty,PostedFileclass,633ContentPlaceHoldercontrolbodyelement,HTML,416creatingcontentpages,418–419creatingmasterpage,416–417,419defaultcontentinmasterpages,424headelement,HTML,416multiplecontentregionsinmasterpages,421–424noneinmasterpage,424overridingdefaultcontent,424ContentPlaceHolderregion,418,419ContentPlaceHolderIDattribute,Contenttag,421ContentTemplateelementUpdatePanelcontrolusing,848Continuecommand,breakmode,116ContinueDostatement,Do.
.
.
Loopblock,42ContinueForstatement,For.
.
.
Nextblock,42ContinueDestinationPageUrlproperty,CreateUserWizardcontrol,738ControlclassDataBindmethod,526DataMemberproperty,541Visibleproperty,354controlclassesHTMLelementsunderlying,164Controldirective,370controlextenders,869controlparameters,555controlprefixes,webcontrols,174controlpropertiesconfiguring,407controltagsinskinfile,413–414handlingcontrol/themeconflicts,410–411parametertypes,555single-valuedatabindingsetting,530skinsandthemes,408controltagaddingusercontrols,371controltreetracinginformation,273ControlParametercontroltagcreatingmaster-detailspages,581parametertypes,555controlsseealsowebcontrolsAccordion,865–869AdRotator,351–354AlwaysVisibleControlExtender,872AnimationExtender,872applyingstylesheetrules,406ASP.
NETAJAXControlToolkit,863–874AutoCompleteExtender,869–872BulletedList,177–178Calendar,343–350CalendarExtender,872controlextenders,869CreateUserWizard,738–743creatingmultipleskinsforsamecontrol,412–413customcachingcontrol,817–818datasourcecontrols,547–563DataView,584declaring,107DetailsView,554–555,598–601DragPanelExtender,873DynamicPopulateExtender,873891INDEXFinditfasterathttp://superindex.
apress.
comFileUpload,631FilteredTextBoxExtender,873FormView,601–603GridView,565–598HoverMenuExtender,873HTMLforms,5HTMLservercontrols,125ImageButton,593listcontrols,174–178ListSearchExtender,873ListViewcontrol,533,565Login,732–737LoginView,750–752Menu,462–468ModalPopupExtender,873multiple-viewcontrols,354–367MultiView,355–359MutuallyExclusiveCheckboxExtender,873navigationcontrols,373NumericUpDownExtender,873ObjectDataSource,802–808Pageclass,148–150pageswithmultipleviews,354–355PagingBulletedListExtender,873PasswordRecovery,743–745PasswordStrengthExtender,873PopupControlExtender,873Rating,873recallingnamesofcontrols,109repeated-valuedatabinding,532ResizableControlExtender,873richcontrols,343ScriptManager,844–845ScriptManagerProxy,845securitycontrols,731–752servercontrols,124–136SiteMapPath,451–455SlideShowExtender,874SqlDataSource,549–550TabContainer,874Table,178–183TextBoxWatermark,874themes,407–415controltagsinskinfile,413–414handlingcontrol/themeconflicts,410–411third-partycontrols,368Timer,861–863TreeView,455–462,673–675UpdatePanel,845–857UpdateProgress,857–861usercontrols,369–382ASP.
NETfiletypedescribing,123creating,370–372independentusercontrols,372–374integratedusercontrols,375–377passinginformationwithevents,379–382usercontrolevents,377–379usingHTMLformelement,128validationcontrols,324–340viewstate,129visibilityof,168webcontrols,125,163–166WebControlclass,167–168Wizard,360–367WizardStep,361–364workingsofASP.
NETcontrols,63Xmlwebcontrol,669–670Controlscollection,182Controlsproperty,HtmlControlclass,147Controlsproperty,WebControlclass,167ControlStyleproperty,BoundFieldclass,570ControlStyleproperty,Wizardcontrol,366ControlToValidateproperty,BaseValidatorclass,324manualvalidation,331ConversionWizard,VisualStudiomigratingwebsites,90conversionstypeconversions,30–31ConvertEmptyStringToNullproperty,BoundFieldclass,570cookielessattribute,sessionStatetag,227cookielesssetting,227–230CookieParametercontroltag,555892INDEXcookies,219–221anonymousprofiles,773cookielessstatelimitations,229formsauthentication,685,687,695destroyingformsauthenticationcookie,698FormsCookieNameproperty,695FormsCookiePathproperty,695GetAuthCookiemethod,695HttpCookieclass,219HttpCookieModeenumeration,227IsCookielessproperty,223parametertypes,555persistence,219persistentcookies,697removing,220retrievingcookies,219security,219sessionstateusing,221sessiontracking,222SetAuthCookiemethod,695settingcookies,219statemanagementoptionscompared,237suitabilityofstoringinformationwith,622timeouts,687tracinginformation,274usersdisablingcookies,219usersrequiringsecuritycookies,688usingcookiestostoredata,220–221validationforsecuritycookie,687Cookiescollection,219coordinatesx/ycoordinates,384Copymethod,DataSetclass,826Copymethod,Fileclass,609CopyWebSitefeature,314–317CopyTomethod,FileInfoclass,615COUNTfunction,SQL,483Countproperty,HttpSessionStateclass,223countersprogram,202–203CreateAccessRuleslink,WAT,692CREATEEVENTNOTIFICATIONcommand,836Createmethod,DirectoryInfoclass,614,615Createmethod,FileInfoclass,614,615Createmethod,XmlReaderclass,664CreateAttributemethod,XmlDocumentclass,654CreateCommentmethod,XmlDocumentclass,654CreateDirectorymethod,Directoryclass,608CreatedUserevent,CreateUserWizardcontrol,738CreateElementmethod,XmlDocumentclass,654CreateEventSourcemethod,EventLogclass,260CreateRolemethod,Rolesclass,748CreateSubdirectorymethod,DirectoryInfoclass,614CreateTextmethod,Fileclass,621CreateUsermethod,Membershipclass,725,726CreateUserErrorevent,CreateUserWizardcontrol,738CreateUserIconUrlproperty,Logincontrol,737CreateUserTextproperty,Logincontrol,737CreateUserUrlproperty,Logincontrol,735,737CreateUserWizardcontrol,738–743addingcustomsteps,738–740ContinueDestinationPageUrlproperty,738convertingstepintotemplate,741,742description,732DisplaySidebarproperty,739events,738FindControlmethod,742FinishButtonClickevent,741LoginCreatedUserproperty,738membershipsecuritycontrols,738–743membershipwithSQLServer2005Express,715NextButtonClickevent,741propertytypes,738CreatingUserevent,CreateUserWizardcontrol,738893INDEXFinditfasterathttp://superindex.
apress.
comCreationTimeproperty,DirectoryInfoclass,614CreationTimeproperty,FileInfoclass,614credentialsASP.
NET,714authentication,684creditcardnumbersregularexpressionfor,335cross-pagepostbacks,209–214gettingmoreinformationfromsourcepage,211–214cross-platformsupport,CLR,15CSS(CascadingStyleSheets)seealsostylesheetsapplyingstylesheetrules,405–407creatingstylesheets,403–405inheritance,396introduction,394settingstyles,142styleattribute,142styles,393CSSclassnamesstylesheetrules,403CSSOutlinewindow,405CSSPropertieswindow,400–401creatingstyles,401formattingproperties,400styleinheritance,402CSSrules,403–404applyingstylesheetrules,405–407CSSclassname,403CSSOutlinewindow,405limitations,407selectors,405CssClasspropertyapplyingstylesheetrules,406,407CtrlChangedmethod,pagelifecycle,191CTypefunctioncross-pagepostbacks,211explicittypeconversions,30,31curlybraces{},regularexpressions,334currencyconverteraddingHTMLservercontrolcodeto,132–135addinglinkedimages,140–142addingmultiplecurrencies,138–139ASP.
NETprocessexplained,135–136convertingHTMLpagetoASP.
NET,126–128settingstyles,142–143storinginformationindrop-downlist,139–140Currencydatatype,572CurrencyConverter.
aspxfile,133CurrencyConverter.
aspx.
vbfile,134CurrentNodeproperty,SiteMapclass,448CurrentNodeStyleproperty,SiteMapPathcontrol,452CurrentNodeTemplateproperty,SiteMapPathcontrol,452–454curvesdrawingwithGraphicsclass,383fillingwithGraphicsclass,384customcookiesstatemanagementoptions,237customdatatypesautomaticsaves,769profilesandcustomdatatypes,766–770serialization,769customerrorpages,267–269IIScustomerrors,302targetingspecificHTTPerrors,268–269virtualdirectories,301–302customeventlogs,259–260customexceptionclasses,251–253constructors,252customloggingclass,261customtemplatesdefiningwithTemplateFieldclass,589customerformvalidatedwebforms,335–339customErrorselement,web.
configfile,156asynchronouspostbacks,850customProviderattribute,sessionStatetag,234CustomValidatorcontrolClientValidationFunctionproperty,338,339controlspecificproperties,325description,322894INDEXpropertiesofBaseValidatorclass,324server-sidevalidation,338ServerValidateevent,337validatedwebformexample,336ValidateEmptyTextproperty,339D\Dregularexpressioncharacter,334dataApp_Datadirectory,124modifyingdataindatabase,504–514dataaccessseeADO.
NETdataaccessdataadapterclassesdataadaptercommands,517Fillmethod,517properties,517selectingdisconnecteddata,517updatingdisconnecteddata,515databinding,525–564bindingmultipledatasourcecontrols,552bindingportionsofsitemaps,442–447showingsubtrees,443–446usingdifferentsitemapsinsamefile,447cachinginDataSet,825creatingfilebrowser,620creatinglistoffilesindirectory,612creatingrecordeditor,542–547datasourcecontrols,547–563determininguser'sbrowser,529GridViewcontrol,566,598guestbookfileaccessexample,626hierarchicalbinding,673–675howdatabindingworks,526–527HtmlControlclass,146multiplebinding,536nonhierarchicalbinding,671–673ObjectDataSourcecontrol,804,806,807othertypesofparameters,555–556pagelifecyclewith,549parameterizedcommands,553–558readingXMLusingXmlTextReader,648,649reasonsforusingdatasets,515repeated-valuedatabinding,526,532–547withADO.
NET,540–542richdatacontrols,565settingparametervaluesincode,556–558single-valuedatabinding,526–532SiteMapPathcontrol,453SqlDataSourceclass,549–550typesofASP.
NETdatabinding,526usingdata-accesscomponent,799XMLdatabinding,670–675datacaching,819–830applicationstatecompared,811cachinginDataSet,822–826GetDataSetmethod,824–825RetrieveDatamethod,823–824cachingtest,821–822cachingwithObjectDataSource,829–830cachingwithSqlDataSource,826–829datasourcecaching,811datasourcecontrolcaching,826–830insertingobjectsintocache,820–821datacontrolsDetailsViewcontrol,598–601FormViewcontrol,601–603GridViewcontrol,565–598datalayer,three-tierdesign,781Datanamespace,489datanamespaces,ADO.
NET,488–489dataobjectscomponent-basedprogramming,782Dataproperty,XmlDataSourceclass,675dataproviderclasses,489–490namingconventions,490dataproviderfactories,549defaultfactory,550dataproviders,486classderivationfor,487.
NETdataproviders,487SQLServerdataprovider,486third-partydevelopers,487translatingcodebetween,490datareaderclassesClosemethod,500dataretrievalusingADO.
NET,503895INDEXFinditfasterathttp://superindex.
apress.
comdirectdataaccess,491Readmethod,500,503usingwithcommandclasses,499–500dataretrievalCommandobjectrepresentingSELECTstatement,499usingADO.
NET,500–504fillingListBoxcontrol,501–503retrievingrecords,503–504usingdatareaderclasses,499–500usingdatasetclasses,514–522datasetsGetDataSetmethod,824–825RetrieveDatamethod,823–824datasourcecaching,811datasourcecontrols,547–563automaticsubmissionofparameterscollection,560bindingmultiplecontrols,552,554cachingproperties,826cachingwith,826–830connectionstrings,550handlingerrors,558–559howdatasourcecontrolswork,552–553indicatingparameters,553ObjectDataSource,802–808cachingwith,829–830othertypesofparameters,555–556pagelifecycle,549parameterizedcommands,553–558retrievinginformationaboutallprofiles,773selectingrecords,551settingparametervaluesincode,556–558sortingandselectingatsametime,586–587SqlDataSource,549–550cachingwith,826–829updates,549updatingrecords,559–563concurrencychecking,561–563DataSourceproperty,connectionstrings,493datatypeconversionsAutoCorrect,112datatypes.
NET,21,22,65–66object-basedmanipulationin,31profilesandcustomdatatypes,766–770referencetypes,63–66serialization,765statemanagementoptionscompared,237,238valuetypes,63–66variableprefixes,23VB2008,21–28data-accesscomponents,793–802advantagesforcomponent-basedprogramming,793aggregatefunctionsenhancement,801–802creatingdata-accesscomponent,793–797errorhandlingenhancement,800–801usingdata-accesscomponent,797–800DataAdapterclassdatabindingwithADO.
NET,540dataproviders,490databaseaccessoutputcaching,813databaseconnections,492–499connectionstrings,493DataReaderclass,499numberofconnections,492opening/closingconnections,497–499reasonsforusingdatasets,515SQLServerauthentication,494storingconnectionstrings,496Try.
.
.
Catch.
.
.
Finallyblocks,492userinstanceconnections,495–496verifyingconnections,497Windowsauthentication,494databasequerieswhichdatatocache,810databasesbrowsingandmodifyinginVisualStudio,475–477cancellingasynchronousrequeststo,861configuration,474–478connections,793connectionsandproblemsofstate,473896INDEXdatabaseaccesswithwebapplications,473–474databaseconcurrencyinwebapplications,473deploymentconfiguration,306encapsulation,793introduction,471isolationfromwebpage,782learningessentialdatabaseconcepts,473Microsoftsupportfor,474modifyingdataindatabase,504–514obtainingsampledatabases,474relationalmodel,471SQLbasics,478–486storedprocedures,793storingdatabasefiles,495DataBindmethodControlclass,526,533GridViewcontrol,566,825ListBoxcontrol,534Pageclass,526repeated-valuedatabindingwith,532single-valuedatabinding,527–529timingofcallingmethod,529XmlDataSourcecontrol,671DataBinderclassEvalmethod,577usingGridViewtemplates,590DataDirectoryvalue,App_Datafolder,495DataFieldproperty,BoundFieldclass,569DataFileproperty,XmlDataSourceclass,671DataFormatStringpropertyBoundFieldclass,569,572GridViewcontrol,571DataItempropertyGridViewcontrol,576GridViewRowcontrol,577DataKeyNamesproperty,GridViewcontrolcreatingmaster-detailspages,580"Mustdeclarethescalarvariable.
.
.
",582DataMemberproperty,ControlclassdatabindingwithADO.
NET,541repeated-valuedatabindingwithlistcontrols,533TreeViewcontrol,674DataReaderclasscachingwithSqlDataSource,828databindingwithADO.
NET,540dataproviders,490retrievingdata,499SqlDataSourcechoosing,552DataReadermode,DataSourceModeproperty,585DataRelationclassaddingobjectstoDataSet,520dataintegrityrestrictions,521definingrelationshipsindatasets,520–522DataRowclassGetChildRowsmethod,520GetParentRowsmethod,520Rowscollection,517DataSetclassaddingDataRelationobjectsto,520analogywithXmlDocument,651cachinginDataSet,822–826cachingwithSqlDataSource,828Copymethod,826creatingdata-accesscomponent,794databindingwithADO.
NET,540–542datacaching,811definingrelationshipsindatasets,520–522disconnecteddataaccess,514–522introduction,486reasonsforusingdatasets,515retrievingdata,499selectingdisconnecteddata,515–517multipletables,518–519SqlDataSourcechoosing,552updatingdisconnecteddata,515usingdata-accesscomponent,799,800XMLand.
NET,636DataSetmode,DataSourceModeproperty,585DataSourcepropertyGridViewcontrol,566repeated-valuedatabindingwithlistcontrols,533897INDEXFinditfasterathttp://superindex.
apress.
comDataSourceIDpropertybindingpagestositemaps,439GridViewcontrol,567ListBoxcontrol,552Menucontrol,462DataSourceModeproperty,SqlDataSourcecontrolcachingwithSqlDataSource,828sortingwithSqlDataSource,585DataTableclasscachinginDataSet,825databindingwithADO.
NET,541DataViewcontroland,584DataTextFieldproperty,listcontrols,541DataValueFieldproperty,listcontrols,539–540DataViewcontrol,584datedatatypes,formatstrings,573DatepropertyCalendarDayclass,347DateTimeclass,34dateshighlightingimportantdatewithCalendarcontrol,347restrictingdatesinCalendarcontrol,346–350SQLstatements,482DateTimedatatype/class,33–35arithmeticoperators,34natureandbehaviorofdatatypes,66.
NET,22profileserialization,763propertiesandmethods,34Dayproperty,DateTimeclass,34DayHeaderStyleproperty,Calendarcontrol,345DayNameFormatproperty,Calendarcontrol,349DayOfWeekproperty,DateTimeclass,35DayRenderevent,Calendarcontrol,347,350Daysproperty,TimeSpanclass,35DaysInMonthmethod,DateTimeclass,35DayStyleproperty,Calendarcontrol,345DBUtilclassAddItemmethod,806,807creatingdata-accesscomponent,794,796GetCategoriesmethod,803,807GetItemsmethod,804,807usingwithObjectDataSource,803debugattribute,compilationtag,304Debugwindow,VisualStudio,40debuggingcomponent-basedprogramming,780disablingcachingwhiletesting,813pagetracing,269–280debugging,VisualStudio,16,112–118,270benefits,82breakpoints,114commandsinbreakmode,116componentsusingVisualStudio,800customizingbreakpoints,117debugginglargewebsite,116runningwebapplicationforfirsttime,128singlestepdebugging,114–116variablewatchwindows,117–118VisualStudiowebserver,113–114Decimaldatatype,22formatstring,572literaldecimalvalues,56natureandbehaviorof,66declarativeeventhandling,59–61deeplanguageintegration,15defaultbutton,webcontrols,173defaultcontent,424–425defaultpage,setting,300–301defaultthemes,410Default.
aspxfile,61,63creatingwebsiteswithVisualStudio,85rootorcurrentfolder,436DefaultButtonpropertyHtmlFormclass,173Panelcontrol,173DefaultError.
aspxwebpage,267DefaultFocusproperty,formelement,173DefaultModeproperty,DetailsViewclass,806898INDEXdefaultProviderattribute,membershipelement,720defaultValueattribute,addtag,761delegates,45–46addingeventsto.
NETclasses,59delegatevariables,45,46events,46.
NETtypes,66signatures,45Deletemethod,Directoryclass,608Deletemethod,DirectoryInfoclass,614Deletemethod,Fileclass,609Deletemethod,FileInfoclass,614DELETEstatement,SQL,486commandobjectrepresenting,505,513–514DeleteCommandpropertydataadapterclasses,517SqlDataSourcecontrol,551,559,560,583DeleteCommandTypeproperty,SqlDataSourcecontrol,551Deleted/Deletingeventspagelifecycle,549SqlDataSourcecontrol,558,559DeleteInactiveProfilesmethod,ProfileManagerclass,771DeleteMethodproperty,ObjectDataSourcecontrol,804DeleteProfile/DeleteProfilesmethodsProfileManagerclass,771DeleteRolemethod,Rolesclass,748DeleteUsermethod,Membershipclass,726denial-of-serviceattack,634denyrule,web.
configfileformsauthentication,690Windowsauthentication,700dependenciesCacheclasssupportfor,820cachedependencies,830–840SQLServer2000,832–836SQLServer2005/2008,836–840cacheitemdependencies,831filedependencies,830–831dependenciesparameterInsertmethod,Cacheclass,820deploymentdatabaseconfiguration,306deployingASP.
NETwebsite,304–311additionalconfigurationsteps,305–306ASPNET/networkserviceaccounts,307–308codecompilation,306–307usingcustomcomponents,305deployingASP.
NETwebsitewithVisualStudio,311–318copyingwebsitetoremotewebserver,314–317creatingvirtualdirectoryfornewproject,312–314publishingwebsite,317–318IISsecuritysettings,306machine.
configfile,306projectlessdevelopment,85seamlessdeploymentmodel,124Windowsaccountpermissions,306XCopydeployment,305descriptionattribute,addtag,721DescriptionboxNewStyledialogbox,398deserializationcustomdatatypes,769designview,91addingeventhandlers,106addingHTML,96addingwebcontrols,92configuringwebcontrols,94switchingtocodeview,105design,three-tier,780–782DestinationPageUrlproperty,Logincontrol,734,737DetailsViewcontrol,598–601AllowPagingproperty,598AutoGenerateDeleteButtonproperty,560AutoGenerateEditButtonproperty,560AutoGenerateInsertButtonproperty,560AutoGenerateRowsproperty,554,599,600bindingto,556briefdescription,565creatingbuttons,600899INDEXFinditfasterathttp://superindex.
apress.
comDefaultModeproperty,806definingfields,599–601DetailsViewwithpaging,599editingwith,561howtouse,554–555PagerSettingsproperty,599PagerStyleproperty,599repeated-valuedatabinding,533representingfields,600ShowHeaderproperty,600usingwithObjectDataSource,805,807DHTMLASP.
NETprocessexplained,136EnableClientScriptproperty,324dictionarycollectionsrepeated-valuedatabindingwith,537–539Digestmode,Windowsauthentication,702digitalcertificates,SSL,711digitsregularexpressioncharacters,334directdataaccess,ADO.
NET,491–514directivesControldirective,370Masterdirective,419OutputCachedirective,812Pagedirective,97PreviousPageTypedirective,211Registerdirective,371Srcdirective,371directoriesseealsofilesystem;virtualdirectoriesapplicationdirectories,123–124authorizationrulesforaccessing,689configurationinheritance,156,157creatingfilebrowser,616–620retrievinginformationabout,606reviewingdirectorycontents,609Directoryclass,608–613DirectoryInfoclasscompared,613GetFilesmethod,612methods,608retrievinginformationaboutdirectories,606Directoryproperty,FileInfoclass,615DirectoryInfoclass,613–615creatinginstanceof,615Directoryclasscompared,613GetDirectoriesmethod,616,620GetFilesmethod,616,620,630methods,614Nameproperty,620properties,614retrievinginformationaboutdirectories,606DirectoryNameproperty,FileInfoclass,615disabledaccountsmembershipdatastore,731Disabledproperty,HtmlControlclass,147DisappearAfterproperty,Menucontrol,465disconnecteddataaccess,ADO.
NET,514–522definingrelationshipsindatasets,520–522selectingdisconnecteddata,515–517multipletables,518–519updatingdisconnecteddata,515Displayproperty,BaseValidatorclass,324,327DisplayModepropertyBulletedListcontrol,177ValidationSummarycontrol,328DisplayRememberMeproperty,Logincontrol,737DisplaySideBarpropertyCreateUserWizardcontrol,739Wizardcontrol,360Disposemethodconnectionsclass,498Graphicsclass,385Disposemethod,connectionclasses,498DISTINCTkeyword,SQL,483divelement,102,105addingastyletoadiv,396applyingstylesheetrules,407currencyconverterexample,133greetingcardgeneratorexample,191groupingtextandcontrols,192900INDEXinsertingformattedtextintowebpage,132relatedwebcontrolclasses,165usingstyleddivision,400DivideByZeroExceptionclassoverlappingexceptionhandlers,248throwingexceptions,250DivideNumbersmethodnestedexceptionhandlers,246throwingexceptions,250divisionoperator,28dllassembliescreatingcomponents,784creatingdata-accesscomponent,794dllextension,70DLLfilesaddingreferencestocomponents,787Bindirectory,124DNS(DomainNameService),286DNSregistry,286,287Do.
.
.
Loopblock,39,41–42ContinueDostatement,42ExitDostatement,42doctypescomponentsandstructureofwebform,97–99configuringleveloferrorchecking,111creatingframespages,99default,98doctypesusedinthisbook,99HTMLstandard,99omissionofdoctypesinthisbook,138XHTML1.
0transitional,98,99XHTML1.
1standard,99XHTMLstrict,98documentdirectorysolutionfiles,87DOCUMENTobject,95Documentproperty,Xmlwebcontrol,669DocumentContentproperty,Xmlwebcontrol,669DocumentSourceproperty,Xmlwebcontrol,669domainnames,286doPostBackfunction,187,188Doubledatatype,22literaldecimalvalues,56natureandbehaviorof,66DragPanelExtendercontrol,Ajax,873drawingseealsodynamicgraphicsantialiasing,390basicstepsusingGDI+,382–385customimages,385–386indicatingpixelcoordinates,384measuringpixels,384methodsofGraphicsclass,383optimizingcodeforappearanceorspeed,390specifyingBrushorPenobject,384xandycoordinates,384DrawXyzmethods,Graphicsclass,383,386DriveFormatproperty,DriveInfoclass,616DriveInfoclass,615–616retrievinginformationaboutdrives,606DriveTypeproperty,DriveInfoclass,616drop-downlistselementrepresentinginHTML,138storinginformationindrop-downlist,139–140DropDownListcontrolseealsolistcontrolseventsandpostbacks,185listcontrolscompared,174repeated-valuedatabinding,533selecttagunderlying,165selectingrecordswithSqlDataSource,552underlyingHTMLelement,165Durationattribute,OutputCachedirective,813dynamicgraphics,382–391seealsoGDI+antialiasing,390basicdrawing,382–385creatinggraphicscontextforimages,383drawingcustomimages,385–386drawingmethodsofGraphicsclass,383imageformatsandquality,388–391901INDEXFinditfasterathttp://superindex.
apress.
comindicatingpixelcoordinates,384measuringpixels,384optimizingdrawingcodeforappearanceorspeed,390placingcustomimagesinwebpages,387–388releasingresources,385specifyingBrushorPenobject,384xandycoordinates,384dynamicpages,outputcaching,815dynamicstyles,Menucontrol,464DynamicHoverStyleproperty,Menucontrol,464DynamicItemTemplateproperty,Menucontrol,465DynamicMenuItemStyleproperty,Menucontrol,464DynamicMenuStyleproperty,Menucontrol,464DynamicPopulateExtendercontrol,Ajax,873DynamicSelectedStyleproperty,Menucontrol,464Eeparameter,eventhandlers,134,145e-commercewebsitessecurityrequirements,679usesofdatabasewithASP.
NET,472e-mailpreventingmessagefrombeingsent,745regularexpressionfore-mailaddress,334retrievingmessagecontent,745EditIndexproperty,GridViewcontrol,594editingwithGridViewtemplate,594–598editingwithvalidation,595–597editingwithoutcommandcolumn,597–598EditItemTemplatemode,TemplateFieldtemplates,591,592EditRowStyle,GridViewcontrol,574elementsHTMLdocument,4tagsand,100webcontroltags,165–166elements,HTMLseeHTMLelementselements,XHTML,100–103elements,XMLseeXMLelementsellipsedrawingwithGraphicsclass,383fillingwithGraphicsclass,384emphasiselement,101emptyelement,435,639EmptyDataRowStyle,GridViewcontrol,574EmptyDataTemplate,GridViewcontrol,592EmptyDataTemplateclass,592EnableCachingpropertydatasourcecontrolcaching,826SqlDataSourceclass,552EnableClientScriptpropertyBaseValidatorclass,324,329RangeValidatorcontrol,326enabledattributeapplication-leveltracing,280EnabledpropertyBaseValidatorclass,324Timercontrol,863WebControlclass,168enablePasswordResetattribute,addtag,722enablePasswordRetrievalattribute,addtag,722EnableThemingproperty,controls,411EnableViewStatepropertyHtmlControlclass,147Labelcontrol,325Pageclass,149webcontrols,202WebControlclass,168enableViewStateMacattribute,pageselement,204encapsulation,779component-basedprogramming,782data-accesscomponents,793encoding,HTML,151–152encryptionconfiguringmembershipprovider,721formsauthentication,695querystringstransferringinformationinURLs,215SSL,710,711902INDEXviewstatedata,203enablingviewstateencryption,204hashcode,204EndElementnodereadingXML,649EndRequestevent,Applicationclass,153EndsWithmethod,Stringclass,33EnumclassGetNamesmethod,196enumerations,26–28briefdescription,375ErrorCodeenumeration,27.
NETtypes,66UserTypeenumeration,27webcontrolclasses,169equaltooperator(==),37equalitytestingIskeyword,64referencetypes,64Stringclass,66valuetypes,64errorchecking,VisualStudiobenefits,82errordetectioncheckingforpotentialerrorconditions,244testingspecificerrorconditions,118VisualStudio,16errorhandlingseealsoerrors;exceptionhandlingcreatingfilebrowser,620creatinglistoffilesindirectory,613data-accesscomponentenhancement,800–801guestbookfileaccessexample,630partialrefreshesusingAjax,849–851testingdatabaseconnections,497ErrorListwindow,VisualStudio,111errormodes,266–267errorpages,264–269ASP.
NETbehavior,267customerrorpages,267–269,301–302exceptionhandlingand,241.
NETprocessonoccurrenceoferror,240,241targetingspecificHTTPerrors,268–269errorunderlining,VisualStudio,110–111ErrorCodeenumeration,27ErrorMessageproperty,BaseValidatorclass,324,330errorsseealsoerrorhandling;exceptions404NotFounderror,436Application_Errorevent,154CLRand,15commonerrors,239–241customexceptionclasses,251–253narrowingconversions,30.
NETprocessonoccurrenceof,240pagetracing,269–280reportingduringdebugging,249specifyingspecialerrorsettings,156structurederrorhandling,20throwingexceptionswithoutdetails,801EvalmethodDataBinderclass,577,590SiteMapPathcontrol,453eventbubbling,593eventhandlersaddingeventsto.
NETclasses,59–61addingindesignview,106addinginPropertieswindow,106code-behindclass,134creatingdifferenteventhandler,154creatingforHTMLservercontrols,134creating/attachingeventhandlers,107declarativeeventhandling,59–61eparameter,145greetingcardgeneratorexample,198pagedirective,127parameters,134,145ToStringmethod,135writingcodeinVisualStudio,106–108eventhandlingAdRotatorcontrol,353cachingmultipleversionsofwebpage,816currencyconverter,135handlingeventsinGridViewtemplate,593pagelifecycle,191903INDEXFinditfasterathttp://superindex.
apress.
comredirectingusertonewwebpage,150ServerClickevent,HtmlInputButton,132TableTestclass,181validatedwebformexample,337validatingXMLdocumentagainstschema,665VisualStudio,134Eventkeyword,58eventlogscustomloggingclass,261customlogs,259–260defaultlogsize,256increasinglogsize,257potentialproblemswith,256retrievingloginformation,262–264security,259viewingWindowseventlogs,254–257whentouse,256,262writingto,257eventtrackerapplicationwatchingeventsinpagelifecycle,188–191EventViewertoolcustomeventlogs,260viewingWindowseventlogs,254writingtoeventlogs,258EventArgsclass/objecteparameter,eventhandlers,145passinginformationwithevents,379,380usercontrolevents,377event-drivenprogrammingmodel,58EventHandlerdelegate,378EventLogclass,259,262eventsaddingeventsto.
NETclasses,58–61applicationevents,152–154AutoPostBackproperty,185capturingchangeeventimmediately,185delegates,46HTMLservercontrols,125,144HtmlInputImagecontrol,145–146introductiontoclasses,50.
NETFramework,377orderofeventsinpageprocessing,183,184Page.
Loadevent,139passinginformationwithevents,379,382postbackevents,187,188RaiseEventcommand,378servercodereactingimmediatelytoevents,183ServerChangeevent,144ServerClickevent,144usercontrolevents,377,379watchingeventsinpagelifecycle,188–191webcontrols,185,191automaticpostbacks,183–188webforms,132XmlDocumentclass,657exceptionchains,243Exceptionclass,242–243catchingexceptionsinheritedfrom,245errortypes,242inheritancefrom,242InnerExceptionproperty,243propertiesandmethods,242exceptionclassescustomexceptionclasses,251–253exceptionhandling,241–249seealsoerrorhandling;exceptionscatchingspecificexceptions,245–246determiningwhichexceptionstocatch,246errorpagesand,241exceptionchains,243Exceptionclass,242–243nestedexceptionhandlers,246–248noactiveexceptionhandlerexists,248overlappingexceptionhandlers,247partialrefreshesusingAjax,850structuredexceptionhandling,241,249testingoccurrenceofexceptions,248–249Try.
.
.
Catch.
.
.
Finallyblocks,244–245whentouseexceptionhandlers,249exceptionobjectsInnerExceptionproperty,241throwingexceptions,250writingtraceinformation,278904INDEXExceptionpropertySqlDataSourceStatusEventArgsclass,559exceptiontypes,241ExceptionHandledpropertySqlDataSourceStatusEventArgsclass,559exceptionsseealsoerrors;exceptionhandlingloggingexceptions,254–264customloggingclass,261customlogs,259–260eventlogsecurity,259retrievingloginformation,262–264viewingWindowseventlogs,254–257writingtoeventlogs,257"Mustdeclarethescalarvariable.
.
.
",582nullreferenceexception,239testingoccurrenceofexceptions,248–249throwingexceptions,250–253throwingexceptionswithoutdetails,801Exceptionsdialogbox,242exeextension,assemblyfiles,70ExecuteNonQuerymethod,commandclasses,505,513ExecuteReadermethod,commandclasses,500Existsmethod,Directoryclass,608Existsmethod,Fileclass,609Existsproperty,DirectoryInfoclass,614Existsproperty,FileInfoclass,614ExitDostatement,Do.
.
.
Loopblock,42ExitForstatement,For.
.
.
Nextblock,42ExpandDepthproperty,TreeViewcontrol,457ExpandImageUrlproperty,TreeViewcontrol,458explicittypeconversions,30Exponentialdatatype,572ExpressEditionseeSQLServer2005Expressextensibility,82Extensionproperty,DirectoryInfoclass,614Extensionproperty,FileInfoclass,614externalstylesheets,394FFadeTransitionsproperty,Accordioncontrol,866FailureTextproperty,Logincontrol,734,736FailureTextStyleproperty,Logincontrol,735FeaturesView,IISManager,296Fieldsdialogbox,571fields,declaring,52fileaccesscookies,622simplestleveloffileaccess,606usingfileswithwebapplications,606webapplications,605FileandDirectoryclasses,607,608filebrowser,creating,616–620Fileclass,608–613Closemethod,622CreateTextmethod,621FileInfoclasscompared,613GetAttributesmethod,612methods,609,624Openmethod,622,623OpenReadmethod,623OpenTextmethod,622OpenWritemethod,623quickaccessmethods,624–625retrievingfile/directoryinformation,606filedependencies,830–831filemappings,registering,293–294filepermissionsaccessingfileswithout,613filesystem,606–620creatingfilebrowser,616–620Directoryclass,608–613DirectoryInfoclass,613–615DriveInfoclass,615–616Fileclass,608–613FileInfoclass,613–615.
NETclassesretrievinginformationabout,606Pathclass,607–608retrievinginformationaboutfilesanddirectories,606905INDEXFinditfasterathttp://superindex.
apress.
comFileSystemoptioncopyingwebsitetoremotewebserver,315filetype,inputelement,131filetypesASP.
NET,122–123restrictedfiletypes,684fileuploadsallowingfileuploads,631–634denial-of-serviceattack,634maximumsizeof,634FileAttributesenumeration,612FileInfoclass,613–615creatingafilelist,613creatinginstanceof,615creatinglistoffilesindirectory,613Fileclasscompared,613methods,614,615Nameproperty,620properties,614,615retrievingfile/directoryinformation,606FileNameproperty,PostedFileclass,633FileNotFoundExceptionclass,243filesallowingfileuploads,631–634authorizationrulesforaccessing,689–690creatingfilebrowser,616–620creatinglistoffiles,610limitationsusingwithwebapplications,605readingandwritingwithstreams,620–631binaryfiles,623–624guestbookexample,625–631quickfileaccessmethods,624–625textfiles,620–622retrievingfilesize,609retrievinginformationabout,606FileStreamclass,385FileSystemInfobaseclass,614FileUploadcontrol,631Fillmethod,dataadapterclasses,517FillXyzmethods,Graphicsclass,384,386FilteredTextBoxExtendercontrol,Ajax,873filtering,828,829FinallyblockseeTry.
.
.
Catch.
.
.
FinallyblocksFindControlmethodCreateUserWizardcontrol,742Pageclass,331FindInactiveProfilesByUserNamemethod,ProfileManagerclass,772FindProfilesByUserNamemethod,ProfileManagerclass,772FindSiteMapNodemethod,SiteMapProviderclass,448FindUsersByEmailmethod,Membershipclass,726FindUsersByNamemethod,Membershipclass,726FindUsersInRolemethod,Rolesclass,749FinishButtonClickeventCreateUserWizardcontrol,741Wizardcontrol,365FinishCompleteButtonStyleproperty,Wizardcontrol,366FinishPreviousButtonStyleproperty,Wizardcontrol,366FirstBulletNumberproperty,BulletedListcontrol,177FirstChildproperty,XmlNodeclass,656FirstDayOfWeekproperty,Calendarcontrol,349FirstNameproperty,Profileclass,762FixedDecimaldatatype,572flatfilesreadingandwritingwithstreams,620–631binaryfiles,623–624quickfileaccessmethods,624–625textfiles,620–622Flushmethod,StreamWriterclass,621Focusmethod,webcontrolclasses,172–173Fontcategorystylesettings,NewStyledialogbox,397Fontpropertyconfiguringwebcontrols,95webcontrolclasses,170–172WebControlclass,168FontFamilyclass,196FontInfoclass,170–172906INDEXfontsdrawingcustomimages,386greetingcardgeneratorexample,196usingNamesproperty,171FontUnittype,171Footerclass,375–377footerusercontrolsindependentusercontrols,372integratedusercontrols,375–377footersreusingfootersinwebpages,371FooterStylepropertyBoundFieldclass,570GridViewcontrol,574FooterTemplatemode,TemplateFieldtemplates,591FooterTextproperty,BoundFieldclass,569For.
.
.
Nextblock,39–40ContinueForstatement,42ExitForstatement,42ForEachblock,39–41ForloopseeFor.
.
.
NextblockForeColorpropertyBaseValidatorclass,324configuringwebcontrols,94TextBoxcontrol,165ValidationSummarycontrol,328WebControlclass,167foreignkeys,520FormclassIsValidproperty,327,330formcollection,275formelement,5,103,104ASP.
NETcontrolsusing,128currencyconverterexample,133DefaultFocusproperty,173enclosingelementsin,126HTMLservercontrolclassfor,130formatstrings,572,573formattinginXHTML,103–104formattingpropertiesCSSPropertieswindow,400styles,395FormParametercontroltag,555formscookiesecurity,221parametertypes,555validatedwebforms,335–339formsauthentication,685–699accesscontrolrules,687authenticationtag,web.
configfile,687authorizationrules,687–691accessforspecificusers,690–691accessingspecificdirectories,689accessingspecificfiles,689–690identities,698implementing,685loginpage,694–699retrievinguseridentity,697signingout,698membership,713membershipdatastore,714–731profiles,757restrictinganonymoususeraccess,687settingupusingtheWAT,691–694settingupwebsitetouse,714web.
configsettings,686formsauthenticationcookiedestroying,698propertiesrelatingto,695,697formstag,686,714FormsAuthenticationclass,694–696FormsCookieNameproperty,FormsAuthenticationclass,695FormsCookiePathproperty,FormsAuthenticationclass,695FormsIdentityclassidentityobjects,698Ticketproperty,698FormsViewclassusingwithObjectDataSource,805FormViewcontrol,601–603AllowPagingproperty,602briefdescription,565introduction,598repeated-valuedatabinding,533fragmentcaching,818cachinggenericportionofpage,813description,811907INDEXFinditfasterathttp://superindex.
apress.
comframetargets,AdRotatorclass,352framesmasterpagescompared,415framespagesdoctypescreating,99FramesPerSecondproperty,Accordioncontrol,869Friendkeyword,52friendlyURLs,450FROMclause,SQL,481FromImagemethod,Graphicsclass,383FromXyzmethods,TimeSpanclass,35FTPdirectoryreviewingdirectorycontents,609FTPSiteoptioncopyingwebsitetoremotewebserver,316FullNameproperty,DirectoryInfoclass,614FullNameproperty,FileInfoclass,614fullyqualifiedclassnames,68Functionkeyword,42functionsdeclaring,42methodsusing,797GGAC(GlobalAssemblyCache),305garbagecollection,53Garbage.
jpgfile,61GDI+seealsodynamicgraphicsbasicstepsforusing,382creatinggraphicscontextforimages,383drawingcustomimages,385drawingmethodsofGraphicsclass,383introduction,382optimizingdrawingcodeforappearanceorspeed,390Generaldatatype,573GeneratePasswordmethod,Membershipclass,727genericcollections,535Genericnamespace,System.
Collections,78generics,77–78GeoTrustcertificateauthority,708getaccessoraddingpropertiesto.
NETclasses,54,56GetAllInactiveProfilesmethod,ProfileManagerclass,772GetAllProfilesmethod,ProfileManagerclass,772GetAllRolesmethod,Rolesclass,749GetAllUsersmethod,Membershipclass,726,729GetAttributemethod,XmlElementclass,654,657GetAttributesmethod,Fileclass,609,612GetAuthCookiemethod,FormsAuthenticationclass,695GetBaseExceptionmethod,Exceptionclass,242GetCategoriesmethod,DBUtilclass,794,803,804,807GetChildRowsmethod,DataRowclass,520GetCreationTimemethod,Directoryclass,608GetCreationTimemethod,Fileclass,609GetCurrentDirectorymethod,Directoryclass,609GetDataSetmethod,824–825GetDescriptionFromTitlemethod,466GetDirectoriesmethodDirectoryclass,608DirectoryInfoclass,615,616,620GetDirectoryNamemethod,Pathclass,607GetDrivesmethod,DriveInfoclass,616GetElementByIdmethod,XmlDocumentclass,658GetElementsByTagNamemethod,XmlDocumentclass,658GetFileNamemethod,Pathclass,607,633GetFileNameWithoutExtensionmethod,Pathclass,607GetFilesmethodDirectoryclass,608,612DirectoryInfoclass,615,616,620,630GetFullPathmethod,Pathclass,607GetHierarchcialViewmethod,XmlDataSourceclass,673GetHtmlmethod,56908INDEXGetInfomethod,789GetItemsmethod,DBUtilclass,794,797,804,805,807GetLastAccessTimemethod,Directoryclass,608GetLastAccessTimemethod,Fileclass,609GetLastWriteTimemethod,Directoryclass,608GetLastWriteTimemethod,Fileclass,609GetLengthmethod,Arrayclass,36GetLogicalDrivesmethod,Directoryclass,608GetLowerBoundmethod,Arrayclass,36GetNamesmethod,Enumclass,196GetNameswebmethodAutoCompleteExtendercontrolusing,870GetNumberOfInactiveProfilesmethod,ProfileManagerclass,771GetNumberOfProfilesmethod,ProfileManagerclass,771GetNumberOfUsersOnlinemethod,Membershipclass,727GetParentmethod,Directoryclass,608GetParentRowsmethod,DataRowclass,520GetPasswordmethod,MembershipUserclass,727GetPathRootmethod,Pathclass,608GetProfilemethod,Profileclass,770,774GetPropertyValuemethod,ProfileBaseclass,761GetRedirectUrlmethod,FormsAuthenticationclass,695GetRolesForUsermethod,Rolesclass,749GetUpperBoundmethod,Arrayclass,36GetUsermethod,Membershipclass,726,727GetUserNameByEmailmethod,Membershipclass,726GetUsersInRolemethod,Rolesclass,749GetVaryByCustomStringfunction,818GIFimageformat,388globalapplicationevents,153globalapplicationfile,123globalresourcesApp_GlobalResourcesdirectory,124globalthemes,409Global.
asaxapplicationfile,817Global.
asaxeventhandler,235Global.
asaxfile,123,153GlobalSigncertificateauthority,708graphicsdynamicgraphics,382–391basicdrawing,382–385drawingcustomimages,385–386imageformatsandquality,388–391placingcustomimagesinwebpages,387–388embeddingdynamicgraphics,387Graphicsclasscreatinggraphicscontextforimages,383Disposemethod,385drawingmethodsof,383DrawXyzmethods,383,386FillXyzmethods,384,386FromImagemethod,383indicatingpixelcoordinates,384measuringpixels,384SmoothingModeproperty,390TextRenderingHintproperty,391greaterthanoperator(>),37,482greetingcardgeneratorexample,191–200gridlayoutfeature,VisualStudio,93GridLinesproperty,GridViewcontrol,572GridViewcontrol,565–598AutoFormatfeature,627AutoGenerateColumnsproperty,570,772automaticcolumngeneration,566–567automaticpagingfeature,587BoundFieldcolumntype,568columntypes,568configuringcolumns,569–570creatingscrollableGridView,572DataBindmethod,825DataFormatStringproperty,571DataItemproperty,576DataKeyNamesproperty,582DataSourceIDproperty,567definingcolumns,567–571displayingfulllistofusersinwebpage,772909INDEXFinditfasterathttp://superindex.
apress.
comEditIndexproperty,594editingwithGridView,582–584EmptyDataTemplateproperty,592formatstrings,572formattingGridView,571–577configuringstyleswithVisualStudio,575–576formattingfields,572–573usingstyles,573–576formattingproperties,572formattingspecificvalues,576–577generatingcolumnswithVisualStudio,570–571guestbookfileaccessexample,625–627linkingtoObjectDataSource,804,805nonhierarchicalbinding,671PagerTemplateproperty,592paging,587–589repeated-valuedatabinding,533RowCommandevent,593RowDataBoundevent,576selectingGridViewrow,578–581addingselectbutton,578creatingmaster-detailspages,580–581usingdatafieldasselectbutton,579Sortedevent,586sortingandselectingatsametime,586–587sortingGridView,584–587styles,573templates,589–598addingcontrolstotemplates,593editinginVisualStudio,592editingwithGridViewtemplate,594–598editingwithvalidation,595–597editingwithoutcommandcolumn,597–598handlingeventsinGridViewtemplate,593multipletemplates,591–592usingdata-accesscomponent,799,800GridViewRowcontrolCellscollection,576DataItemproperty,577GridViewRowEventArgsclass,577groupsprofilegroups,765guestbookexamplereadingandwritingwithstreams,625–631Guestrole,701H,,.
.
.
elements,101,102Handlesclausedeclarativeeventhandling,60Handleskeyword,106,107,134handlingerrorsdatasourcecontrols,558–559handlingexceptionsseeexceptionhandlingHasExtensionmethod,Pathclass,608hashcodeencryptionofviewstatedata,204hashingpasswordsconfiguringmembershipprovider,721HashPasswordForStoringInConfigFilemethodFormsAuthenticationclass,695Hashtablecollection,535,538headelement,HTML,4,104ContentPlaceHoldercontrol,416HTMLservercontrolclassfor,131runat="server"attribute,104HeaderImageUrlproperty,BoundFieldclass,569headersmasterpages,416reusingheadersinwebpages,371VaryByHeaderattribute,818headerscollection,275HeaderStylepropertyBoundFieldclass,570GridViewcontrol,573Wizardcontrol,366HeaderTemplatemode,TemplateFieldtemplates,591HeaderTextpropertyBoundFieldclass,569ValidationSummarycontrol,328910INDEXheading(,,.
.
.
)elements,102Heightproperty,WebControlclass,168Helpindexdeterminingwhichexceptionstocatch,246HelpLinkproperty,Exceptionclass,242HelpPageIconUrlproperty,Logincontrol,737HelpPageTextproperty,Logincontrol,737HelpPageUrlproperty,Logincontrol,737hiddentype,inputelement,129,131hierarchicalbinding,673–675horizontallayoutMenu/TreeViewcontrolscompared,463horizontallineelement,102HorizontalPaddingproperty,TreeNodeStyleclass,459hostingservices,304Hourproperty,DateTimeclass,34Hoursproperty,TimeSpanclass,35HoverMenuExtendercontrol,Ajax,873HoverNodeStyleproperty,TreeViewcontrol,460hrelement,102hrefattribute,aelement,103HRefproperty,HtmlAnchorclass,144HTMLaddinginVisualStudio,96attributes,103convertingHTMLpagetoASP.
NETpage,126–128evolutionofwebdevelopment,3–6referencestoHTMLinthisbook,99reusingwebpagemarkup,369specialcharacters,151tutorialresources,4XHTMLand,98HTMLcontrolsseeHTMLservercontrolsHTMLdocument,4webformmarkup,96–97htmlelement,104HTMLelements,100–103applyingstylesheetrules,403,406,407comparedtoXMLelements,638inputtag,164objectinterface,125ScriptManagercontrol,844selecttag,165servercontrolclasses,129–132transformingintoservercontrols,128HTMLencodingtextcontainingspecialcharacters,151–152HTMLforms,5evolutionofwebdevelopment,3–6HTMLservercontrolclasses,129–132properties,132HTMLservercontrols,125addingcodetocurrencyconverter,132–135convertingHTMLpagetoASP.
NETpage,126–128creatingeventhandlersfor,134defaultbuttons,173EventArgsobject,145events,144inheritance,143InnerTextproperty,151postbacks,183representingHTMLinputcontrols,127runat="server"attribute,128ServerChangeevent,controlsproviding,145ServerClickevent,controlsproviding,145Stylecollection,142,143transformingHTMLelementsinto,128webcontrolscompared,163HTMLtables,426,428HTMLtagsseeHTMLelementsHtmlAnchorclass,144description,130HRefproperty,144properties,132ServerClickevent,144HtmlButtonclass,130HtmlContainerControlclass,148HtmlControlclass,146–147inheritancefrom,143,146911INDEXFinditfasterathttp://superindex.
apress.
comHtmlDecodemethod,HttpServerUtilityclass,152HtmlEncodemethod,HttpServerUtilityclass,151,152HtmlEncodeproperty,BoundFieldclass,570HtmlFormclass,130,133DefaultButtonproperty,173HtmlGenericControlclass,131,132,133HtmlHeadclass,131HtmlImageclass,130,132,143,426HtmlInputButtonclass,130,132,133HtmlInputCheckBoxclass,130,132HtmlInputControlclass,148HtmlInputFileclass,131HtmlInputHiddenclass,131HtmlInputImageclass,131,132,145–146HtmlInputPasswordclass,131HtmlInputRadioButtonclass,130,132HtmlInputResetclass,130HtmlInputSubmitclass,130HtmlInputTextclass,131,132,133HtmlSelectclass,131,132,139repeated-valuedatabinding,533HtmlTableclass,130HtmlTableCellclass,130HtmlTableRowclass,130HtmlTextAreaclass,131,132HtmlTitleclass,131HTTPcookie,687HTTPerrors,267,268–269HTTPheaders,275,818HttpApplicationStateclass,235HttpCookieclass,219HttpCookieModeenumeration,227HttpForbiddenHandlerclass,684HttpRequestclass,149HttpResponseclass,149,150HttpServerUtilityclassHtmlDecodemethod,152HtmlEncodemethod,151,152Serverproperty,Pageclass,149Transfermethod,150URLencoding,218UrlDecodemethod,152UrlEncodemethod,152HttpSessionStateclass,222,223HyperLinkcontrol,177independentusercontrols,372querystringstransferringinformationinURLs,215underlyingHTMLelement,164usercontrolevents,378HyperLinkFieldclass,568hyperlinks,150HyperLinkStyleproperty,Logincontrol,735Iielement,101,103IButtonControlinterface,173PostBackUrlproperty,209iconsdrawingwithGraphicsclass,383IDattribute,inputelement,128IDataSourceinterface,datasourcecontrols,547identities,formsauthentication,698identityobjects,698Identityproperty,Userclass,698formsauthentication,697Windowsauthenticationtest,705IEnumerableinterface,533If.
.
.
EndIfblocks,38IIS(InternetInformationServices),288–295accessingconfigfilesviaIIS,159ASP.
NETsecuritymodel,680–683ASPNETaccount,307changingASPNETaccount,308–309changingnetworkserviceaccount,309–310checkingifIISinstalled,289choosingauthenticationmethod,703configuringWindowsauthentication,705creatingcertificaterequest,709creatingtestcertificate,710customerrors,302deploymentconfiguration,306handlingASPfilerequest,284howwebserverswork,284912INDEXinstallingIIS5onWindowsXP,289–290IIS6inWindowsServer2003,290IIS7inWindowsServer2008,293IIS7inWindowsVista,292networkserviceaccount,307registeringASP.
NETfilemappings,293–294verifyingASP.
NETinstallation,294–295versions,288–289Windowsauthentication,699,702–704IISManagerApplicationSettingsicon,303changingnetworkserviceaccount,309ConnectionStringsicon,303IISManagerforIIS5,296,297IISManagerforIIS6,296IISManagerforIIS7,296,297managingwebsiteswithIISManager,296–304ASP.
NETconfiguration,302–304configuringvirtualdirectories,300–304creatingvirtualdirectory,298–300customerrorpages,301–302settingdefaultpage,300–301Profileicon,303Rolesicon,303Usersicon,303SessionStateicon,303IISwebserver,699IL(IntermediateLanguage),12–14CLRand,12,20codetransparency,15Imageclassplacingimagesinwebpages,387Savemethod,385,387Imagecontroladdinglinkedimages,140imgtagunderlying,164underlyingHTMLelement,164usinginsteadofimgtag,453imageelement,102imagetype,inputelementHTMLservercontrolclassfor,131relatedwebcontrolclasses,164ImageButtoncontroladdingclickableimagelinkbyadding,593inputtagunderlying,164ImageClickEventArgsobjecteparameter,HtmlInputImage,145,146ImageFieldclassGridViewcontrolcolumntype,568imagesaddinglinkedimages,140–142creatinggraphicscontextfor,383drawingcustomimages,385–386drawingwithGraphicsclass,383imageformatsandquality,388–391imagesaspartoftheme,414–415placingcustomimagesinwebpages,387–388savingtovalidstream,385sizingbitmapscorrectly,382ImageSetproperty,TreeViewcontrol,456,458ImageUrlelement,AdvertisementFile,352ImageUrlproperty,TreeNodeStyleclass,458imgelement,102attributes,103HTMLservercontrolclassfor,130masterpagesandrelativepaths,425placingimagesinwebpages,387relatedcontrolclasses,164usinganImagecontrolinstead,453Impersonatemethod,WindowsIdentityclass,707impersonation,706–708implicittypeconversions,30Importsstatement,69code-behindclass,106Impressionselement,AdvertisementFile,352indentingcode,VisualStudio,112independentusercontrols,372–374IndexOfmethod,Arrayclass,37IndexOfmethod,Stringclass,33infinityNegativeInfinityvalue,247PositiveInfinityvalue,247913INDEXFinditfasterathttp://superindex.
apress.
cominheritanceclasses,71–72configurationinheritance,156,157CSS(CascadingStyleSheets),396HTMLservercontrols,143HtmlContainerControlclass,148HtmlControlclass,143,146Pageclass,148propertiesusing,396styleinheritance,402webcontrols,166webpages,148Initmethod,Pageclasscross-pagepostbacks,214pagelifecycle,549InitialCatalogproperty,connectionstrings,493,495initialization,variables,23–24inlinestyles,creating,394–400InnerExceptionproperty,Exceptionclass,241,242,243customexceptionclasses,253InnerHtmlproperty,HtmlContainerControlclass,148InnerTextpropertyHTMLservercontrols,151HtmlContainerControlclass,148InnerTextproperty,XmlNodeclass,657InnerXmlproperty,XmlNodeclass,657in-placecompilation,307in-placeconversion,90InProcvalue,modeattribute,231inputcontrolsFocusmethod,172HtmlInputControlclass,148inputelementFileUploadcontrolrepresenting,631Handleskeyword,134HTMLservercontrolclassesfor,130,131IDattribute,128relatedcontrolclasses,164,165representingHTMLinputcontrols,127Insertmethod,Cacheclass,820,835INSERTstatement,SQL,485commandobjectrepresenting,505,507–508Insertmethod,Stringclass,33InsertAfter/InsertBeforemethodsXmlDocumentclass,654XmlNodeclass,657InsertCommandpropertydataadapterclasses,517SqlDataSourcecontrol,551,559,560InsertCommandTypeproperty,SqlDataSourceclass,551Inserted/Insertingeventspagelifecycle,549SqlDataSourcecontrol,558,559InsertItemTemplatemode,TemplateFieldtemplates,591InsertMethodproperty,ObjectDataSourcecontrol,804,806InsertVisibleproperty,BoundFieldclass,569installationverifyingASP.
NETinstallation,294–295InstalledFontCollectionclass,196instancemethodsDBUtilclass,794usinginstanceorsharedmethods,790instances,classes,51addingconstructorsto.
NETclasses,58fileanddirectoryaccess,606instantiationcreatingobjectsof.
NETclasses,53–54InstructionTextproperty,Logincontrol,735,736InstructionTextStyleproperty,Logincontrol,735Int16datatype,22Int32datatype,22natureandbehaviorof,66.
NETclasslibrary,32Int64datatype,22Integerdatatype,22Integratedmode,Windowsauthentication,702IntegratedSecurityproperty,connectionstrings,493914INDEXintegratedusercontrols,375–377integratedWindowsauthentication,494IntelliSense,VisualStudio,16,108–112AutoCorrect,111–112automaticcoloringofcode,112automaticformattingofcode,112errorunderlining,110–111memberlist,109–110outlining,108–109possiblevaluesforenumerations,27interfacesHTMLservercontrols,125.
NETtypes,66objectinterfaceforHTMLelements,125webcontroluserinterface,163internalstylesheets,394Internetevolutionofwebdevelopment,3–9InternetExplorerquirksmode,97scriptdebugging,113Internethostingservice,304InternetInformationServicesseeIISIntervalproperty,Timercontrol,862IPaddresses,285,286,287Iskeyword,64IsAnonymousproperty,ProfileInfoclass,771ISAPIextension,284IsApprovedproperty,MembershipUserclass,731IsCookielessproperty,HttpSessionStateclass,223IsEnabledproperty,Traceclass,271IsInRolemethod,Userclassformsauthentication,697restrictingaccessbasedonroles,749,750Windowsauthentication,699IsLeapYearmethod,DateTimeclass,35IsNewSessionproperty,HttpSessionStateclass,223ISOSortableStandarddatatype,573isolation,8IsOtherMonthproperty,CalendarDayclass,347IsPathRootedmethod,Pathclass,608IsPostBackproperty,Pageclass,149populatinglistcontrol,139repeated-valuedatabinding,540IsReadyproperty,DriveInfoclass,616IsSelectableproperty,CalendarDayclass,347IsTodayproperty,CalendarDayclass,347IsUserInRolemethod,Rolesclass,749IsValidproperty,BaseValidatorclass,324IsValidproperty,Formclass,327,330IsWeekendproperty,CalendarDayclass,347italicelement,101Italicproperty,FontInfoclass,171itemparameterInsertmethod,Cacheclass,820Itemsproperty,HtmlSelectclass,132,139ItemStyleproperty,BoundFieldclass,570ItemTemplateclass,589,590ItemTemplatemode,TemplateFieldtemplates,591IUSERaccount,Windowsauthentication,699IUSRaccountAnonymousauthenticationmode,702ASP.
NETsecurity,683non-ASP.
NETsecurity,681JJ#,14JavaScriptAbortPostBackfunction,860Ajaxpagesusing,842,843ASP.
NETAJAX,843ASP.
NETprocessexplained,136ASP.
NETusingclient-sideabilitiesof,187EnableClientScriptproperty,324howvalidationworks,326linkingtoASP.
NETAJAXJavaScriptlibraries,844scriptdebugging,113JavaScriptfunctionsdoPostBackfunction,187,188Joinmethod,Stringclass,33JPEGimageformat,388915INDEXFinditfasterathttp://superindex.
apress.
comKkeyparameterInsertmethod,Cacheclass,820keypresseventsAjaxpagesusingJavaScript,842automaticpostbacksand,185KeyPressevent,322Keywordelement,AdvertisementFile,352KeywordFilterproperty,AdRotatorcontrol,353keywordsaccessibilitykeywords,52AutoCorrectand,112ByRef,65ByVal,43,64,65Event,58Friend,52Function,42Handles,106,107,134Is,64Me,109,118,528MyBase,252New,53–54,57Overloads,44Partial,75,77Preserve,25Private,43,52ProtectedFriend,52Protected,52Public,52ReadOnly,56ReDim,25Shared,72Sub,42TypeOf,74Until,41While,41WithEvents,60WriteOnly,56knowledgebases,472KnownColorenumeration,196LLabelcontrolAssociatedControlIDproperty,173EnableViewStateproperty,325howvalidationworks,325independentusercontrols,373refreshinglabelwithpartialupdate,846–849Textproperty,264,529underlyingHTMLelement,164LabelStyleproperty,Logincontrol,735LAN(localareanetwork),285,286languageintegration,15languageschoosingbetween.
NETlanguages,19evolutionofVisualBasic,20pagedirectiveindicating,127LastAccessTimeproperty,DirectoryInfoclass,614LastAccessTimeproperty,FileInfoclass,614LastActivityDatepropertyProfileclass,763ProfileCommonclass,771ProfileInfoclass,771LastChildproperty,XmlNodeclass,656LastIndexOfmethod,Arrayclass,37LastIndexOfmethod,Stringclass,33LastUpdatedDatepropertyProfileclass,763ProfileCommonclass,771ProfileInfoclass,771LastWriteTimeproperty,DirectoryInfoclass,614LastWriteTimeproperty,FileInfoclass,614Layoutcategorystylesettings,NewStyledialogbox,398layoutsframes,416Menu/TreeViewcontrolscompared,463table-basedlayoutsformasterpages,426–429ldffiles,495LeafNodeStyleproperty,TreeViewcontrol,460,461916INDEXLengthproperty,Arrayclass,36Lengthproperty,FileInfoclass,615Lengthproperty,Stringclass,32,33lessthanoperator(OutputCachedirective,813locationtag,web.
configfile,689Lockmethod,Applicationstatecollection,236Logmethod,pagelifecycle,191LoggedInevent,Logincontrol,733LoggedInTemplatesection,LoginViewcontrol,750loggingeventsseeeventlogsloggingexceptions,254–264viewingWindowseventlog,254,257logginginformsauthentication,695Windowsauthentication,699loggingout,formsauthentication,695,698loggingtools,.
NETFramework,254LoggingInevent,Logincontrol,733logicaloperators,37Logincontrol,732–737Authenticateevent,734CreateUserUrlproperty,735events,733,734formattedLogincontrol,736InstructionTextproperty,735membershipsecuritycontrols,732–737PasswordRecoveryUrlproperty,735properties,736recoveringlostpasswords,735registeringnewusers,735RememberMecheckbox,733styleproperties,734,735loginpagedefault,687formsauthentication,694–699defaultvalueofLoginUrl,687retrievinguseridentity,697signingout,698Windowsauthentication,705LoginButtonImageUrlproperty,Logincontrol,737LoginButtonStyleproperty,Logincontrol,735LoginButtonTextproperty,Logincontrol,736LoginButtonTypeproperty,Logincontrol,736LoginCreatedUserproperty,CreateUserWizardcontrol,738LoginErrorevent,Logincontrol,733LoginNamecontrol,732LoginStatuscontrol,732loginUrlattribute,687LoginViewcontrol,750–752description,732membershipsecuritycontrols,750–752RoleGroupstag,751,752settingcontentforroles,749showingdifferentcontentwith,751ViewChanged/ViewChangingevents,751Longdatatype,22LongDateandLongTimedatatype,573LongDateandShortTimedatatype,573LongDatedatatype,573loopstructures,39–42Do.
.
.
Loopblock,41–42For.
.
.
Nextblock,39–40ForEachblock,40–41918INDEXloopbackalias,URL,286Luhnalgorithm,335Mmachine.
configfileaccessingviaIIS,159adjustingdefaultmembershipconnectionstring,717authenticatingusers,688changingASPNETaccount,308configurationinheritance,156deploymentconfiguration,306LocalSqlServerconnectionstring,758membershipsectiondefaults,722multilayeredconfiguration,156viewstateandwebfarms,288machineKeyelement,288MailMessageEventArgsclassCancelproperty,745ManageAccessRuleslink,WAT,692,693manageability,componentprogramming,780manualvalidation,329–331many-to-manyrelationships,518mappingURLs,450SiteMapPathcontrol,451–455markupindicatingtypeofmarkup,97reusingwebpagemarkup,369Masterdirective,419masterpages,415–431bindingmasterpagetositemap,440–442brtag,423codeinmasterpages,430connectingcontentpagesto,419–421contentpagesand,393creatingcontentpagesbasedon,417–419creatingmasterpage,416–417defaultcontent,424–425description,393framescompared,415includingformattingin,424includingreplaceableitems,424interactingprogrammaticallywith,430–431linebreaks,423Masterdirective,419multiplecontentregions,421–424nesting,430nocontentregionsin,424overridingtitlespecifiedin,420placingScriptManagercontrolin,845relativepathsand,425–426SelectMasterPageoption,88table-basedlayouts,426–429usingparametersinmaster-detailspage,557viewingdirectly,416whitespace,423Masterproperty,Pageclass,431master-detailspages,creating,580–581MasterPageFileattribute,Pagedirective,420MasterPagesfolder,420,425Mathclass,29mathoperations,29MAXfunction,SQL,483MaxDataBindDepthproperty,TreeViewcontrol,446,457maxInvalidPasswordAttemptsattribute,addtag,722maxOccursattribute,XSDdocuments,663maxRequestLengthsetting,web.
configfile,634mdffiles,495Mekeywordrecallingnamesofcontrols,109single-valuedatabinding,528variablewatchwindows,118measurementswebcontrolpropertiesusing,168–169mediasitesusesofdatabasewithASP.
NET,472memberlist,VisualStudio,109–110membervariablesdeclaring,52retainingusingviewstate,205–207sessionstateexample,224919INDEXFinditfasterathttp://superindex.
apress.
commembersaddingfunctionalitytoclasses,786introductiontoclasses,50membershipauthenticationwithmembership,730–731defaultconnectionstring,717defaultenablefornewwebsite,715role-basedsecurity,713,745–752creatingandassigningroles,746–749LoginViewcontrol,750–752restrictingaccessbasedonroles,749securitycontrols,713,731CreateUserWizardcontrol,738–743Logincontrol,732–737LoginViewcontrol,750–752PasswordRecoverycontrol,743–745SQLServer2005Express,715–716SQLServer,usingfullversionof,717–719userrecordmanagement,713Membershipclass,726–727authenticationwithmembership,730creatinguserswith,724–726CreateUserWizardcontrol,715GetAllUsersmethod,729GetUsermethod,727howMembershipclassworks,728–730methods,726read-onlyproperties,727securitycontrols,731UpdateUsermethod,725,727,731ValidateUsermethod,730membershipdatastore,714–731configuringmembershipprovider,719–723creatingmanually,718creatinguserswithWAT,723–724disabledaccounts,731Membershipclass,726–727MembershipUserclass,727–728reasonsfornotusing,714transferringlargenumberofuseraccounts,726membershipelement,720membershipprovider,721membershipsection,machine.
configfile,722MembershipCreateStatusenumeration,726MembershipUserclass,727–728howMembershipclassworks,728–730IsApprovedproperty,731methods,727ResetPasswordmethod,731securitycontrols,731UnlockUsermethod,731MemoryStreamobjectusingPNG,389Menucontrol,462–468comparedtoTreeViewcontrol,463DataSourceIDproperty,462description,439dynamicstyles,464independentusercontrols,373properties,465staticstyles,464StaticDisplayLevelsproperty,464StaticSubMenuIndentproperty,464styles,464–465templates,465–468MenuHost.
aspxwebpage,373MenuItemclassTextproperty,465Messageproperty,Exceptionclass,242metacharacters,regularexpressions,331–332metalanguage,XMLas,638methodoverloading,44–45methods,42–46accessibility,43addingmethodsto.
NETclasses,56–57briefdescription,32calling,43creatingsharedmethods,72delegates,45–46description,56introductiontoclasses,50parameters,43–44sharedmethods,29subroutinesandfunctions,42usinginstanceorsharedmethods,790920INDEXMigrateAnonymousevent,ProfileModuleclass,774,775migratinganonymousprofiles,774–775migratingwebsitesfrompreviousversionofVisualStudio,89–90webprojects,86Millisecondproperty,DateTimeclass,34Millisecondsproperty,TimeSpanclass,35MINfunction,SQL,483MinimumPrefixLengthpropertyAutoCompleteExtendercontrol,870minOccursattribute,XSDdocuments,663minRequiredNonalphanumericCharactersattribute,722minRequiredPasswordLengthattribute,addtag,722Minuteproperty,DateTimeclass,34Minutesproperty,TimeSpanclass,35mixed-modeauthentication,494Modoperator,28ModalPopupExtendercontrol,Ajax,873modeattributeoptionscustomErrorssection,web.
configfile,266modeattribute,sessionStatetag,231,232,233Modeproperty,HttpSessionStateclass,223modesettingsessionstateconfiguration,231–235ModifyStyledialogbox,404MonthandDaydatatype,573Monthproperty,DateTimeclass,34mostRecentattributeapplication-leveltracing,281mouseeventsAjaxpagesusingJavaScript,842automaticpostbacksand,185Movemethod,Directoryclass,609Movemethod,Fileclass,609MoveTomethod,DirectoryInfoclass,614MoveTomethod,FileInfoclass,614MSBuildutility,86MSDNwebsite,82MSIL(MicrosoftIntermediateLanguage),12–14multidimensionalarrays,24multilayeredexceptionhandlers,241MultiLinevalue,TextBoxcontrol,165multiplebinding,536multiplepostbacks,202multipletemplates,GridViewcontrol,591–592multipleusersusingfileswithwebapplications,605multipleviews,webpageswith,354–355Wizardcontrol,367multiple-selectlistcontrols,175–176multiple-viewcontrols,354–367MultiViewcontrol,355–359Wizardcontrol,360–367multiplicationoperator,28multitargeting,VisualStudio,84MultiViewcontrol,355–359ActiveViewIndexproperty,358commandnames,358creatingviews,356–357movingbetweenviews,360SetActiveViewmethod,358showingviews,358–359mungedURL,228MutuallyExclusiveCheckboxExtendercontrol,Ajax,873MyBasekeyword,252MyLoggercustomloggingclass,261Nnameattribute,addtagconfiguringmembershipprovider,721formsauthenticationsettings,687profileproperties,761webcontroltags,165NamepropertyDirectoryInfoclass,614,620DriveInfoclass,616FileInfoclass,614,620FontInfoclass,171XmlTextReaderclass,645921INDEXFinditfasterathttp://superindex.
apress.
comNamesproperty,FontInfoclass,171namespaceprefixes,XML,661namespaces,66ADO.
NETdatanamespaces,488–489assembliesand,70compilingcomponents,785defining,68–69fullyqualifiedclassnames,68importing,69naming,785nestednamespaces,785rootnamespace,785VisualStudioHelpreference,67XMLnamespaces,659–661namingconventionsdataproviderclasses,490datatypevariableprefixes,23fullyqualifiedclassnames,68namespaces,785privatemembersofclass,53propertyaccessors,55publicmembersofclass,53usingfileswithwebapplications,605XMLnamespaces,660narrowingconversions,30NavigateUrlelement,AdvertisementFile,352navigation404NotFounderror,436ASP.
NETnavigationwithsitemaps,434breadcrumbnavigation,451components,433independentusercontrols,372masterpages,415websitenavigation,433–468Menucontrol,462–468sitemaps,433–450SiteMapPathcontrol,451–455TreeViewcontrol,455–462navigationbuttonspageswithmultipleviews,354navigationcontrols,373bindingmasterpagetositemap,440bindingnavigationalcontrols,445changingappearanceof,434interactingprogrammaticallywithmasterpages,430Menucontrol,462–468navigationcomponents,433SiteMapPathcontrol,451–455templatesnotsupportedby,455TreeViewcontrol,455–462navigationalproperties,SiteMapNodeclass,448NavigationButtonStyleproperty,Wizardcontrol,366NavigationStyleproperty,Wizardcontrol,366NegativeInfinityvalue,247nestedexceptionhandlers,246–248nestingmasterpages,430siteMapelements,436,437.
NETdataproviderfactories,550evolutionofVisualBasic,20multitargeting,84XMLand.
NET,635–636.
NETassembliesGAC(GlobalAssemblyCache),305.
NETclasslibrary,9,16addingreferences,786ADO.
NETdatanamespaces,488–489Arraytype/class,36–37assemblies,69browsingthroughexceptions,242component-basedprogramming,779,783creatingcomponents,784DateTimetype/class,33–35determiningwhichexceptionstocatch,246Directoryclass,608–613DirectoryInfoclass,613–615DriveInfoclass,615–616Fileclass,608–613FileInfoclass,613–615generics,77Int32type/class,32922INDEXnamespaces,66namingclasslibraryprojects,784.
NETtypes,21,22,65–66Pathclass,607–608retrievingfile/directoryinformation,606Stringtype/class,32–33TimeSpantype/class,33–35ToStringmethod,31.
NETcomponentsBindirectory,124.
NETFramework,9–17building.
NETclasses,52–63addingconstructors,57–58addingevents,58–61addingmethods,56–57addingproperties,54–56creatingobjects,53–54testingclasses,61–63classes,49–63instance/sharedmembers,51CLR(CommonLanguageRuntime),14–15events,377evolutionofwebdevelopment,3–9fileaccess,605GDI+,382loggingtools,254object-basedmanipulation,31–37predefinedexceptionclasses,242structuredexceptionhandling,241valuetypesandreferencetypes,63–66VisualStudio,16–17.
NETlanguages,11,14C#,VBand.
NET,11–14choosingbetween.
NETlanguages,19CLS(CommonLanguageSpecification),12,14compilingstraighttomachinecode,14datatypevariableprefixes,23datatypes,21description,9installing,19IntermediateLanguage(IL),12–14languagecompilationin.
NET,13third-partylanguages,19.
NETProfileicon,IISManager,303.
NETRolesicon,IISManager,303.
NETUsersicon,IISManager,303networkserviceaccountchanging,309–310deployingASP.
NETwebsite,307–308givinglimitedprivilegesto,311IISManagerchanging,310permissions,308networks,285DNS(DomainNameService),286Newkeyword,53–54,57NewStyledialogbox,397Descriptionbox,398Previewbox,398stylecategories,397NewWebSitedialogboxcreatingvirtualdirectory,312,313creatingwebsites,83,84NextButtonClickeventCreateUserWizardcontrol,741Wizardcontrol,365NextMonthTextproperty,Calendarcontrol,349NextPrevFormatproperty,Calendarcontrol,349NextPrevStyleproperty,Calendarcontrol,345NextSiblingproperty,SiteMapNodeclass,448NextSiblingproperty,XmlNodeclass,656NextViewcommandname,MultiViewcontrol,359NodeIndentproperty,TreeViewcontrol,456,458,459nodesaddingcontent,657adding/removingnodes,657applyingstylestonodelevelsinTreeView,461–462applyingstylestonodetypesinTreeView,460–461ChildNodescollection,656findingrelatednodes,656923INDEXFinditfasterathttp://superindex.
apress.
commanipulatingnodeattributes,657manipulatingXMLnodes,656Menu/TreeViewcontrolscompared,463nodespacingTreeViewstyles,459workingwithcontentasstringdata,657Nodescollection,XmlNodeclass,671nodes,XML,645XmlDocumentclassinserting,654NodeSpacingproperty,TreeNodeStyleclass,458NodeStyleproperty,SiteMapPathcontrol,452NodeStyleproperty,TreeViewcontrol,460NodeTemplateproperty,SiteMapPathcontrol,452,454,455NodeTypeproperty,XmlTextReaderclass,645NodeWrapproperty,TreeViewcontrol,458NoExpandImageUrlproperty,TreeViewcontrol,458nonbreakingspace,101,151nonhierarchicalbinding,671–673Northwinddatabase,obtaining,474notequaltooperator(),37notificationscacheditemexpiresimmediately,840CREATEEVENTNOTIFICATIONcommand,836enablingServiceBroker,838failednotifications,840notificationsnotreceived,840SQLServer2000,832–835SQLServer2005/2008,836–838,840NotSupportedExceptioncachingwithObjectDataSource,829Nowproperty,DateTimeclass,34nullreferenceexception,239overlappingexceptionhandlers,248NullDisplayTextproperty,BoundFieldclass,570NullReferenceExceptionclass,243numbersign(#)characterinURLs,218numericformatstrings,572NumericUpDownExtendercontrol,Ajax,873OObjectdatatype,22objectinterface,HTMLelements,125objectmodel,163objectwalkersyntax,171object-basedmanipulation,31–37Arraytype/class,36–37DateTimetype/class,33–35Stringtype/class,32–33TimeSpantype/class,33–35object-orientedprogrammingassemblies,69castingobjectvariables,73–75classes,49–63inheritance,71–72instancemembers,51sharedmembers,51,72–73generics,77–78namespaces,66partialclasses,75–77structuredexceptionhandling,241valuetypesandreferencetypes,63–66VBlanguageenhancements,20ObjectDataSourcecontrol,548,802–808cachingproperties,826cachingwith,829–830classesObjectDataSourcecanunderstand,803creatingcachedependency,836datacomponentusabilityrules,803selectingrecords,804,803supplyinganextraparameter,808TypeNameproperty,803updatingrecords,805–808usinginsteadofSqlDataSource,567usingmethodparameters,804–805XyzMethodproperties,804objectsaddingconstructorsto.
NETclasses,57castingobjectvariables,73–75classesandobjects,50copyinganobject,notareference,64creatingobjectsof.
NETclasses,53–54storingcustomobjectsinviewstate,207–208924INDEXODBCdataprovider,487Odbcnamespace,System.
Data,489Offerrormode,267,268Offvaluemodeattribute,sessionStatetag,232olelement,102relatedwebcontrolclasses,165OldValuesParameterFormatStringpropertySqlDataSourceclass,562OLEDBdataprovider,487OleDbnamespace,System.
Data,489OleDbCommandclassseecommandclassesOleDbConnectionclassseeconnectionclassesOleDbDataAdapterclassseedataadapterclassesOleDbDataReaderclassseedatareaderclassesOnerrormode,267onchangeattribute,webcontrols,187onclickattribute,webcontrols,187one-to-manyrelationship,520Openmethod,connectionclasses,498Openmethod,Fileclass,622,623Openmethod,SqlConnectionclass,797OpenReadmethod,Fileclass,623OpenTextmethod,Fileclass,622OpenWritemethod,Fileclass,623operationsmathoperations,29typeconversions,30–31variableoperations,28–31operatorsarithmeticoperators,28comparisonoperators,38concatenationoperator(&),28logicaloperators,37precedenceofoperators,28shorthandassignmentoperators,28optionelementpopulatinglistcontrol,138,139OptionStrictinstructionliteraldecimalvalues,56typeconversions,30,31Oroperator,37Oracledataprovider,487OracleClientnamespace,System.
Data,489ORDERBYclause,SQL,481,482orderedlistelement,102OrElseoperator,37OtherMonthDayStyleproperty,Calendarcontrol,345OuterXmlproperty,XmlNodeclass,657Outlinewindow,CSS,405outlining,VisualStudio,108–109outputautomaticallytailored,164outputcaching,811,812–819cacheprofiles,819cachingandquerystring,814–817cachingmultipleversionsofwebpage,815–817clientsidecaching,813customcachingcontrol,817–818databaseaccess,813dynamicpages,815fragmentcaching,811,818OutputCachedirective,812user-specificinformationand,815OutputCachedirective,812cacheprofiles,819cachingmultipleversionsofwebpage,816customcachingcontrol,817,818Durationattribute,813fragmentcaching,818Locationattribute,813SqlCacheDependencyproperty,836VaryByParamattribute,814,815OutputCacheLocationenumeration,813outputCacheProfilessection,web.
configfile,819Overlineproperty,FontInfoclass,171overloadingconstructors,58GetItemsmethod,797methodsoverloading,44–45Overloadskeyword,44OverwriteChangesvalueConflictOptionsenumeration,562925INDEXFinditfasterathttp://superindex.
apress.
comPpelement,100,101PadLeft/PadRightmethods,Stringclass,33Pageclass,148–150Cacheproperty,819code-behindclass,106,134DataBindmethod,526,527events,754FindControlmethod,331inheritance,148,369inheritancechain,370Initmethod,214,549IsPostBackproperty,139,540Loadevent,139,147,205,214,377,543,549LoadControlmethod,372Masterproperty,431Partialkeyword,107PreRenderevent,205,207,214,549PreviousPageproperty,210,212,214Profileproperty,770properties,149RegisterRequiresViewStateEncryptionmethod,205Responseproperty,150Serverproperty,150StyleSheetThemeproperty,415Themeproperty,415TransactionCountvariable,527,529Unloadevent,207Userproperty,697Validatemethod,330ViewStateproperty,202pagedesign,VisualStudio,16Pagedirectiveapplyingthemetoentirewebsite,412componentsandstructureofwebform,97connectingcontentpagestomasterpages,420description,127MasterPageFileattribute,420StyleSheetThemeattribute,411,412Themeattribute,409,411,412Titleattribute,420TraceModeattribute,280ViewStateEncryptionModeproperty,204pagelifecycle,188–191databinding,549profiles,754Pageproperty,HtmlControlclass,147Pageproperty,WebControlclass,168pagetracing,269–280application-leveltracing,280disablingtracing,270enablingtracing,269–270tracinginformation,270–276controltree,273cookies,274formcollection,275headerscollection,275querystringcollection,276requestdetails,272servervariables,276sessionorapplicationstate,274traceinformation,273writingtraceinformation,276–280PageIndexproperty,GridViewcontrol,587pageOutputattribute,280PagerIndexChangedproperty,GridViewcontrol,588PagerIndexChangingproperty,GridViewcontrol,588PagerSettingsproperty,DetailsViewcontrol,599PagerSettingsproperty,GridViewcontrol,587PagerStyleproperty,DetailsViewcontrol,599PagerStyleproperty,GridViewcontrol,574,588PagerTemplateproperty,GridViewcontrol,592PagerTemplateclass,592pagesseewebpagespageselementenableViewStateMacattribute,204pageswithmultipleviewsMultiViewcontrol,355–359navigationbuttons,354Wizardcontrol,360–367926INDEXPageSizeproperty,GridViewcontrol,587pagingDetailsViewwithpaging,599GridViewcontrol,587–589performance,589PagingBulletedListExtendercontrol,Ajax,873PanelcontrolDefaultButtonproperty,173greetingcardgeneratorexample,191underlyingHTMLelement,165validationgroups,340panelsstackingpanelsinwebpage,865paragraphelement,101parametertypes,555parameterizedcommands,510,511datasourcecontrols,553–558othertypesofparameters,555–556settingparametervaluesincode,556–558parameterscontrolparameters,555datacontrol'sautomaticsubmissionof,560indicatingparameters,553methods,43–44passingbyreference,64passingbyvalue,64usinginmaster-detailspage,557Parentproperty,DirectoryInfoclass,614Parentproperty,HtmlControlclass,147Parentproperty,WebControlclass,168parent-to-childrelationship,520ParentLevelsDisplayedproperty,SiteMapPathcontrol,452ParentNodeproperty,SiteMapNodeclass,448ParentNodeproperty,XmlNodeclass,656ParentNodeStyleproperty,TreeViewcontrol,460,461parsing,XMLdocument,639,640partialclasses,75–77Partialkeyword,75,77code-behindclass,134Pageclass,107partialrefreshesusingAjax,845–857conditionalupdates,851–852controllingrefresheswithtriggers,852–857errorhandling,849–851refreshinglabelwithpartialupdate,846–849UpdatePanelcontrol,845–857updatesinterruptingupdates,852partialrendering,Timercontrol,862pass-by-referenceparameter,64pass-by-valueparameter,64Passwordproperty,Logincontrol,734passwordtype,inputelementHTMLservercontrolclassfor,131relatedwebcontrolclasses,164Passwordvalue,TextBoxcontrol,165passwordAttemptWindowattribute,addtag,722passwordFormatattribute,addtag,721PasswordLabelTextproperty,Logincontrol,736PasswordRecoverycontrol,732,743–745PasswordRecoveryIconUrlproperty,Logincontrol,737PasswordRecoveryTextproperty,Logincontrol,737PasswordRecoveryUrlproperty,Logincontrol,735,737PasswordRequiredErrorMessageproperty,Logincontrol,736passwordsconfiguringmembershipprovider,721,722disabledaccounts,731HashPasswordForStoringInConfigFilemethod,695recoveringlostpasswordsLogincontrol,735PasswordRecoverycontrol,743–745regularexpressionfor,334PasswordStrengthExtendercontrol,Ajax,873pathattribute,formsauthentication,687Pathclass,607–608Combinemethod,607,612,620drawingshapeswithGraphicsclass,384927INDEXFinditfasterathttp://superindex.
apress.
comfillingshapeswithGraphicsclass,384GetFileNamemethod,607,633methods,607Pathproperty,Requestclass,450PathDirectionproperty,SiteMapPathcontrol,452pathsaddingrelativepathtoabsolutepath,607masterpagesandrelativepaths,425–426PathSeparatorproperty,SiteMapPathcontrol,452PathSeparatorStyleproperty,SiteMapPathcontrol,452PathSeparatorTemplateproperty,SiteMapPathcontrol,452,453Penobject,specifying,384percentage(%)character,Unittype,168Percentagedatatype,572Percentagemethod,Unittype,168performanceapplicationstate,236caching,809–812benefitof,810cachedependencies,830–840datacaching,819–830datasourcecontrolcaching,826–830fragmentcaching,818outputcaching,812–819CLR,15paging,589profiles,754sessionstate,222statemanagementoptionscompared,237,238viewstateencryption,205permissions,684ASPNET/networkserviceaccounts,308authorization,684creatingvirtualdirectories,299impersonation,707Windowsaccountpermissions,306persistence,cookies,219,697PhysicalApplicationPathproperty,Requestobject,612Pixelmethod,Unittype,168pixelsindicatingUnittype,168measuring,384PlaceCodeinSeparateFileoptionAddNewItemwindow,88plussign(+)characterinURLs,218PNGimageformat,388,389polling,ASP.
NET,832,835,840pollTimeattribute,sqlCacheDependencyelement,835polygondrawingwithGraphicsclass,383fillingwithGraphicsclass,384PopupControlExtendercontrol,Ajax,873portsVisualStudiowebserver,113Positioncategorystylesettings,NewStyledialogbox,398PositiveInfinityvalue,247postbacksasynchronouspostbacksseepartialrefreshesusingAjaxautomaticpostbacks,184–188,198AutoPostBackproperty,185capturingchangeeventimmediately,185creatingfilebrowser,620cross-pagepostbacks,209–214doPostBackfunction,187,188events,187–188notsuitableforpostbacks,185webcontrolevents,183–188greetingcardgeneratorexample,192HTMLservercontrols,183IsPostBackproperty,149populatinglistcontrol,139processingsequencefor,186reviewed,841UpdatePanelcontrol,848,849viewstate,202PostBackUrlproperty,IButtonControlinterface,209928INDEXPostedFileclassContentLengthproperty,633FileNameproperty,633FileUploadcontrol,631SaveAsmethod,631PowerUserrole,701precedenceofoperators,28precompilationdeployingASP.
NETwebsite,306publishingwebsite,317Prependmethod,XmlNodeclass,657PrependChildmethod,XmlNodeclass,657PreRenderevent,Pageclasschangingprofiledata,754cross-pagepostbacks,214pagelifecycle,191,549retainingmembervariablesusingviewstate,205,207PreRenderCompleteevent,Pageclass,754Preservekeyword,25PreviewboxNewStyledialogbox,398PreviousButtonClickevent,Wizardcontrol,365PreviousPageproperty,Pageclass,210,212,214PreviousPageTypedirective,211PreviousSiblingproperty,SiteMapNodeclass,448PreviousSiblingproperty,XmlNodeclass,656PrevMonthTextproperty,Calendarcontrol,349PrevViewcommandname,MultiViewcontrol,359PrintOperatorrole,701privateassemblies,305privatekeys,SSL,711Privatekeyword,43,52privatemembersnamingconvention,53privatevariables,52processModelsetting,machine.
configfile,308Productclassbuilding.
NETclasses,52–61testingnew.
NETclasses,61Product.
vbfile,61ProfileAPI,770–773ProfileclassAddressproperty,768FirstNameproperty,762GetProfilemethod,770,774LastActivityDateproperty,763LastUpdatedDateproperty,763Savemethod,763,769profiledatabase,759–760stepstouseprofiles,756tables,759profileelementautomaticSaveEnabledattribute,769profilegroups,765profilepropertiesaddingorremovingproperties,764automaticsavesofcustomdatatypes,769changingnameordatatype,764defining,760–761profilepropertyattributes,761stepstouseprofiles,756using,761–763versioning,764Profileproperty,Pageclass,770profilepropertyattributes,addtag,761profileprovidersproviderattribute,761registering,759stepstouseprofiles,756profileserialization,763–765serializeAsattributeoptions,764profiletables,759,760ProfileBaseclass,761,770ProfileCommonclass,770Addressproperty,770LastActivityDateproperty,771LastUpdatedDateproperty,771Savemethod,771ProfileInfoclass,771ProfileManagerclass,770,771929INDEXFinditfasterathttp://superindex.
apress.
comProfileMigrateEventArgsclass,774ProfileModuleclass,769MigrateAnonymousevent,774,775ProfileParametercontroltag,555profiles,753–756anonymousprofiles,773–775ASP.
NET,753aspnet_Profiletable,759authentication,756,757automaticsavesofcustomdatatypes,769cacheprofiles,819caching,754changingprofiledata,754connectionstrings,758,758customdatatypes,766–770limitations,753,755migratinganonymousprofiles,774–775pagelifecycle,754parametertypes,555performance,754retrievinginformationindatasource,773retrievingprofilesmanually,770scalability,754serialization,755SqlProfileProviderclass,756–775stepsforusing,756storingdata,755–756usingwithSQLServer,758–759usingwithSQLServer2005Express,757programmaticimpersonation,707programmingseecomponent-basedprogrammingprogressnotificationusingAjax,857–861simulatedprogressbar,857–859projectfiles,VisualStudio,85projectreferences,786,787,790projectlessdevelopment,85,87,90propertiesaddingto.
NETclasses,54–56briefdescription,32component-basedprogramming,790–793creatingsharedproperties,72introductiontoclasses,50settingthroughattributesincontroltag,147settingvalueof,147statefulorstatelessdesign,790,791propertieselement,web.
configfile,760Propertieswindowaddingeventhandlers,106configuringwebcontrolsin,94–95propertyaccessors,54,55,56,58propertyprocedures,224,375,766,790,802PropertyNamesfield,aspnet_Profiletable,763PropertyValuesStringfield,aspnet_Profiletable,763,764ProtectedFriendkeyword,52Protectedkeyword,52protectionattribute,formsauthentication,687providerattribute,addtag,761Providerproperty,SiteMapclass,448ProviderSpecificvalue,serializeAsattribute,764Publickeyword,52publicmembersofclassnamingconvention,53publicmethods,786PublishWebSitefeature,317–318pubsdatabase,obtaining,474px(pixel)indicatingUnittype,168Qqueriesjoinquery,518QueryDesigner,SQL,480querystringcollection,276querystringscachingand,814–817outputcaching,815–817parametertypes,555statemanagementoptionscompared,237transferringinformationinURLs,214–218URLencoding,218QueryStringcollection,215QueryStringproperty,Requestclass,450930INDEXQueryStringParametercontroltag,555questionmarkwildcardanonymoususeraccess,688quirksmode,InternetExplorer,97Rradiotype,inputelementHTMLservercontrolclassfor,130relatedwebcontrolclasses,164,165RadioButtoncontroleventsandpostbacks,185underlyingHTMLelement,164validation,339RadioButtonListcontrolseealsolistcontrolseventsandpostbacks,185listcontrolscompared,174repeated-valuedatabinding,533underlyingHTMLelement,165RaiseEventcommand,378RangeValidatorcontrolcontrolspecificproperties,324description,322editingGridViewtemplatewithvalidation,595EnableClientScriptproperty,326howvalidationworks,325propertiesofBaseValidatorclass,324validatedwebformexample,336Ratingcontrol,Ajax,873RawUrlproperty,Requestclass,450RDBMS(relationaldatabasemanagementsystem),472Readmethoddatareaderclasses,500,503XmlTextReaderclass,645ReadAllBytesmethod,Fileclass,624ReadAllLinesmethod,Fileclass,624ReadAllTextmethod,Fileclass,624ReadInt32method,BinaryReaderclass,623ReadLinemethod,StreamReaderclass,622readOnlyattribute,addtag,761ReadOnlykeyword,56ReadOnlyproperty,BoundFieldclass,569ReadStringmethod,BinaryReaderclass,623ReadXyzmethods,XmlTextReaderclass,650recordeditorrepeated-valuedatabinding,542–547recordsdeleting,513–514inserting,507–508selectingwithSqlDataSource,551updating,511–513updatingwithdatasourcecontrols,559–563concurrencychecking,561–563rectangledrawingwithGraphicsclass,384fillingwithGraphicsclass,384ReDimkeyword,25redimensioningarrays,25Redirectmethod,HttpResponseclass,150Redirectmethod,Responseclasscookielesssessionstateconfiguration,228independentusercontrols,372passinginformationwithevents,381querystringstransferringinformationinURLs,215RedirectFromLoginPagemethod,FormsAuthenticationclass,695,696,697redirectionLogincontrol,733redirectingusertonewwebpage,150–151referencetypes,63–66assignmentoperations,63datatypesbehavingas,66equalitytesting,64passingparametersbyreference,64referencesaddingassemblyreference,786,787addingprojectreference,786,787addingreferencetocomponents,786–788removing,788usingassemblyreferences,790usingprojectreferences,790Refreshmethod,DirectoryInfoclass,614Refreshmethod,FileInfoclass,614931INDEXFinditfasterathttp://superindex.
apress.
comregenerateExpiredSessionIdattribute,230Registerdirective,371registeringcomponents,124RegisterRequiresViewStateEncryptionmethod,Pageclass,205regularexpressionscommonexamples,334findingappropriateregularexpression,333–334literals,331–332Luhnalgorithm,335metacharacters,331–332regularexpressioncharacters,334repeatingcharacters,332replacingcustomvalidationwith,338singlecharacters,332usingparentheses,332usingsquarebrackets,332validationusing,331–335RegularExpressionTestpage,333–334RegularExpressionValidatorcontrol,331–335controlspecificproperties,325description,322propertiesofBaseValidatorclass,324validatedwebformexample,336relationaldatabasemanagementsystem(RDBMS),472relationaldatabasesautoincrementcolumns,485definingrelationshipsindatasets,520–522joinquery,518many-to-manyrelationships,518modifyingdataindatabase,504–514one-to-manyrelationship,520relationalmodel,471uniqueidentitycolumn,485relativepathsmasterpagesand,425–426RememberMecheckbox,Logincontrol,733RememberMeSetproperty,Logincontrol,737RemoteWebServeroption,316RemoteOnlyerrormode,267,268Removemethod,Stringclass,33RemoveAllmethod,XmlNodeclass,657RemoveAttributemethod,XmlElementclass,657RemoveChildmethod,XmlNodeclass,657RemoveHandlerstatement,59RemoveUser(s)FromRole(s)methods,Rolesclass,749RenderCurrentNodeAsLinkproperty,SiteMapPathcontrol,452renderingadaptiverendering,164description,100focusedcontrolafter,172pagelifecycle,188partialrefreshesusingAjax,847partialrendering,845UpdatePanelcontrol,848repeated-valuedatabinding,532–547creatingrecordeditor,542–547databindingwithADO.
NET,540–542databindingwithdictionarycollections,537–539databindingwithlistcontrols,533–535genericcollections,535introduction,526multiplebinding,536stronglytypedcollections,535usingDataValueFieldproperty,539–540Replacemethod,Stringclass,32,33ReplaceChildmethod,XmlNodeclass,657Replicatorrole,701RequestCertificatewizard,709,710Requestclass/object,450Cookiescollection,219determininguser'sbrowser,529PhysicalApplicationPathproperty,612requestcookies,274requestdetails,272Requestproperty,Pageclass,149requestLimitattribute,280932INDEXrequestsApplication_BeginRequestevent,154Application_EndRequestevent,154stagesinASP.
NETrequest,137RequiredFieldValidatorcontrolcontrolspecificproperties,324description,322propertiesofBaseValidatorclass,324validatedwebformexample,336RequiredOpenedPaneproperty,Accordioncontrol,867requiresQuestionAndAnswerattribute,addtag,722requiresUniqueEmailattribute,addtag,722resettype,inputelement,130ResetPasswordmethod,MembershipUserclass,728,731ResizableControlExtendercontrol,Ajax,873resourcesfiles,hugewebprojects,86ResponseclassRedirectmethodcookielesssessionstateconfiguration,228independentusercontrols,372passinginformationwithevents,381querystringstransferringinformationinURLs,215Writemethod,153responsecookies,274Responseobject,Cookiescollection,219Responseproperty,Pageclass,149,150restrictedfiletypes,684resultsetsdataretrievalusingADO.
NET,504readingpasttheendof,500RetrieveDatamethod,823–824reusingwebpagemarkup,369Reversemethod,Arrayclass,37role-basedsecurity,745–752creatingandassigningroles,746–749LoginViewcontrol,750–752membership,713restrictingaccessbasedonroles,749RoleExistsmethod,Rolesclass,748RoleGroupstag,LoginViewcontrol,751,752roles,Windows,701Rolesclasscreatingandassigningroles,748–749rootnamespace,785Rootproperty,DirectoryInfoclass,614root-relativepath,420masterpagesandrelativepaths,426RootDirectoryproperty,DriveInfoclass,616RootNodeproperty,SiteMapclass,448RootNodeStyleproperty,SiteMapPathcontrol,452RootNodeStyleproperty,TreeViewcontrol,460,461RootNodeTemplateproperty,SiteMapPathcontrol,452,453rootshidingrootnodeofsitemap,442representingrootfolderofwebapplications,436rootnodeofsitemaps,437Rowproperty,GridViewRowEventArgsclass,577RowCommandevent,GridViewcontrol,579,593RowDataBoundevent,GridViewcontrol,576rows,retrieving,481Rowscollection,DataRowclass,517Rowsproperty,TextBoxcontrol,165RowStyle,GridViewcontrol,573rules,stylesheetsseeCSSrulesRunToCursorcommand,116runat="server"attributeaddingHTMLservercontrol,132headelement,104HTMLsenttobrowser,129HTMLservercontrolclassfor,131selectelement,HTML,138transformingHTMLelementsintoservercontrols,128webcontroltags,165S\Sregularexpressioncharacter,334sampledatabases,obtaining,474933INDEXFinditfasterathttp://superindex.
apress.
comSavemethodImageclass,385,387Profileclass,763,769ProfileCommonclass,771XmlDocumentclass,652,654SaveAsmethod,PostedFileclass,631scalabilitycaching,810CGIapplications,6databaseaccesswithwebapplications,473profiles,754sessionstate,222,226usingfileswithwebapplications,606webapplications,222Schemanamespace,System.
Xml,663schemasaspnet_SchemaVersionstable,759XMLSchemaDefinition(XSD),661–663XmlSchemaclass,663XmlSchemaCollectionclass,663XmlSchemaExceptionclass,664Scientificdatatype,572scopeblock-levelscope,40statemanagementoptionscompared,237,238scriptdebugging,VisualStudio,113ScriptManagercontrol,Ajax,844–845exceptionhandling,850ScriptManagerProxycontrol,845ScriptResource.
axd,844Scrollbarsproperty,Panelclass,572seamlessdeploymentmodel,124searchenginesusesofdatabasewithASP.
NET,472SearchNodesmethod,467Secondproperty,DateTimeclass,34Secondsproperty,TimeSpanclass,35SecureSocketsLayer(SSL),708–711securityASP.
NETdeployment,307ASP.
NETsecuritymodel,680–685authentication,684authorization,684component-basedprogramming,780controllingASP.
NETsecurity,156cookies,219deploymentconfiguration,306determiningsecurityrequirements,679–680eventlogsecurity,259expiredsessionIDs,230formsauthentication,685–699impersonation,706–708implementingWindows-basedsecurity,699makingviewstatesecure,203–205persistentcookies,697querystringstransferringinformationinURLs,215reasonstoavoidclient-sideprogramming,8restrictedfiletypes,684role-basedsecurity,713,745–752creatingandassigningroles,746–749restrictingaccessbasedonroles,749sessionstate,221SQLstatements,509–511SSL(SecureSocketsLayer),708–711statemanagementoptionscompared,237,238usingfileswithwebapplications,606Windowsauthentication,699–706Windowseventlogs,255securitycontrolsCreateUserWizardcontrol,738–743Logincontrol,732–737LoginViewcontrol,750–752membership,713,731PasswordRecoverycontrol,743–745securitycookiesuserrequestsrequiring,688validationfor,687Securitytab,WAT,692,694creatingandassigningroles,746–748creatinguserswithWAT,723Seekmethod,Streamclass,624934INDEXseekablestreams,389SelectAuthenticationoptions,691selectbuttonselectingGridViewrows,578,579SelectCaseblock,38–39selectelementdrop-downlists,138HTMLservercontrolclassfor,131relatedwebcontrolclasses,165runat="server"attribute,138valueattribute,139,140SelectMasterPageoption,AddNewItemwindow,88SELECTstatement,SQL,480AVGfunction,483Commandobjectrepresenting,499COUNTfunction,483DISTINCTkeyword,483MAXfunction,483MINfunction,483SELECT*statement,481SUMfunction,483TOPclause,482selecttagrelatedcontrolclasses,165SelectCommandpropertydataadapterclasses,517SqlDataSourceclass,551,559SelectCommandTypeproperty,SqlDataSourceclass,551Selectedproperty,ListItemcontrol,174,175SelectedDataKeyproperty,GridViewcontrol,580,581SelectedDate(s)property,Calendarcontrol,350SelectedDayStyleproperty,Calendarcontrol,345Selected/Selectingeventspagelifecycle,549SqlDataSourcecontrol,558,559SelectedIndexpropertyAccordioncontrol,867GridViewcontrol,578,579,580listcontrols,174SelectedIndexChangedeventcapturingchangeeventimmediately,185GridViewcontrol,578,581webcontrols,183,184,185SelectedIndexChangingevent,GridViewcontrol,578SelectedItemproperty,ListBoxcontrol,197,539SelectedNodeStyleproperty,TreeViewcontrol,460SelectedRowStyle,GridViewcontrol,573,578SelectedValueproperty,ListBoxclass,804,806SelectImageUrlproperty,GridViewcontrol,578SelectionChangedevent,Calendarcontrol,348,350SelectionModeproperty,Calendarcontrol,350SelectionModeproperty,ListBoxcontrol,175SelectMethodproperty,ObjectDataSourcecontrol,804,829SelectMonthTextproperty,Calendarcontrol,350selectors,stylesheets,405SelectorStyleproperty,Calendarcontrol,346SelectParametersproperty,SqlDataSourceclass,551SelectQueryproperty,SqlDataSourceclass,551SelectTextproperty,GridViewcontrol,578SelectWeekTextproperty,Calendarcontrol,350senderparameter,eventhandlers,134,145SendingMailevent,PasswordRecoverycontrol,745Serializableattribute,207,208,765,769serializationbinaryserializationofcustomdatatypes,769classes,765customdatatypes,769datatypes,765description,207makingobjectsserializable,207935INDEXFinditfasterathttp://superindex.
apress.
comprofileserialization,755,763–765storingobjectsinviewstate,207,208XMLserialization,676customdatatypes,769serializeAsattribute,addtag,761serializeAsattribute,web.
configfile,764ServerclassTransfermethod,450servercontrols,124–136hiddenservercontrols,141HTMLandwebcontrolscompared,163HTMLservercontrolclasses,129–132HTMLservercontrols,125,126–128servercodereactingimmediatelytoevents,183transformingHTMLelementsinto,128webcontrols,125,163–166ServerExplorerwindow,VisualStudio,475,476,479,496Serverproperty,Pageclass,149,150serverrolechoosingapplicationserverrole,291servervariablestracinginformation,276server-sidecachingclientsidecachingcompared,813server-sideeventsHTMLservercontrols,125server-sideprogramming,6–7server-sidevalidation,323ServerChangeevent,144,145,183ServerClickevent,144creatingeventhandlersforHTMLservercontrols,134HTMLservercontrols,145,183HtmlAnchorclass,144HtmlInputButtonclass,132HtmlInputImageclass,145redirectingusertonewwebpage,150ServerValidateevent,CustomValidatorcontrol,337,338ServiceBrokermodel,836,838ServiceMethodproperty,AutoCompleteExtendercontrol,870sessionIDscookielessmode,228expiredsessionIDs,230tracinginformation,272sessionkeys,711Sessionproperty,Pageclass,149sessionstate,221–235configuration,webfarms,231configuration,web.
configfile,227–235cookielesssetting,227–230InProcvalue,modeattribute,231modesetting,231–235Offvalue,modeattribute,232SqlServervalue,modeattribute,233StateServervalue,modeattribute,232timeoutsetting,231cookies,221disablingsessionstatemanagement,232losingsessionstate,223parametertypes,555performance,222scalability,226security,221sessiontracking,222statemanagementoptionscompared,238tracinginformation,274webfarms,287SessionStateicon,IISManager,303sessiontracking,222SessionIDproperty,HttpSessionStateclass,223SessionParametercontrol,555sessionStatetagcookielessattribute,227customProviderattribute,234modeattribute,231sessionstateconfiguration,227,231sqlCommandTimeoutattribute,234sqlConnectionStringattribute,233stateConnectionStringattribute,232stateNetworkTimeoutattribute,232timeoutattribute,231Session_Endevent,154Session_Startevent,154936INDEXsetaccessoraddingpropertiesto.
NETclasses,54,56SetNextStatementcommand,116SetActiveViewmethod,MultiViewcontrol,358SetAttributemethod,XmlElementclass,654,657SetAttributesmethod,Fileclass,609SetAuthCookiemethod,FormsAuthenticationclass,695SetCurrentDirectorymethod,Directoryclass,609SetPropertyValuemethod,ProfileBaseclass,761Setuplog,Windows,255sharedassemblies,305Sharedkeyword,72sharedmembers,51,72–73creatingsharedpropertiesormethods,72fileanddirectoryaccess,606sharedmethods,29,790Shortdatatype,22,573shorthandassignmentoperators,28ShowNextStatementcommand,116ShowCheckBoxesproperty,TreeViewcontrol,458ShowDayHeaderproperty,Calendarcontrol,350ShowDeleteButtonproperty,CommandFieldclass,583ShowDirectoriesInmethod,620ShowEditButtonproperty,CommandFieldclass,582,594ShowExpandCollapseproperty,TreeViewcontrol,458ShowFilesInmethod,620ShowGridLinesproperty,Calendarcontrol,350ShowHeaderproperty,DetailsViewcontrol,600ShowLinesproperty,TreeViewcontrol,458ShowMessageBoxproperty,ValidationSummarycontrol,328ShowNavigationControlsproperty,431ShowNextPrevMonthproperty,Calendarcontrol,350ShowSelectButtonproperty,CommandFieldclass,582ShowSelectButtonproperty,GridViewcontrol,578ShowStartingNodeproperty,SiteMapDataSourcecontrol,442,443ShowSummaryproperty,ValidationSummarycontrol,328ShowTitleproperty,Calendarcontrol,350ShowToolTipsproperty,SiteMapPathcontrol,452sidebysideexecution,15SideBarButtonClickevent,Wizardcontrol,365SideBarButtonStyleproperty,Wizardcontrol,366SideBarStyleproperty,Wizardcontrol,366signaturesdelegates,45methodoverloading,44SignOutmethod,FormsAuthenticationclass,695simpledatabindingseesingle-valuedatabindingsimulatedprogressbarprogressnotificationusingAjax,857–859Singledatatype,22,66single-stepdebugging,VisualStudio,114–116single-valuedatabinding,526,527–532codefragmentation,531determininguser'sbrowser,529problemswith,531–532settingcontrolproperties,530simpledatabindingwithproperties,530–531templates,532usingcodeinsteadof,532SingleBitPerPixelGridFitvalue,TextRenderingHintproperty,391SingleLinevalue,TextBoxcontrol,165sitemaps,433–450ASP.
NETnavigationwith,434bindingmasterpageto,440–442bindingpagesto,439–440bindingportionsof,442–447937INDEXFinditfasterathttp://superindex.
apress.
comcasesensitivityofURLin,439changingappearanceofnavigationalcontrols,434defining,434–438example,438–439hidingrootnode,442mappingURLs,450nodeswithduplicateURLs,438retrievinginformationfrom,448retrievinginformationfromXMLfile,434rootnode,437showingsubtrees,443–446usingdifferentsitemapsinsamefile,447SiteMapclass,447–449CurrentNodeproperty,448definingsitemaps,434Providerproperty,448RootNodeproperty,448siteMapelement,435,436,437SiteMapDataSourceclass,548SiteMapDataSourcecontrolbindingmasterpagetositemap,440bindingnavigationalcontrols,445bindingpagestositemaps,439changingappearanceofnavigationalcontrols,434defaulttree,443definingsitemaps,434properties,443,444showingsubtreesofsitemaps,443–446ShowStartingNodeproperty,442,443StartFromCurrentNodeproperty,443,445StartingNodeOffsetproperty,444,445,446StartingNodeUrlproperty,443,447siteMapFileattribute,447SiteMapNodeclass,448siteMapNodeelement,435–438SiteMapPathcontrol,451–455addingcustomsitemapinformation,454–455CurrentNodeTemplateproperty,453,454customizing,451–452description,439Evalmethod,453NodeTemplateproperty,454,455PathSeparatorTemplateproperty,453properties,452RootNodeTemplateproperty,453stylesandtemplates,452–454SiteMapProviderclass,438,448sizedetailscontroltagsinskinfile,414Sizeproperty,FontInfoclass,171SkinIDproperty,controlsapplyingthemesdynamically,415seeingthemeeffects,410uniquenessofSkinID,413skinscontroltagsinskinfile,413–414creatingmultipleskinsforsamecontrol,412–413imagesaspartoftheme,414–415themesandskins,408SlideShowExtendercontrol,Ajax,874slidingExpirationparameterInsertmethod,Cacheclass,820,821smarts,358SmoothingModeproperty,Graphicsclass,390socialsecuritynumber,regularexpressionfor,335SolutionExplorercreatingwebsiteswithVisualStudio,87–88debuggingwithVisualStudio,112solutionfilescreatingwebsiteswithVisualStudio,86–87Sortmethod,Arrayclass,37Sortedevent,GridViewcontrol,586SortExpressionproperty,BoundFieldclass,570,584sortingGridViewcontrol,584–587sortingandselectingatsametime,586–587SqlDataSourcecontrol,585sourcecodefilesApp_Codedirectory,124938INDEXSourceEditingtoolbar,HTML,111Sourceproperty,Exceptionclass,242sourceview,VisualStudio,91addingHTML,96addingwebcontrols,92Sourceview,webpagedesigner,528spanelement,102applyingstylesheetrules,407relatedwebcontrolclass,164specialcharacters,151encodingtextcontaining,151–152URLencoding,218Splitmethod,Stringclass,33splitview,VisualStudio,91SQL(StructuredQueryLanguage),478–486aggregatefunctions,483case-sensitivity,482dates,482DELETEstatement,486FROMclause,481INSERTstatement,485LIKEoperator,482onlinetutorials,479ORDERBYclause,481,482parameterizedcommands,510runningqueriesinVisualStudio,479–480SELECTstatement,480squarebracketsinqueries,482UPDATEstatement,483–484usingwithADO.
NET,479WHEREclause,481,482SQLExpressusingfullversionofSQLServer,543SQLinjectionattacks,509validatinguserinput,321SQLServercreatingconnectioninVisualStudio,475dataprovider,486databaseconfiguration,474membershipusingfullversionof,717–719obtainingsampledatabases,474sqlcmdtool,477tousefullversion,543userinstanceconnections,495usingprofileswith,758–759SQLServer2000cachedependencies,832–836cacheinvalidation,832,833,835notificationswith,832–835SQLServer2005Expressmembership,715–716profiles,757role-basedsecurity,746SQLServer2005/2008cachedependencies,836–840cacheinvalidation,836cachenotifications,840enablingServiceBroker,838initializingcachingservice,839notifications,837SQLServerauthentication,494SQLServerdataprovider,487objects,490parameterizedcommands,510SQLServerExpresscreatingconnectioninVisualStudio,475,476creatingdatabaseconnections,493downloading,474learningessentialdatabaseconcepts,473ServerExplorerwindow,VisualStudio,476sqlcmdtool,477userinstanceconnections,495SQLServerManagementStudio,475SQLstatementsCommandobjectsrepresenting,499security,509–511sqlCacheDependencyelement,web.
configfile,835SqlCacheDependencypropertydatasourcecontrolcaching,826OutputCachedirective,836SqlClientnamespace,System.
Data,489sqlcmdtool,477–478SqlCommandclassseecommandclassessqlCommandTimeoutattribute,sessionStatetag,234939INDEXFinditfasterathttp://superindex.
apress.
comSqlConnectionclassseeconnectionclassessqlConnectionStringattribute,sessionStatetag,233SqlDataAdapterclassseedataadapterclassesSqlDataReaderclassseedatareaderclassesSqlDataSourcecontrol,548,549–550automaticcachingsupport,552cachingproperties,826cachingwith,826–829choosingDataSetorDataReader,552ConflictDetectionproperty,562connectionstrings,550ConnectionStringproperty,551creatingcachedependency,836DataSourceModeproperty,585DeleteCommandproperty,559,583editingGridViewtemplatewithvalidation,597editingwithGridViewtemplate,595EnableCachingproperty,552eventsforsettingparametervalues,558handlingerrors,558–559InsertCommandproperty,559OldValuesParameterFormatStringproperty,562parameterizedcommands,553–558properties,551SelectCommandproperty,559selectingrecords,551sortingwith,585Updatemethod,583UpdateCommandproperty,559,560UpdateParameterscollection,560,583updatingrecords,559–563usingObjectDataSourceinstead,802usingwithDataViewcontrol,567SqlDataSourceStatusEventArgsclassAffectedRowsproperty,562Exceptionproperty,559ExceptionHandledproperty,559SqlDependencyclassStartmethod,839SqlExceptionclass"Mustdeclarethescalarvariable.
.
.
",582overlappingexceptionhandlers,248SQLEXPRESSinstancemembershipwithSQLServer2005Express,715SqlMembershipProviderclass,721SqlProfileProviderclass,756–775anonymousprofiles,773–775definingprofileproperties,760–761enablingauthentication,757ProfileAPI,770–773profiledatabase,759–760profilegroups,765profileserialization,763–765profilesandcustomdatatypes,766–770standardprofileserialization,755usingprofileproperties,761–763usingprofileswithSQLServer2005Express,757SQLServermode,webfarms,287SqlServervaluemodeattribute,sessionStatetag,232,233SqlTypesnamespace,System.
Data,489srcattribute,imgelement,103Srcdirective,371SSL(SecureSocketsLayer),708–711creatingcertificaterequest,708–710StackTraceproperty,Exceptionclass,242Startmethod,SqlDependencyclass,839StartPage,VisualStudio,82StartFromCurrentNodeproperty,SiteMapDataSourcecontrol,443,445StartingNodeOffsetproperty,SiteMapDataSourcecontrol,444,445,446StartingNodeUrlproperty,SiteMapDataSourcecontrol,443,447StartNextButtonStyleproperty,Wizardcontrol,366StartsWithmethod,Stringclass,33stateapplicationstate,235–236component-basedprogramming,790–793cookielessstatelimitations,229cookies,219–221databaseaccesswithwebapplications,473hiddentype,inputelement,129940INDEXHTMLservercontrols,125problemofstateforwebapplications,201sessionstate,221–235configuration,web.
configfile,227–235sessiontracking,222statefulAccountclassexample,791–792statefulorstatelessdesign,790,791statelessAccountUtilityclassexample,792–793transferringinformationbetweenpages,209–218cross-pagepostbacks,209–214querystrings,214–218URLencoding,218usinginstanceorsharedmethods,790usingstatefulandstatefulclassestogether,793viewstate,128–129,202–208example,202–203makingviewstatesecure,203–205retainingmembervariables,205–207storingcustomobjectsin,207–208ViewStatecollection,202statemanagementdisablingsessionstatemanagement,232optionscompared,237–238profiles,753,754StateBagcollectionclass,202stateConnectionStringattribute,sessionStatetag,232stateNetworkTimeoutattribute,sessionStatetag,232StateServermode,webfarms,287StateServervaluemodeattribute,sessionStatetag,232staticmethodsstatelessAccountUtilityclassexample,792staticstyles,Menucontrol,464StaticXyzproperties,Menucontrol,464StepInto/Out/Overcommands,breakmode,116StepNextButtonXyzproperties,Wizardcontrol,366StepPreviousButtonStyleproperty,Wizardcontrol,366StepStyleproperty,Wizardcontrol,366StepTypeproperty,WizardStepcontrol,362storagelocationsstatemanagementoptionscompared,237,238storedprocedures,793storinginformationapplicationstate,235–236cookies,219–221problemofstateforwebapplications,201profiles,755–756sessionstate,221–235transferringinformationbetweenpages,209–218cross-pagepostbacks,209–214querystrings,214–218viewstate,202–208StreamclassSeekmethod,624StreamReaderclassreadingflatfiles,620ReadLinemethod,622streamsreadingandwritingwithstreams,620–631binaryfiles,623–624guestbookexample,625–631quickfileaccessmethods,624–625textfiles,620–622seekablestreams,389StreamWriterclassFlushmethod,621WriteLinemethod,621writingflatfiles,620Strikeoutproperty,FontInfoclass,171Stringclassassignmentoperations,66equalityoperations,66methods,32,33natureandbehaviorofdatatypes,66properties,33Stringtype/class,22,32–33datatypesbehavingasvaluetypes,66941INDEXFinditfasterathttp://superindex.
apress.
comStringvalue,serializeAsattribute,764StringBuilderclasscreatinglistoffilesindirectory,612retrievingloginformation,264stringsconcatenationoperator(&),28drawingstringoftextwithGraphicsclass,384zero-basedcounting,32strongelement,101strongtyping,20stronglytypedcollectionsrepeated-valuedatabinding,535structurederrorhandling,20structuredexceptionhandling,241StructuredQueryLanguageseeSQLstructures,.
NETtypes,65styleattribute,CSS,142styleattribute,divtag,143stylebuilder,395–400Stylecollection,142,143styleinheritance,402stylepropertiesinheritedandoverridden,402Logincontrol,734,735Styleproperty,HtmlControlclass,147stylesheetsseealsoCSSapplyingstylesheetrules,405–407creating,403–405externalstylesheets,394formattinginXHTML,103internalstylesheets,394navigating,405selectors,405traceinformation,272XSLT(XSLTransformations),666styles,393,394–407seealsoCSSaddingastyletoadiv,396attributes,HTMLandXHTML,103CSSPropertieswindow,400–401formattingGridViewusing,573–576formattingproperties,395inheritance,396inheritedstyles,402inlinestyles,394–400limitationsinASP.
NET,393Menucontrol,464–465modifyinginVisualStudio,400–401NewStyledialogbox,397SiteMapPathcontrol,452–454stylecategories,397themesand,393,407TreeViewcontrol,458–462types,394stylesheetelement,xsl,667StyleSheetThemeattribute,Pagedirective,411,412StyleSheetThemeproperty,Pageclass,415Subkeyword,42subdirectoriesvirtualdirectoriesallowingaccessto,300submenusMenu/TreeViewcontrolscompared,463submittype,inputelementcurrencyconverterexample,133HTMLservercontrolclassfor,130relatedwebcontrolclasses,164subroutines,42Substringmethod,Stringclass,32,33Subtractmethod,DateTimeclass,35Subtractmethod,TimeSpanclass,34,35subtractionoperator,28subtreesshowingsubtreesofsitemaps,443–446SUMfunction,SQL,483SwitchViewByIDcommandname,MultiViewcontrol,359SwitchViewByIndexcommandname,MultiViewcontrol,359Systemlog,Windows,255System.
Collections.
Genericnamespace,78System.
Datanamespace,489system.
webelement,web.
configfile,156,288System.
Web.
UI.
WebControlsnamespace,166942INDEXSystem.
Xmlnamespace,642–659System.
Xml.
Schemanamespace,663SystemOperatorrole,702TTabContainercontrol,Ajax,874TabIndexproperty,WebControlclass,168Tablecategorystylesettings,NewStyledialogbox,398Tablecontrol,178–183aspxcodecreating,180fully-featuredobjects,183generatingtabledynamically,180,181underlyingHTMLelement,165tableelement,102HTMLservercontrolclassfor,130HTMLtables,426relatedwebcontrolclasses,165table-basedlayoutsformasterpages,426–429TableCellclassdynamicallycreatingtable,181fully-featuredobjects,183Tablecontrolcontaining,178TableCellcontrol,182underlyingHTMLelement,165TableRowclassdynamicallycreatingtable,181fully-featuredobjects,183Tablecontrolcontaining,178TableRowcontrolunderlyingHTMLelement,165tablesgeneratingtabledynamically,178,180tables,HTML,426,428TableTestclasseventhandling,181tagprefixescreatingusercontrols,371TagNameproperty,HtmlControlclass,147tagsseealsoHTMLelements;XMLelementselementsand,100HTMLdocument,4webcontroltags,165–166TargetControlIDproperty,AutoCompleteExtendercontrol,870TargetSiteproperty,Exceptionclass,242tdelement,102,428HTMLservercontrolclassfor,130HTMLtables,426,427,428relatedwebcontrolclass,165TemplateFieldclass,589,591GridViewcontrolcolumntype,568templatesFormViewtemplatemodel,601GridViewcontrol,589–598editingwithGridViewtemplate,594–598handlingeventsinGridViewtemplate,593Menucontrol,465–468Menu/TreeViewcontrolscompared,463multipletemplates,591–592single-valuedatabinding,532SiteMapPathcontrol,452–454templatesnotsupportedbynavigationcontrols,455UpdatePanelcontrol,848Wizardcontrol,367terminatinglines,29testcertificates,SSL,710testingcachingtest,821–822component-basedprogramming,780disablingcachingwhiletesting,813testingnew.
NETclasses,61–63textbox,HTML,163textfilesreadingandwritingwithstreams,620–622guestbookexample,625–631TextpropertyLabelcontrol,264,529ListItemcontrol,174MenuItemclass,465TableCellcontrol,182texttype,inputelement,131,133relatedwebcontrolclasses,164textareaelement,131relatedwebcontrolclasses,164943INDEXFinditfasterathttp://superindex.
apress.
comTextBoxcontrolAccessKeyproperty,173aspxcodecreating,180Bindmethod,594consolidatingHTMLtextboxelements,163eventsandpostbacks,185howvalidationworks,325properties,165TextChangedevent,770underlyingHTMLelement,164usingAutoCompleteExtendercontrol,869TextBoxStyleproperty,Logincontrol,735TextBoxWatermarkcontrol,Ajax,874TextChangedeventcapturingchangeeventimmediately,185TextBoxclass,770webcontrols,183,185TextModeproperty,TextBoxcontrolclass,165TextRenderingHintproperty,Graphicsclass,391thelement,130relatedwebcontrolclass,165Thawtecertificateauthority,708Themeattribute,Pagedirective,409,411,412Themeproperty,Pageclass,415themes,407–415applyingthemes,409–410applyingthemesdynamically,415applyingtoentirewebsite,412App_Themesdirectory,124configuringcontrolproperties,407controltagsinskinfile,413–414creatingmultipleskinsforsamecontrol,412–413defaultthemes,410description,393globalthemes,409handlingcontrol/themeconflicts,410–411imagesaspartoftheme,414–415localthemes,409skinsand,408stylesand,393,407thinclients,9third-partylanguagesand.
NET,19thread-safety,820three-tierdesign,780–782Throwstatement,250throwingexceptions,250–253Tickevent,Timercontrolraising,862Ticketproperty,FormsIdentityclass,698ticks,22timeprogressnotificationusingAjax,857refreshingtimewithpartialupdate,846–849timedrefreshesusingAjax,861–863timeoutsettingsessionstateconfiguration,231timedatatypes,573timeoutattributeformsauthenticationsettings,687sessionStatetag,231Timeoutproperty,HttpSessionStateclass,223Timercontrol,Ajax,861–863TimeSpantype/class,22,33–35arithmeticoperators,34natureandbehaviorofdatatypes,66propertiesandmethods,35timestamps,concurrencychecking,563Titleattribute,Pagedirective,420titleelementHTMLservercontrolclassfor,131Titleproperty,WizardStepcontrol,362TitleFormatproperty,Calendarcontrol,350TitleStyleproperty,Calendarcontrol,346TitleTextproperty,Logincontrol,736TitleTextStyleproperty,Logincontrol,735ToLowermethod,Stringclass,33ToUppermethod,Stringclass,33Todayproperty,DateTimeclass,34TodayDayStyleproperty,Calendarcontrol,346TodaysDateproperty,Calendarcontrol,347,350944INDEXToolboxaddingASP.
NETAJAXControlToolkit,865stoppingToolboxhidingitself,91ToolTipproperty,WebControlclass,168tooltips,VisualStudio,109TOPclause,SQL,482ToStringmethodDateTimeclass,35eventhandlers,135object-basedmanipulation,31TimeSpanclass,35TotalFreeSpaceproperty,DriveInfoclass,616TotalSizeproperty,DriveInfoclass,616TotalXyzproperties,TimeSpanclass,35ToUppermethod,Stringclass,32trelement,102HTMLservercontrolclassfor,130HTMLtables,426relatedwebcontrolclass,165TraceclassTraceModeproperty,280traceinformation,273,276–280Traceobject,277enablingpagetracing,270TraceModeattribute,Pagedirective,280TraceModeproperty,Traceclass,280tracingseepagetracingTransactionCountvariable,Pageclass,527,529Transfermethod,Serverclass,450Transfermethod,HttpServerUtilityclass,150Transformmethod,XslCompiledTransformclass,666transformations,XSL,666–670TransitionDurationproperty,Accordioncontrol,869TreeNodeDataBoundevent,455TreeNodeStyleclass,458TreeViewcontrol,455–462applyingstylestonodelevels,461–462applyingstylestonodetypes,460–461AutoFormatfeature,462AutomaticallyGenerateDataBindingsproperty,674bindingmasterpagetositemap,441bindingnavigationalcontrols,445choosingpredefinedsetofnodeicons,456comparedtoMenucontrol,463creatingmapping,674DataMemberproperty,674description,439,440differentlooksfortreeviews,457hierarchicalbinding,673–675ImageSetproperty,456,458LevelStylescollection,461MaxDataBindDepthproperty,446nodespacing,459NodeIndentproperty,456,458,459NodeStyleproperty,460properties,456–458resolvinglimitationsofXmlDataSourceclass,673styleproperties,460styles,458–462table-basedlayoutsformasterpages,428,429Visibleproperty,431TreeViewImageSetenumeration,456,457triggerscontrollingpartialrefresheswith,852–857Timercontrol,862Trimmethod,Stringclass,32,33TrimEndmethod,Stringclass,33TrimStartmethod,Stringclass,33troubleshootingcomponent-basedprogramming,780Try.
.
.
Catch.
.
.
FinallyblocksCatchblock,245catchingspecificexceptions,245–246creatinglistoffilesindirectory,613dataretrievalusingADO.
NET,503databaseconnections,492determiningwhichexceptionstocatch,246Finallyblock,245nestedexceptionhandlers,246noactiveexceptionhandlerexists,248structuredexceptionhandling,244–245945INDEXFinditfasterathttp://superindex.
apress.
comtestingdatabaseconnections,497testingoccurrenceofexceptions,249tipsforexceptionhandling,249Usingstatementsasalternative,498TryCastmethod,cross-pagepostbacks,211typeattribute,addtagconfiguringmembershipprovider,721profileproperties,761typeattribute,inputelement,127typeconversions,30–31classicVisualBasickeywordsfor,31explicittypeconversions,30implicittypeconversions,30narrowingconversions,30OptionStrictinstruction,30,31wideningconversions,30Typeproperty,HtmlInputControlclass,148TypeConverterclass,198TypeNameproperty,ObjectDataSourcecontrol,803TypeOfkeyword,74types.
NETtypes,65–66referencetypes,63–66valuetypes,63–66typingstrongtyping,20Uuelement,101,103ulelement,102,165Underlineproperty,FontInfoclass,171underlinedelement,101unhandledapplicationerrorApplication_Errorevent,154ASP.
NETerrorbehavior,267Unittype,168–169UnitTypeenumeration,169Unloadevent,Pageclasschangingprofiledata,754pagelifecycle,188retainingmembervariablesusingviewstate,207Unlockmethod,Applicationstatecollection,236UnlockUsermethod,MembershipUserclass,727,731unorderedlistelement,102Untilkeyword,Do.
.
.
Loopblock,41UpdatemethodSqlDataSourceclass,583statefulAccountclassexample,791UpdatePanelcontrol,852UPDATEstatement,SQL,483–484commandobjectrepresenting,505,511–513Updatemethod,Wizardcontrol,365UpdateCommandpropertydataadapterclasses,517SqlDataSourcecontrol,551,559,560UpdateCommandTypeproperty,SqlDataSourceclass,551Updated/Updatingeventspagelifecycle,549SqlDataSourcecontrol,558,559UpdateFailedExceptionclass,243UpdateMethodproperty,ObjectDataSourcecontrol,804UpdateModeproperty,UpdatePanelcontrol,851UpdatePanelcontrol,Ajax,845–857browsernotsupportingAjax,846conditionalupdates,851–852ContentTemplateelement,848controllingrefresheswithtriggers,852–857controlsthatcan'tbeusedin,851dynamicallyaddingcontrolsto,848errorhandling,849–851inheritance,847linkingUpdateProgresscontrolto,859refreshinglabelwithpartialupdate,846–849rendering,848renderingHTML,848responsetimeandbandwidthused,849stylesettingsupport,847946INDEXUpdatemethod,852UpdateModeproperty,851updatesinterruptingupdates,852updateswithmultipleUpdatePanelcontrols,851–852useoftemplates,848visibilityof,847UpdateParameterscollection,SqlDataSourceclass,560,583UpdateProgresscontrol,Ajax,857–861AssociatedUpdatePanelIDproperty,859cancelbutton,859–861linkingtoUpdatePanelcontrol,859simulatedprogressbar,857–859UpdateUsermethod,Membershipclass,727creatinguserswithMembershipclass,725disabledaccounts,731usingMembershipUserclass,727updatingrecordsdatasourcecontrols,559–563uploadsallowingfileuploads,631–634FileUploadcontrol,631maximumsizeoffileuploads,634URIs(UniversalResourceIdentifiers),660URLencoding,218UrlDecodemethod,HttpServerUtilityclass,152,218UrlEncodemethod,HttpServerUtilityclass,152,218urlMappingssection,web.
configfile,450URLs(UniversalResourceLocators)casesensitivityofURLinsitemap,439friendlyURLs,450GetRedirectUrlmethod,695loopbackalias,286mappingURLs,450mungedURL,228querystringstransferringinformationin,152,214–218sessiontracking,222sitemapnodeswithduplicateURLs,438specialcharactersin,218UseCookiesvalue,HttpCookieModeenumeration,227UseDeviceProfilevalue,HttpCookieModeenumeration,228userauthentication,149UserclassIdentityproperty,697,698,705IsInRolemethod,697,699,749,750usercontrols,369–382ASP.
NETfiletypedescribing,123creating,370–372independentusercontrols,372–374integratedusercontrols,375–377passinginformationwithevents,379–382requesting,369usercontrolevents,377–379webformscompared,369userinput,321userinstanceconnectionsdataaccess,ADO.
NET,495–496SQLServer,495UserInstancesproperty,connectionstrings,495userinterfacethree-tierdesign,780webcontrols,benefitsof,163userinterfacecodeproblemswithsingle-valuedatabinding,531Userproperty,Pageclass,149retrievinguseridentity,697userrecordmanagement,713membershipdatastore,714–731Userrole,702UserControlclassinheritance,369inheritancechain,370Loadevent,375UserNameproperty,Logincontrol,734UserNameproperty,ProfileInfoclass,771UserNameLabelTextproperty,Logincontrol,736UsernameRequiredErrorMessageproperty,Logincontrol,736947INDEXFinditfasterathttp://superindex.
apress.
comusersaspnet_Userstable,759assigningrolesusingWAT,747authorizationrulescontrollingaccess,690–691creatingwithCreateUserWizard,738–743creatingwithMembershipclass,724–726creatingwithWAT,723–724displayingfulllistof,772examininggroupmembership,701multipleauthorizationrulesfor,688registeringwithLogincontrol,735restrictingaccessbasedonroles,750restrictinganonymoususeraccess,687usingfileswithwebapplications,605UserTypeenumeration,27UseUrivalue,HttpCookieModeenumeration,227Usingstatementsclosingdatabaseconnections,498–499VValidatemethod,Pageclass,330ValidateEmptyTextproperty,CustomValidatorcontrol,339ValidateUsermethod,Membershipclass,727,730validation,321–323automaticvalidation,323CausesValidationproperty,323CheckBoxcontrols,339client-sidevalidation,323configuringleveloferrorchecking,111displayingallerrormessagesforpage,327editingGridViewtemplateswith,595–597howvalidationworks,325–327KeyPressevent,322listcontrols,339manualvalidation,329–331RadioButtoncontrols,339replacingcustomvalidationwithregularexpressions,338securitycookie,687server-sidevalidation,323usingregularexpressions,331–335validatedwebforms,335–339validationgroups,340viewstateandwebfarms,288webapplications,322XMLvalidation,659–666validationcontrols,321,322,324–340BaseValidatorclass,324classes,322CompareValidatorcontrol,322ControlToValidateproperty,324,331CustomValidatorcontrol,322Displayproperty,324,327EnableClientScriptproperty,324,329Enabledproperty,324ErrorMessageproperty,324,330ForeColorproperty,324hidingerrormessages,324,327indicatinginvalidinputtouser,327IsValidproperty,324Logincontrol,733RangeValidatorcontrol,322RegularExpressionValidatorcontrol,322,331–335RequiredFieldValidatorcontrol,322usingmultiplevalidationcontrols,322validatedwebformexample,335–339validationgroups,340ValidationGroupproperty,340ValidationSummarycontrol,322,327–329ValidationEventArgsclass,665ValidationEventHandlerevent,XmlReaderSettingsclass,665ValidationGroupproperty,validationcontrols,340ValidationSummarycontrol,327–329description,322DisplayModeproperty,328ForeColorproperty,328HeaderTextproperty,328indicatinginvalidinputtouser,327,328ShowMessageBoxproperty,328ShowSummaryproperty,328ValidationTypeproperty,XmlReaderSettingsclass,663948INDEXvalidators,321,340seealsovalidationcontrolsValidatorTextStyleproperty,Logincontrol,735valueattribute,HTMLselectelement,139,140Valueproperty,HtmlInputControlclass,148Valueproperty,ListItemcontrol,174valuetypes,63–66assignmentoperations,63datatypesbehavingas,66equalitytesting,64passingparametersbyvalue,64structures,65value-ofcommandelement,xsl,668values,enumerations,26–28variableoperations,28–31advancedmath,29arithmeticoperators,28typeconversions,30–31variablewatchwindowsVisualStudiodebugging,117–118variables,21–28arrays,24–26block-levelscope,40castingobjectvariables,73–75datatypeprefixes,23delegatevariables,45,46initializationandassignment,23–24trackingvariables,117VaryByCustomattribute,OutputCachedirective,817VaryByHeaderattribute,OutputCachedirective,818VaryByParamattribute,OutputCachedirective,814,815,816VBaccessibilitykeywords,52arrays,24–26C#,VBand.
NETlanguages,11choosingbetween.
NETlanguages,19conditionallogic,37–39If.
.
.
EndIfblocks,38SelectCaseblock,38–39delegates,45–46enumerations,26–28evolutionofVisualBasic,20loopstructures,39–42Do.
.
.
Loopblock,41–42For.
.
.
Nextblock,39–40ForEachblock,40–41methodoverloading,44–45methods,42,46.
NETdatatypes,22object-basedmanipulation,31–37Arraytype/class,36–37DateTimetype/class,33–35Stringtype/class,32–33TimeSpantype/class,33–35overviewofVB2008language,19parameters,43–44variableinitializationandassignment,23–24operations,28–31advancedmath,29typeconversions,30–31variablesanddatatypes,21–28VBlanguageenhancements,20vbfiles,123VBScript,187evolutionofVisualBasic,20Verisigncertificateauthority,708verticallayoutMenu/TreeViewcontrolscompared,463VerticalPaddingproperty,TreeNodeStyleclass,458viewstate,128–129,202–208EnableViewStateproperty,Pageclass,149encryptionofviewstatedata,203,204,205makingviewstatesecure,20–205retainingmembervariables,20–207retrievingvalues,202statemanagementoptions,237storingcustomobjectsin,207–208ViewStatecollection,202webcontrols,202webfarms,287,288ViewChangedevents,LoginViewcontrol,751ViewChangingevents,LoginViewcontrol,751949INDEXFinditfasterathttp://superindex.
apress.
comviewspageswithmultipleviews,354–355ViewStatecollection,202ViewStateproperty,Pageclass,202ViewStateEncryptionModeproperty,Pagedirective,204virtualdirectoriesaccessingsubdirectories,300ASP.
NETconfiguration,302–304configuring,300–304creating,298–300creatingfornewproject,312–314customerrorpages,301–302description,121,122,123,285managingwebsiteswithIISManager,296removing,299settingdefaultpage,300–301Windowsauthentication,699VisiblepropertyBoundFieldclass,570Controlclass,354HtmlControlclass,147TreeViewcontrol,431WebControlclass,168VisibleDateproperty,Calendarcontrol,350VisibleMonthChangedevent,Calendarcontrol,348,350VisibleWhenLoggedInproperty,Logincontrol,737VisualBasicseeVBVisualStudio,16–17addingeventhandlers,106–108addingreferencestocomponents,786,788addingwebcontrols,91–93addingwebforms,89applyingstylesheetrules,406applyingthemes,409–410AutoCorrect,111–112automateddeployment,86automaticcoloringofcode,112automaticformattingofcode,112Autoswindow,118benefits,82breakpoints,114,117browsingandmodifyingdatabasesin,475–477ByValkeyword,43,64code-behindclass,106compilingcomponents,784configuringleveloferrorchecking,111configuringwebcontrolsinPropertieswindow,94–95ConversionWizard,90copyingwebsitetoremotewebserver,314–317creatingcomponents,783creatingcontentpagesbasedonmasterpage,417–419creatingdatabaseconnection,475creatingdatabase,476creatingmasterpage,417creatingstylesheets,403,404creatingusercontrols,370–372creatingvirtualdirectoryfornewproject,312–314creatingwebsites,82–90debugging,112–118debuggingcomponents,800debuggingtools,270deployingwebapplications,311–318description,9designingwebpages,91–95displayinginheritedstyles,402editingGridViewtemplatesin,592ErrorListwindow,111errorunderlining,110–111eventhandling,134executingupdatequery,484generatingcolumnswithGridViewcontrol,570–571gridlayoutfeature,93Helpreference,67highlightedwebpagecode,96IntelliSense,108–112introduction,81Localswindow,118memberlist,109–110950INDEXmigratingwebsitefrompreviousversion,89–90modifyingstylesinVisualStudio,400–401multitargeting,84NewWebSitedialogbox,83,84outlining,108–109projectfiles,85projectlessdevelopment,85publishingwebsite,317–318runningSQLqueriesin,479–480side-by-sideregionsforsplitview,91SolutionExplorer,87–88solutionfiles,86–87StartPage,82testingusing,699tooltips,109trackingvariables,117userinstancedatabases,496viewsof.
aspxpage,91Watchwindow,118webprojects,86writingcode,105–112VisualStudiowebserverASP.
NETsecuritymodel,683retrievingfilelistingofallfilesinwebsite,114VolumeLabelproperty,DriveInfoclass,616W\Wregularexpressioncharacter,334WAN(wideareanetwork),285Warnmethod,Traceobject,277WAT(WebsiteAdministrationTool),159–160creatinguserswith,723–724ManageAccessRuleslink,749role-basedsecurity,746–748Securitytab,692,694settingupformsauthenticationusing,691–694settingupWindowsauthenticationusing,699Watchwindow,VisualStudio,118webapplicationsseealsoASP.
NETapplicationsaspnet_Applicationstable,759benefitsusingfileswith,606creatingwithVisualStudio,83–85databaseaccesswith,473–474databaseconcurrency,473deployingASP.
NETwebsite,288deploying,304–311additionalconfigurationsteps,305–306ASPNET/networkserviceaccounts,307–308codecompilation,306–307usingcustomcomponents,305deployingwithVisualStudio,311–318copyingwebsitetoremotewebserver,314–317creatingvirtualdirectoryfornewproject,312–314publishingwebsite,317–318fileaccess,605limitationsusingfileswith,605problemofstatefor,201representingrootfolderof,436scalability,473scalabilityandsessionstate,222securitydeterminingsecurityrequirements,679–680formsauthentication,685–699Windowsauthentication,699–706state,473testingusingVisualStudio,699trackingvariables,117validation,322web.
configfile,155webbrowsersAjaxand,842,843clientsidecaching,813creatingfilebrowser,616–620dealingwithnon-HTMLinwebforms,97interpretingtextcontainingspecialcharacters,151webcontrolclasses,164–174webcontrolevents,191webcontroltags,165–166asp:prefix,165nameattribute,165951INDEXFinditfasterathttp://superindex.
apress.
comrunat="server"attribute,165trackingcontrolinHTMLreturned,165webcontrols,125,163–166adaptiverendering,164AdRotatorcontrol,351–354applyingstylesheetrules,407ASP.
NETtags,165–166automaticpostback,184AutoPostBackproperty,185Calendarcontrol,343–350classes,164–174Colorproperty,170configuringinPropertieswindow,94–95defaultbutton,173designingwebpageswithVisualStudio,91–93enumerations,169events,185,183–188,191Focusmethod,172–173Fontproperty,170–172greetingcardgeneratorexample,191–200HTMLelementsunderlying,164HTMLservercontrolscompared,163inheritance,166listcontrols,174–178MultiViewcontrol,355–359pagelifecycle,188–191prefixes,174propertiesandmeasurements,168–169reasonsforusing,163rendering,100resizing,92servercodereactingimmediatelytoevents,183Tablecontrol,178–183Unittype,168–169usercontrolevents,377viewstate,202visibility,168WebControlclass,167–168Wizardcontrol,360–367workingsof,63webdevelopmentclient-sideprogramming,7–9evolutionof,3–9HTMLandHTMLforms,3–6server-sideprogramming,6–7webfarms,287–288sessionstateconfiguration,231WebFormcontrols,343webformdesigner,82webformsseewebpageswebhostingcompanies,285,305webmethodsAutoCompleteExtendercontrolusing,870GetNameswebmethod,870webpagesabsolutepositioning,93addingwebcontrols,91–93configuringinPropertieswindow,94–95ASP.
NETapplications,121ASP.
NETfiletypedescribing,123bindingpagestositemaps,439–440codestructurewithcomponents,780completeXHTMLwebpage,104–105componentsandstructureofwebform,95–105doctype,97–99Pagedirective,97webformmarkup,96–97XHTMLessentials,99–105convertingHTMLpagetoASP.
NETpage,126–128creatingcode-freewebpages,803creatingwebsiteswithVisualStudio,88–89cross-pagepostbacks,209–214dealingwithnon-HTMLinwebforms,97defaultbuttonon,173defaultcontent,424–425designingwithVisualStudio,91–95displayingfulllistofusersin,772DOCUMENTobject,95embeddingdynamicgraphics,387events,132focusedcontrolafterrendering,172greetingcardgeneratorexample,191–200groupingportionsof,105indicatingtypeofmarkup,97inheritance,148952INDEXinsertingformattedtextinto,132isolationfromdatabase,782masterpages,415–431bindingtositemap,440–442creating,416–417creatingcontentpagesbased,417–419table-basedlayoutsfor,426–429multipleviews,354–355orderofeventsinpageprocessing,183,184pagelifecycle,188–191partialrefreshesusingAjax,845–857placingcustomimagesin,387–388progressnotificationusingAjax,857–861querystringstransferringinformationinURLs,214–218redirectingusertonewwebpage,150–151referenceto,168reusingheadersandfootersin,371reusingwebpagemarkup,369stackingpanelsinwebpage,865styletypes,394styles,394–407applyingstylesheetrules,405–407creatingstylesheets,403–405themes,407–415throwingexceptionswithoutdetails,801timedrefreshesusingAjax,861–863transferringinformationbetween,209–218usercontrolscompared,369validatedcustomerform,335–339webprojects,86WebServerCertificatewizard,710webserversallowingfileuploads,631–634creatingwebserverfilebrowser,617–620debuggingwithVisualStudio,113–114howwebserverswork,283–285virtualdirectories,285VisualStudiobenefits,82Windowsauthentication,699webservicesApp_WebReferencesdirectory,124ASP.
NETfiletypedescribing,123web.
configfile,155–156accessingspecificdirectories,689accessingspecificfiles,689accessingviaIIS,159addelement,158adjustingdefaultmembershipconnectionstring,717anonymousIdentificationelement,773,774appSettingselement,156,157authenticatingusers,688authorizationsection,749basicstructureof,155case-sensitivity,155changingerrormodes,266configurationelement,155configurationinheritance,156,157configuringwithWAT,159–160connectionStringselement,156,550storingconnectionstring,496creatingwebsiteswithVisualStudio,85customerrorpages,267debuggingwithVisualStudio,112description,123formsauthentication,686LocalSqlServerconnectionstring,758maximumsizeoffileuploads,634maxRequestLengthsetting,634multilayeredconfiguration,156outputCacheProfilessection,819profileproperties,760,764role-basedsecurity,746serializeAsattribute,764sessionstateconfiguration,227–235cookielesssetting,227–230modesetting,231–235timeoutsetting,231sqlCacheDependencyelement,835storingcustomsettingsin,157–159system.
webelement,156updatingsettings,155urlMappingssection,450webapplications,155Windowsauthentication,700–702XMLstructureof,155953INDEXFinditfasterathttp://superindex.
apress.
comWeb.
sitemapfilebindingpagestositemaps,439retrievingsitemapinformationfromXMLfile,434showingsubtreesofsitemaps,445siteMapelement,435siteMapNodeelement,435–438usingdifferentsitemapsinsamefile,447WebConfigurationManagerclassAppSettingsproperty,158creatingdata-accesscomponent,794WebControlclass,167–168websiteadministrationtoolseeWATwebsitenavigation,433–468ASP.
NETnavigationwithsitemaps,434Menucontrol,462–468navigationcomponents,433pageswithmultipleviews,367sitemaps,433–450bindingmasterpageto,440–442bindingpagesto,439–440bindingportionsof,442–447defining,434–438example,438–439mappingURLs,450nodeswithduplicateURLs,438retrievinginformationfrom,448showingsubtrees,443–446usingdifferentsitemapsinsamefile,447SiteMapclass,447–449SiteMapPathcontrol,451–455TreeViewcontrol,455–462websitesapplyingthemetoentirewebsite,412creatingwithVisualStudio,82–90deploying,304–311deployingwithVisualStudio,311–318managingwithIISManager,296–304migratingfrompreviousversionofVisualStudio,89–90settinguptouseformsauthentication,714SolutionExplorer,87–88synchronizingremotewebsite,317WeekendDayStyleproperty,Calendarcontrol,346WHEREclause,SQL,482Whilekeyword,Do.
.
.
Loopblock,41whitespacelinebreaks,101masterpages,423regularexpressioncharacters,334wideningconversions,30Widthproperty,WebControlclass,168wildcardcharacter(*and)anonymoususeraccess,688Windowsaccountsimpersonation,707permissions,306Windowsauthentication,699–706advantages,699authorizationrules,700Basicauthentication,702choosingauthenticationmethodinIIS,703configuringauthenticationinIIS,705dataaccess,ADO.
NET,494defaultWindowsroles,701description,685Digestauthentication,702examininguser'sgroupmembership,701IISsettings,702–704implementingWindows-basedsecurity,699integratedWindowsauthentication,494,702loginpage,705modes,702profiles,757testpage,705–706web.
configsettings,700–702WindowsBuiltInRoleenumeration,701Windowseventlogstableof,255viewing,254–257writingto,257WindowsFeatureswindowauthenticationinIIS7,704WindowsBuiltInRoleenumeration,701954INDEXWindowsIdentityclassidentityobjects,698Impersonatemethod,707WithEventskeyword,60Wizardcontrol,360–367ActiveStepChangedevent,365ActiveStepIndexproperty,364CreateUserWizardcontrol,738creatingwizards,361–364DisplaySideBarproperty,360events,364–365formattingthewizard,365–367programmingmodels,365slimmingdowncomplexwizards,364styles,366,367templates,367Updatemethod,365validationwithinwizards,367WizardStepcontrolscreatingwizards,361–364properties,362Writemethod,Responseclass,153Writemethod,Traceobject,277WriteAllBytesmethod,Fileclass,624WriteAllLinesmethod,Fileclass,624WriteAllTextmethod,Fileclass,624WriteLinemethod,StreamWriterclass,621WriteOnlykeyword,56wwwrootdirectorycreatingvirtualdirectories,299creatingvirtualdirectoryfornewproject,312managingwebsiteswithIISManager,296verifyingASP.
NETinstallation,294Xxcoordinate,384XCopydeployment,305XHTMLattributes,103completeXHTMLwebpage,104–105componentsandstructureofwebform,99–105configuringleveloferrorchecking,111elements,100–103formattinginXHTML,103–104HTMLand,98referencestoHTMLinthisbook,99XMLand.
NET,635XHTMLdocuments,104XHTMLstrict,98XHTMLtransitional,98XMLcomments,157,641,654description,98formattingXML,644introduction,636–639LINQtoXML,676metalanguage,638nodes,645web.
configfileformat,155XMLand.
NET,635–636XMLfilescomparedtodatabases,639XSLT(XSLTransformations),666–670XMLattributes,640–641creatingXMLdocumentasobjects,654XMLclasses,642–659XmlDataDocumentclass,676XmlDocumentclass,650–659XmlTextReaderclass,645–650XmlTextWriterclass,642–644XMLdatabinding,670–675bindingtoXMLcontentfromothersources,675hierarchicalbinding,673–675nonhierarchicalbinding,671–673XMLdeclaration,640XMLdocumentsclassprovidingin-memorymodelof,651cloningaportionof,656comments,641creatingXMLdocumentasobjects,654declaration,640description,651parsing,639,640reading,645readingpartofXMLdocument,650readingXMLdocument,655–657955INDEXFinditfasterathttp://superindex.
apress.
comsearchingXMLdocument,658–659validatingagainstschema,663–666workingwithXMLdocumentsinmemory,650–655writing,642XmlDataDocumentclass,676XMLelementsattributes,640–641casesensitivity,639complextypes,663compositionof,639creatingXMLdocumentasobjects,654description,638emptyelement,435,639nesting,640overlappingelements,640specialcharacters,639usingelementsorattributes,640,641whitespace,639XMLnamespaces,659–661attributes,661namespaceprefixes,661namingconventions,660xmlnsattribute,661XMLparsers,639XMLSchemaDefinitionseeXSDXMLserialization,676customdatatypes,769XMLvalidation,659–666validatingXMLdocumentagainstschema,663–666XMLnamespaces,659–661XSDdocuments,661–666Xmlvalue,serializeAsattribute,764Xmlwebcontrol,669–670XmlAttributeclass,651,654XmlAttributeCollection,657XmlCommentclass,654XmlDataDocumentclass,676XmlDataSourceclass,670–675Dataproperty,675DataBindmethod,671DataFileproperty,671description,548GetHierarchcialViewmethod,673limitations,673nonhierarchicalbinding,671–673XmlDataSourcecontrolcachingproperties,826XmlDocumentclass,650–659analogywithDataSet,651AppendChildmethod,654CreateAttributemethod,654CreateCommentmethod,654CreateElementmethod,654events,657GetElementByIdmethod,658GetElementsByTagNamemethod,658in-memorymodelofXMLdocuments,651InsertAftermethod,654InsertBeforemethod,654insertingnodes,654Loadmethod,655manipulatingnodes,656objectmodel,651readingXMLdocument,655–657Savemethod,652,654searchingXMLdocument,658–659whentouse,656XmlElementclass,654XmlNodecompared,656XmlNodeclassaddingnodecontent,657adding/removingnodes,657ChildNodescollection,656CloneNodemethod,656manipulatingnodeattributes,657manipulatingnodes,656Nodescollection,671properties,656readingXMLDocumentinmemory,655workingwithnodecontentasstringdata,657XmlElementcompared,656xmlnsattributesiteMapelement,435XMLnamespaces,661XmlReaderclass,664956INDEXXmlReaderSettingsclassValidationEventHandlerevent,665ValidationTypeproperty,663XmlSchemaclass,663XmlSchemaCollectionclass,663XmlSchemaExceptionclass,664XmlSerializerclass,769XmlSiteMapProvidercontrol,434XmlTextReaderclass,645–650creatinggroupofobjects,648propertiesandmethods,650Readmethod,645whentouse,656XmlTextWriterclass,642–644defaultformatofXMLfile,644supportforformatting,644XPath(XMLPathLanguage)resolvinglimitationsofXmlDataSourceclass,673searchingXMLdocument,659xsnamespaceprefix,XSDdocuments,662XSD(XMLSchemaDefinition),661–663briefdescription,659validatingXMLdocumentagainstschema,663–666XSDdocumentscomplextypes,663makinganattributemandatory,663maxOccursattribute,663minOccursattribute,663rootelement,662specifyingelement/attributedatatype,663structureoftargetdocument,662targetNamespaceattribute,662XMLvalidation,661–666xsnamespaceprefix,662XSL(eXtensibleStylesheetLanguage),666XSLTransformationsseeXSLTXslCompiledTransformclass,666XSLT(XSLTransformations),666–670@character,668resolvinglimitationsofXmlDataSourceclass,673stylesheets,666Xmlwebcontrol,669–670Yycoordinate,384Yearproperty,DateTimeclass,34Zzero-basedcounting,arrays,24,36zero-basedcounting,strings,32zero-touchdeployment,305

VinaHost,越南vps,国内延时100MS;不限流量100Mbps

vinahost怎么样?vinahost是一家越南的主机商家,至今已经成13年了,企业运营,老牌商家,销售VPS、虚拟主机、域名、邮箱、独立服务器等,机房全部在越南,有Viettle和VNPT两个机房,其中VNPT机房中三网直连国内的机房,他家的产品优势就是100Mbps不限流量。目前,VinaHost商家发布了新的优惠,购买虚拟主机、邮箱、云服务器、VPS超过三个月都有赠送相应的时长,最高送半年...

Friendhosting,美国迈阿密机房新上线,全场45折特价优惠,100Mbps带宽不限流量,美国/荷兰/波兰/乌兰克/瑞士等可选,7.18欧元/半年

近日Friendhosting发布了最新的消息,新上线了美国迈阿密的云产品,之前的夏季优惠活动还在进行中,全场一次性45折优惠,最高可购买半年,超过半年优惠力度就不高了,Friendhosting商家的优势就是100Mbps带宽不限流量,有需要的朋友可以尝试一下。Friendhosting怎么样?Friendhosting服务器好不好?Friendhosting服务器值不值得购买?Friendho...

Linode 18周年庆典活动 不断改进产品结构和体验

今天早上相比很多网友和一样收到来自Linode的庆祝18周年的邮件信息。和往年一样,他们会回顾在过去一年中的成绩,以及在未来准备改进的地方。虽然目前Linode商家没有提供以前JP1优化线路的机房,但是人家一直跟随自己的脚步在走,确实在云服务器市场上有自己的立足之地。我们看看过去一年中Linode的成就:第一、承诺投入 100,000 美元来帮助具有社会意识的非营利组织,促进有价值的革新。第二、发...

outputcache为你推荐
尺寸(mm)操作區域手控勒索病毒win7补丁求问win7 64位旗舰版怎么预防勒索病毒fusionchartsfusioncharts曲线图怎么默认显示数量重庆电信宽带管家重庆电信宽带多少钱一个月micromediamacromedia的中文名googleadsence谷歌adsense是被封了么?kb4012598win7怎么查看电脑是否安装了 ms17 010firefoxflash插件火狐安装不了FLASH为什么?下载完后明明安装完成,火狐却仍然提示“缺少插件”迅雷下载速度迅雷下载速度很慢怎么办迅雷雷鸟100+怒放手机是迅雷做的么?迅雷之前不是出了一款雷鸟手机么?
万网虚拟主机 jsp虚拟主机 汉邦高科域名申请 高防dns plesk cve-2014-6271 国外服务器网站 服务器怎么绑定域名 vip购优汇 免费吧 南通服务器 美国在线代理服务器 免费测手机号 电信虚拟主机 绍兴电信 流媒体加速 789电视剧 论坛主机 摩尔庄园注册 腾讯网盘 更多