Добавил:
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:

Pro ASP.NET 2.0 In CSharp 2005 (2005) [eng]

.pdf
Скачиваний:
107
Добавлен:
16.08.2013
Размер:
29.8 Mб
Скачать

1238 I N D E X

Personalizable attribute, 1064 personalization, ASP.NET 2.0, 19 Personalization property, WebPartManager

class, 1084

PhysicalPath property, HttpRequest class, 90 PieSlice object, 1037–38

pipe (|) character, XPath expression, 443 pixel (px), unit structure, 119

pixels, Unit structure, 119

PKCS (Public-Key Cryptography Standard), 840 PlaceHolder control, 87, 518–20

placeholders, 250–51 Platform property, 912

platforms, cross-platform functionality, 1090 polling, ASP.NET, enabling, 418

pooling, connections, 237–39 POP3 (Post Office Protocol), 663 PopOutImageUrl property, 593

PopulateNodesFromClient property, TreeView control, 587–88

PopulateOnDemand property, 587 PopUp control, 997, 999

pop-up windows, 997, 999 portal frameworks, 519–21

portals, 1043, 1045. See also Web Part pages position, XPath expression, 443

Position property, 848

Post Office Protocol (POP3), 663 postbacks, 64, 148

post-cache substitution, 398–400 PostedFile.SaveAs( ) method, 492 PostRequestHandlerExecute, Application event,

157

PowerUser value, WindowsBuiltInRole enumeration, 763

PreRender event, Page class, 79, 826, 1080 PreRequestHandlerExecute, Application event,

157 PreviousButtonClick event, 563

PreviousPageImageUrl property, 360 PreviousPageText property, 360 PreviousSibling property, 576 PrevView command, 558

Principal object, 686 PrincipalPermission class

merging PrincipalPermission objects, 785–86 overview, 785

using PrincipalPermission attribute, 786 PrincipalPermission object, 785 PrintOperator value, WindowsBuiltInRole

enumeration, 763 ProcessMessage( ) method, 1197–99

<processModel> element, 160, 624, 626, 628, 651

ProcessRequest, 184

profile property, attributes, 810

<profile> element, 809–10, 816 ProfileAutoSaving event, ProfileModule class,

816 ProfileBase object, 818 ProfileInfo class, 819

ProfileManager class, 819 ProfileMigrateEventArgs, 821 ProfileModule class, 813 profiles

and authentication, 805 building shopping carts

multiple selection, 828–29 overview, 822

shopping cart classes, 823–25 test page, 826–28

vs. custom data components, 806 custom profiles providers

classes, 829

coding FactoredProfileProvider, 832–35 designing FactoredProfileProvider, 831–32 overview, 829

testing FactoredProfileProvider, 836–38 how store data, 804–5

overview, 803 performance, 803–4 SqlProfileProvider

anonymous profiles, 820–22 configuring provider, 809 creating profile tables, 807–9 defining profile properties, 810 overview, 806–7

profile groups, 814

profile serialization, 812–14

profiles and custom data types, 814–18 profiles API, 818–20

using profile properties, 811–12 <profiles> element, 660

Profile.Save( ) method, ProfileBase class, 812, 816, 818

programmatic encryption, 176 programmatic impersonation, 765

projectless development, in Visual Studio 2005, 23

Properties window, 34, 904, 941–45 <properties> element, 810 PropertyGridEditorPart control, 1071–72 PropertyNames field, 812 PropertyValuesBinary field, 813 PropertyValuesString field, 812 ProtectedData class,

System.Security.Cryptography namespace, 850, 863

protection option, 696 ProtectKey property, 851 ProtectSection( ) method, 176

<protocol> parameter, Wsdl.exe, 1108

provider classes

creating users and adding them to store, 880–83

implementing, overview, 876 implementing XmlRoleProvider, 889–94 overview, 877–78, 880

using salted password hashes, 885–87 validating users on login, 883–85

provider factories, 230

Provider member, Roles class, 794 provider model, 19

Provider property, SiteMap control, 575 ProviderBase class,

System.Configuration.Provider namespace, 662, 829, 877

ProviderConnectionPointID parameters, 1082 Providers member, Roles class, 794 <providers> element, 660, 662 ProviderSpecific option, 813 ProviderUserKey property, MembershipUser

class, 860, 868, 870 proxy, connecting through, 1115 proxy class, 1106–7, 1112

generating with Visual Studio .NET, 1109–10 generating with Wsdl.exe, 1107–8

Proxy property, 1115

proxydomain, <domain> parameter, Wsdl.exe, 1108

proxypassword, <password> parameter, Wsdl.exe, 1108

ProxyServer, 1115

proxyusername, <username> parameter, Wsdl.exe, 1108

Public key, 845

Public-Key Cryptography Standard (PKCS), 840 px (pixel), unit structure, 119

Q

query strings, 1030 data types, 196 encrypting

creating test page, 864–65 overview, 861

wrapping the query string, 862–64 lifetime, 196

parameters

output caching with, 395 reusability of cached pages, 394

performance, 196 scope, 196 security, 196

state management options, 196 storage location, 196

transferring information with, 207–8 overview, 207

URL encoding, 208

using the query string, 208

I N D E X 1239

QueryDataFromDatabase( ) method, 404 QueryString collection, 862

QueryString property HttpRequest class, 90 Request class, 584

question mark (?) character, 761, 778 QuestionTemplateContainer template, 739

R

R switch, 715 RadioButton controls, 118

RadioButtonList control, 127–28, 302 RaiseCallbackEvent( ) method, 993–94, 1003 RaisePostBackEvent method, 922, 1002 RaisePostDataChangedEvent method, 919–20 RandomNumberGenerator class,

System.Security.Cryptography namespace, 843

RangeValidator control, 133, 137 RawUrl property, Request class, 584 RC2 class, 845

Read method DataReader class, 241

StreamReader class, 490 ReadAllBytes( ) method, File class, 491 ReadAllText( ) method, File class, 473, 491 ReadCommitted value, IsolationLevel

enumeration, 258 ReadElementString, 446 ReadEndElement, 446

reading and navigating XML files, 435, 437–52 overview, 435

searching XML documents, 440–42 searching XML documents with XPath,

443–44

transforming XML files, 450–52 using XML DOM, 435, 437–38 using XmlTextReader, 444–47 using XPathNavigator, 439–40 validating XML files, 447–49

ReadInt32( ) method, BinaryReader class, 491 ReadKey( ) method, 851

ReadLine( ) method, StreamReader, 490–91 ReadLines( ) method, File class, 473 ReadOnly attribute, 943

read-only enumeration, FileInfo and DirectoryInfo, 478

ReadOnly property, 338 ReadStartElement, 446 ReadString method, 491

ReadToEnd( ) method, StreamReader class, 491 ReadUncommitted value, IsolationLevel

enumeration, 258 ReadXml( ) method

DataSet class, 279, 465

IXmlSerializable interface, 1162–63, 1169 XmlTextReader class, 444, 465

1240 I N D E X

ReadXmlSchema( ) method, DataSet class, 279 recursive searching logic, 88

recycle application domains, 153 Redirect( ) method

HttpResponse class, 92 Response class, 91, 537, 681, 863

Redirect option, 681, 733 RedirectFromLoginPage( ) method, 702, 704–5,

780 RedirectToLoginPage option, 733 reflection, 253

Refresh( ) method, 475

Refresh event, DynamicPanel class, 1005 Refresh option, 733

RefreshPanel( ) method, 1005 RefreshProperties attribute, 944, 955 RefreshSection( ) method, 169 Register directive, 902

RegisterClientScriptBlock( ) method, 986, 1008 RegisterRequiresControlState( ) method, Page

class, 917

RegisterRequiresPostback( ) method, Page class, 920

RegisterRequiresViewStateEncryption( ) method, Page class, 206–7, 916

RegisterStartupScript, 986, 1008 regular expressions, 140

RegularExpressionValidator control, 133, 138–40, 614, 700, 730

relative paths, and master pages, 548–49 ReleaseRequestState, Application event, 157

.rem extension, 638 RememberMeSet property, 728 Remove( ) method, Cache class, 414

RemoveUsersFromRoles( ) method, 892 Render( ) method, ControlAdapter class, 914–15 Render method, 106, 900, 905, 908, 998 RenderBeginTag( ) method

HtmlTextWriter class, 910 WebControlAdapter class, 914

RenderBeginTag method, 900–901, 905, 908 RenderChildren( ) method, ControlAdapter

class, 908, 914

RenderContents( ) method, WebControlAdapter class, 905, 907–8, 914, 929, 1062, 1064, 1068

RenderControl( ) method, 908–9, 1062, 1068 RenderCurrentNodeAsLink property, 571 RenderEndTag( ) method, 901, 905, 908, 914 RepeatableRead value, IsolationLevel

enumeration, 258 RepeatColumn property, Added

RadioButtonList and CheckBoxList objects, 129

RepeatDirection property, list controls, 129 Repeater control, 335, 931

RepeatLayout property, list controls, 129, 131

Replace( ) method, String class, 94 replay attacks, 754

Replicator value, WindowsBuiltInRole enumeration, 763

Request object, 89 RequestDetails, Trace Log, 95 requestLimit option, 100, 624 requestPriority setting, 652

requestQueueLimit configuration, 624 request-related events, 156

requests, HTTP, 89, 152 RequiredFieldValidator control, 133, 137, 700,

730 RequirePasswordQuestionAndAnswer property,

877

RequiresQuestionAndAnswer property, 721 requireSSL option, 696 RequiresUniqueEmail property, 721 ResetPassword( ) method, 885, 887 ResolveRequestCache, Application event, 156 ResourceExpressionBuilder, 299 ResourceManager class, 603, 610

resources in .NET applications, 599–607. See also localization of Web applications

response caching, 522 Response class, 399

response events, immediate, 78 Response object, 91 Response.Cache property, 397

responseDeadlockInterval configuration, 625 Response.Write( ) method, 83 restartQueueLimit configuration, 624 RestrictedCalendar control, 927, 958–61 RestrictedDates collection, 961

restrictions to database accounts, 250 Result property, 1182–83

result sets, multiple, 244–46

.resx extension, 599–601, 616 rich controls, 104

AdRotator control, 146–47 ASP.NET 2.0, 20–21 Calendar control, 148–50 overview, 145–46

rich data controls, 307. See also GridView control

ASP.NET 1.X templated controls, 335 DetailsView control, 372, 374

detecting concurrency conflicts, 385–88 FormView control, 374–75

overview, 335 RichLabel control, 950–51

RichLabelFormattingOptions, 950–53 RichLabelFormattingOptionsConverter,

example, 952, 955 RichLabelTextType enumeration, 950 RID (role identifier) integer, 762

Role class, 896

role identifier (RID) integer, 762 role-based authorization, 672

RoleExists( ) method, Roles class, 794, 890–91 RoleGroups template, 793

<roleManager> tag, 788–89, 794 RoleManagerModule class, Roles Service, 790 roleName parameter, 894

roleNames parameter, 891–92

RolePrincipal class, Roles Service, 791–92, 796 RoleProvider class, 790, 869, 889 RoleProviderCollection class, Roles Service, 790 Roles API, 688, 1045

Roles class, 791, 794, 891 Roles Service, 790

Roles.AddUsersToRole method, 795 RoleStore class, 869, 893

Rollback( ) method, 256 rollover button, 1000–1002

Root property, DirectoryInfo class, 475 RootNode property, 575 RootNodeStyle property, 572, 590 RootNodeTemplate template, 572 round-trip, 93

row selection, GridView control overview, 346 SelectedIndexChanged Event, 348–49 using data field as select button, 349

using selection to create master-details form, 346–48

RowCommand event, 349, 366, 828 RowCreated event, 344, 346

RowDataBound event, GridView control, 378 RowFilter property, DataView class, 290, 408 ROWNUM operator, 359

Rows collection, 279 RowsAffected property, 385 RowStateFilter property, 291–92 RowStyle style, 341 RowUpdating event, 370

RSA algorithm, 856 RSA class, 844 RSA provider, 175

<rules> element, 660, 663

run scripts permission. See permissions Run to Cursor command, 55 runat=server attribute, 34

S

S command-line switch, 415 S switch, 715, 717

salted password hashes, 842, 885–87 Save( ) method, 432, 818

Bitmap, 1029 Configuration, 171 XmlDataSource, 464

SaveAs( ) method, HttpPostedFile, 493

I N D E X 1241

SaveControlState( ) method, 918 savepoints, 259

SaveViewState method, 917 schedule files, AdRotator control, 146 Schema namespace, 448

schemas, XML, 430–31

scope, state management options, 196 script blocks, JavaScript, 978–84, 986

creating JavaScript page processor, 979–82 overview, 978–79

rendering, 986–87

using JavaScript to download image asynchronously, 982–84, 986

script injection attacks overview, 987–88

request validation, 988–90 script languages, 5–6 <script> tag, 988

scrollable panels, 123–24 SdlDataSource, data caching with, 406–9 searching XML documents, 440–42 section handlers, 174

Secure Sockets Layers (SSL), 691, 696, 701, 840–42

certificates, 677–78

encoding information with, 681–82 encryption, 673

installing certificates in IIS, 679–81 overview, 677

securing session state, 222–23

security. See also encrypting data; Secure Sockets Layers (SSL); security controls

and ASP.NET 2.0, 19–20

ASP.NET security processes, 671–74 authentication, 670–71 authorization, 672

encryption, 673 impersonation, 671

authentication, 682–85

built-in authentication modules, 684–85 overview, 682, 684

authorization, 685–87 overview, 685–86 security context, 686–87

ClientCertificate property, 90 creating secure software

gatekeepers, 669 overview, 667

secure coding guidelines, 668–69 understanding potential threats, 668

directory permissions, 474

Internet Information Services (IIS) security, 675–76

of keys, 161–62 Membership API, 687 overview, 667 Profiles API, 688

1242 I N D E X

for query strings, 208

SelectionChanged event, Calendar control, 148

Roles API, 688

SelectionMode property, Calendar control, 148

settings, IIS, 14

SelectMethod property, 324

state management options, 196

SelectRows, 239

of view state, 72

SelectText property, 346

web services

SendingEmail event, 736, 742

authenticating users, 1191

SendMailError event, 736, 742

authorizing users, 1192

SeparatorImageUrl property, 593

testing the SOAP authentication system,

Serializable attribute, 499–500

1192–94

serializable object, 499–500

security controls

Serializable value, IsolationLevel enumeration,

ChangePassword control, 739–40

258

CreateUserWizard control, 740, 742–44

serialization. See code serialization

Login control

serializeAs attribute, profile property, 810

overview, 724–27

server controls, 12–13, 108–14. See also custom

programming, 730–33

server controls

and templates, 728–30

changes in .NET 2.0, 103

LoginStatus control, 733

hierarchy of, 105–6

LoginView control, 733–34

overview, 105

PasswordRecovery control

types of, 104–5

overview, 735–37

Server Explorer, Visual Studio IDE, 34, 39–40

templates, 737–39

Server object, 92–94

Security Identifier (SID), 671

server parameter, Wsdl.exe, 1108

SecurityException, 474

Server property, 1101

Seek( ) method, 492, 848

Server Variables, Trace Log, 95

Select( ) method, 333, 378

ServerChange event, 113

SELECT statement, 408, 419

ServerClick event, 113, 114–15, 126–27

<select> tag, 302

Server.MapPath, 800

selectable list controls, 128–31

ServerRoundtrips, 239

Selectable property, 593

servers, database, 235

SelectAction property, TreeNode control, 590

Server-Side events, 113–15, 124–26

SelectCommand property, 280, 312

server-side execution, 64

SelectCountMethod property, 357–58

server-side form tag, 119

SelectedDataKeys property, 347

server-side input validation, 132, 141

SelectedDate property, Calendar control, 1054

Server.Transfer, 93

SelectedDateChanged event, Calendar class,

ServerUtility class, 92

1054

ServerVariables property, HttpRequest class, 90

SelectedIndex property

Session collection, 1037, 1123, 1125

GridView control, 346

Session object, 89, 282

ListControl class, 128, 347, 349, 369

Session property, 1101

SelectedIndexChanged event, GridView control,

session state, 214–22, 684, 1123–24

128, 346, 348–49, 747, 826

configuring, 217–22

SelectedIndexChanging event, GridView

cookieless, 221

control, 346

mode session state setting, 218–20

SelectedItem property, ListControl class, 128,

overview, 217

130, 515

timeout, 222

SelectedItemStyle property, 485

data types, 196–97

SelectedNodeChanged event, TreeView control,

lifetime, 196–97

585–86

management, 196–97, 214

SelectedNodeStyle property, 590

overview, 214

SelectedRowStyle property, 346

performance, 196–97

SelectedRowStyle style, 341

scope, 196–97

SelectedValue property, 370, 745

securing, 222–23

SelectImageUrl property, 346

security, 196–97

SelectIndexChanged event, 366

session architecture, 214–16

Selecting event, SqlDataSource control, 327,

state management options, 196–97

333, 388

 

storage location, 196–97 using, 216–17

Session State, Trace Log, 95 session ticket (ST), 757

Session_End Application event, 158 Session_Start Application method, 157 SessionID, 95, 214–15, 217, 221 sessionState element, web.config files, 165 session state, and HTTP handlers, 190

Set Next Statement command, 55 SetAttributes( ) method, File class, 473 SetAuthCookie( ) method, FormsAuthentication

class, 705 SetCacheability( ) method, 397

SetCurrentDirectory( ) method, Directory class, 473

SetExpires( ) method, 397 SetPropertyValue( ) method, ProfileBase, 811 SetPropertyValues( ) method, 830, 835 settings, locked, 163

SettingsContext object, 833 SettingsPropertyCollection object, 833 SettingsPropertyValueCollection object, 833 SettingsProvider abstract class, 829

SetValue( ) method, PropertyDescriptor class, 969

SHA1 algorithm, 703 shadow copies, 154 shared locks, 258

Shared property, OutputCache directive, 524 SharePoint Services, 797

shopping carts, building multiple selection, 828–29 overview, 822

shopping cart classes, 823–25 test page, 826–28

ShoppingCartItem class, 823 ShoppingCartItem object, 827 Short Date data type, 340

Show Next Statement command, 55 ShowCheckBox property, TreeNode control, 590 ShowCheckBoxes property, TreeView control,

590 ShowDirectoryContents, 485 ShowEditButton property, 367

ShowExpandCollapse property, TreeView control, 590

ShowFooter property, GridView control, 375 ShowHeader property, 484

ShowMessageBox property, ValidationSummary control, 142

ShowSelect property, 346 ShowStartingNode control, 573 ShowStartingNode property,

SiteMapDataSource control, 572 ShowSummary property, ValidationSummary

control, 142

I N D E X 1243

ShowToolTips property, 571

shut down application domains, 153 shutdownTimeout configuration, 624 SID (Security Identifier), 671 SideBarButtonClick event, 563 SideBarButtonStyle style, 565 SideBarStyle style, 564–65 SideBarTemplate style, 566

SignOut( ) method, FormsAuthentication class, 702, 705, 733

simple asynchronous call, 1178–79

Simple Mail Transfer Protocol (SMTP), 663, 720, 736

Simple Object Access Protocol (SOAP), 627, 1129–30, 1150–51

SimpleRepeaterItem control, 933 SimpleRole class, 869 SimpleUser class, 869

single value binding, 296–98 SingleBitPerPixelGridFit, 1020 single-step debugging, 52–53, 55 site maps

adding custom site map information, 577–78 binding other controls, 576–77

binding portions of, 572–75 binding to, 569–70 breadcrumbs, 570–72

creating custom SiteMapProvider creating site map provider, 579–83 overview, 578–79

storing site map information in a database, 579

defining, 568–69 overview, 567

programmatic navigation, 575–76 URL mapping, 583–84

SiteMap class, 575, 579 SiteMap control, 568 <sitemap> element, 568, 580

SiteMapDataSource control, 309, 406, 567–69, 574–75, 577

siteMapFile attribute, 574

SiteMapNode class, 575, 578, 581–82, 597 <siteMapNode> element, 568 SiteMapPath control, 570–73, 577 SiteMapProvider, custom

creating site map provider, 579–83 overview, 578–79

storing site map information in a database, 579

Size property, FontInfo class, 121 SkinID attribute, 532–34, 538

SkinID property, TreeView control, 592 skins

multiple, creating for same control, 532–33 with templates and images, 533–35

slidingExpiration option, 696

1244 I N D E X

smart devices, 14

social security number, regular expression, 140

smart tags, 32–33, 941

SolidBrush class, 1026

ActionList class, 969–70

Solution Explorer, Visual Studio IDE, 34, 36–37

ControlDesigner, 972–73

Sort( ) method, GridView control, 351, 354

DesignerActionItem collection, 971–72

Sort property, DataView control, 350

overview, 968

Sorted event, GridView control, 353

SmoothingQuality property, 1020

SortExpression property, 338, 350

SMTP (Simple Mail Transfer Protocol), 663, 720,

sorting, GridView

736

advanced, 354

SOAP, 1095–96, 1131–44, 1152–59

with ObjectDataSource, 351–52

custom serialization for large data types

overview, 350

client side, 1167–70

and selection, using at same time, 353

overview, 1165

with SqlDataSource, 350–51

server side, 1165–67

Sorting event, GridView control, 354

customizing XML serialization with

SortParameterName property,

IXmlSerializable, 1162

ObjectDataSource control, 351

overview, 1161–63

source-code files, 153, 187

schemas for custom data types, 1163–64

spaghetti code, 4–5

encoding, 1132–33, 1136–40

special characters

encoding complex data types, 1152–56

HTML, 93, 95

creating custom class, 1153–54

removal. See SQL injection attack

generating proxy, 1154–55

specific-length passwords, regular expression,

overview, 1152–53

140

extensions

SQL (Structured Query Language), 322, 325,

creating, 1196–1203

350, 352, 392, 408–9, 411, 668, 700, 715,

overview, 1194–96

860, 894, 987

overview, 1131

SQL cache notifications, 413–14

schema importer extensions, 1170–72

SQL injection attack, 248–50, 286

shaping XML of complex data types, 1156–59

SQL query, 282–83

SOAP envelope

SQL Server 2000 or 7

fault messages, 1138–40

cache notifications in

overview, 1136–37

creating the cache dependency, 418–19

request messages, 1137

enabling ASP.NET polling, 418

response messages, 1138

enabling notifications, 415–17

SOAP header, 1140–44

how they work, 417–18

consuming web service that uses custom

overview, 415

header, 1143–44

SQL Server 2005, 230

custom header, 1141–42

cache notifications in

linking header to web service, 1141–43

creating the cache dependency, 420

overview, 1140–41

overview, 419–20

testing, 1192–94

protocol, 233

toolkit, 1119–20

SQL Server provider, 231–32, 238–39, 251–52

tracing SOAP messages, 1134–36

<sqlCacheDepency> element, 418

type sharing, 1159–61

SqlCacheDependency class, 414, 420

versions, 1133

SqlCacheDependency property, 407, 418–19

SOAP (Simple Object Access Protocol), 627,

<sqlCacheDependency> section, 418

1129–30, 1150–51

SqlCacheTablesForChangeNotification table,

.soap extension, 638

415, 417

SOAP XML format, 500

sqlcmd.exe tool, 717

SoapClient object, 1119

SqlCommand class, 358, 420

SoapDocument attribute, 1159

SqlCommand control, 1078

SoapExtension attribute, 1196–97

SqlDataAdapter control, 1078

SoapExtension class, 1197–1201

SqlDataSource, 18

SoapFormatter class, 500

disadvantages of, 322–23

SoapHttpClientProtocol, 1112

error handling, 318

SoapVersion property, 1133

handling extra options with, 333

 

overview, 311

I N D E X 1245

parameterized commands, 314–17

custom cookies, 213–14

selecting records, 312–14

overview, 195

sorting with, 350–51

session state, 214–22

updating records

configuring, 217–22

and KeyFields, 320

overview, 214

overview, 318–20

securing, 222–23

with stored procedures, 321–22

session architecture, 214–16

strict concurrency checking, 320–21

using, 216–17

SqlDataSource class, 321, 419

transferring information with cross-page

SqlDataSource control, 309, 319, 322, 324–26,

posting, 209

328, 330–31, 333–34, 346, 350, 355, 357,

getting page-specific information, 210–11

361, 367, 386, 388, 392, 406, 409, 832, 992

performing cross-page posting in any

SqlDataSourceStatusEventArgs.Exception

event handler, 211

property, 318

transferring information with query string,

sqlexportonly switch, 715

207–8

SqlMembershipProvider class, 711–12, 719, 894

view state, 198–207

SqlProfileProvider

assessing, 203–5

anonymous profiles, 820–22

example of, 199–200

configuring provider, 809

making secure, 206–7

creating profile tables, 807–9

overview, 198

defining profile properties, 810

retaining member variables, 202–3

overview, 806–7

storing objects in, 200–202

profile groups, 814

trimming in list control, 205

profile serialization, 812–14

state provider class, 215

profiles and custom data types, 814–18

StatefulService, 1124

profiles API, 818–20

statelessness of web applications, 64

using profile properties, 811–12

StateServer, Mode setting, SessionState

SqlServer setting, 220

element, 218–19

SqlSiteMapProvider class, 582

StateServer setting, 218–19

SqlSiteMapProvider control, 580

static <script> blocks, 986

SqlWebEventProvider provider, 663

static application variables, 224–26

Src attribute, 507, 509

static HTML tags, 33–34

SSL. See Secure Sockets Layers (SSL)

static text, localizing, 617

SSL (Secure Sockets Layer) encryption, 673

<StaticConnections> section, 1077

ST (session ticket), 757

StaticDisplayLevels property, Menu class, 596

stacked image controls, 1011

StaticDynamicSelectedStyle style, 596

standardization, in ADO.NET, 232

StaticHoverStyle style, 596

start tag, 901

StaticMenuItemStyle style, 596

StartCap member, 1024

StaticMenuItemTemplate property, 596

StartFigure( ) method, 1023

StaticMenuStyle style, 596

StartFromCurrentNode control, 573, 575

StaticObjects HttpSessionState setting, 217

StartFromCurrentNode property,

StaticPartialCachingControl object, 522

SiteMapDataSource control, 573, 575

StaticSiteMapProvider class, 579, 582

StartingNodeOffset property,

StaticSubMenuIndent property, 596

SiteMapDataSource control, 574–75

Step Into command, 55

StartingNodeUrl property, 574

Step Out command, 55

StartNavigationTemplate style, 566

Step Over command, 55

StartNextButtonStyle style, 564–65

StepNavigationTemplate style, 566

StartRowIndexParameterName property, 357,

StepNextButtonImageUrl property, 564

359

StepNextButtonStyle property, 564

starts-with, XPath expression, 443

StepNextButtonText property, 564

state management, 195–226

StepNextButtonType property, 564

application state, 223–26

StepPreviousButtonStyle style, 565

ASP.NET state management, 196, 198

StepStyle style, 565

changes in .NET 2.0, 195

StepType property, 561

 

storage location, 196

1246 I N D E X

stored procedures, 251–53, 267–68, 315–16

System.Configuration.dll assembly, 41

transactions, 254–56

System.Configuration.Provider namespace, 662,

updating records with, 321–22

829, 877

used for profiles, 808

System.Data namespace, 234

StreamReader class, 489

System.Data.Common.DbProviderFactories

streams, 488–98

class, 260

binary files, 491–92

System.Data.dll assembly, 41

compression, 498–99

System.Data.OracleClient.dll assembly, 42

making files safe for multiple users, 494–98

System.Data.SqlClient.SqlClientFactory class,

creating unique filenames, 494–97

260

locking file access objects, 497–98

System.dll, 41

overview, 494

System.Drawing namespace, 1017

overview, 488–89

System.Drawing.Design namespace, 963

text files, 489–91

System.Drawing.dll assembly, 42

uploading files, 492–94

System.Drawing.Drawing2D namespace, 1017,

StreamWriter class, 489–90

1023

strict concurrency checking, 320–21

System.Drawing.Graphics object, 1017

Strikeout property, FontInfo class, 121

System.Drawing.Pens class, 1024

String option, 813

System.EnterpriseServices assembly, 1126

StringBuilder class, 243, 438, 999

System.EnterpriseServices.dll assembly, 42

StringCollection class, 864

System.Globalization namespace, 599, 609

StringDictionary class, 862

System.IO namespace, 471

strings

Directory class, 472, 477–78

HTML encoding and decoding, 92

retrieving information about files, 472

URL encoding and decoding, 92, 94

System.IO.Compression namespace, 831

structured exception handling, 11

System.IO.MemoryStream object, 1029

Structured Query Language (SQL), 322, 325,

System.Management namespace, 663

350, 352, 392, 408–9, 411, 668, 700, 715,

System.MarshalByRefObject class, 1102

860, 894, 987

System.Messaging namespace, 422

Style Builder dialog box, Visual Studio, 33

System.Net.HttpCookie object, 213

Style class, 936

SystemOperator value, WindowsBuiltInRole

Style collection, 110–11

enumeration, 763

style properties, 904–7, 936–37

System.Resources namespace, 599

Style property, HTML server controls, 107

System.Security namespace, 840

StyleSheet property, 87, 527

System.Security.AccessControl namespace, 840

stylesheets, XSLT, 146, 450

System.Security.Cryptography namespace,

StyleSheetTheme attribute, 531, 536, 549

161–62, 831, 840, 843, 850, 887

subdirectories of virtual directories, 152, 162–63

System.Security.Cryptography.X509Certificates

Substitution control, 146, 391

namespace, 840, 842

Subtitle member, IWebPart Interface, 1058

System.Security.Cryptography.Xml namespace,

SuccessTemplateContainer template, 739

840

SumResultSets, 239

System.Security.Principal namespace,

SuperSimpleReader example, 936, 938

WindowsIdentity class, 687

SuperSimpleRepeater, 934–35, 966

System.Security.Principal.GenericIdentity class,

SupportsCallback property, 995

687

SwitchViewByID command, 558

System.Security.Principal.IPrincipal, 95

SwitchViewByIDCommandName field, 558

System.Security.Principal.WindowsIdentity

SwitchViewByIndex command, 559

class, 687

SwitchViewByIndexCommandName field, 559

System.Text namespace, 853

symmetric encryption, 678–79, 844–45

System.Threading.Thread class, 1176

SymmetricAlgorithm class, 843, 852–53

system.web element, web.config files, 165

SymmetricEncryptionUtility class, 854–55

System.Web namespace, 575, 579

<system web> element, 166

<system.web> tag, 695, 781, 800

System.Collections.CollectionBase class, 825

System.Web.dll assemblies, 42, 185

<system:web> element, 651

System.Web.Hosting namespace, 657

System.ComponentModel namespace, 326, 942

System.Web.HttpCachePolicy class, 397

System.Configuration namespace, 167–68, 829

System.Web.HttpContext class, 100

System.Web.Management namespace, 660 System.Web.Mobile.dll assembly, 42 System.Web.Profile namespace, 819, 829 System.Web.Profile.SqlProfileProvider class, 809 System.Web.Security namespace, 687, 694, 745,

869, 876 System.Web.Security.FormsIdentity class, 687 System.Web.Security.MembershipProvider

namespace, 711 System.Web.Security.PassportIdentity class, 687 System.Web.Services.dll assembly, 42 System.Web.Services.WebMethod attribute,

1100–1101

System.Web.SessionState.HttpSessionState class, 216–17

System.Web.UI namespace, 361 System.Web.UI.Control namespace, 732 System.Web.UI.HtmlControls namespace, 106 System.Web.UI.Page namespace, 686 System.Web.UI.WebControl namespace, 116 System.Web.UI.WebControls namespace, 135,

742, 1054 System.Web.UI.WebControls.Style class, 936 System.Web.UI.WebControls.WebParts

namespace, 1054, 1062, 1064 System.Web.UI.WebControls.WebParts

property, 1062

System.Xml namespace, 431, 603, 867 System.Xml.dll assembly, 42

T

TabIndex property, WebServer class, 117 Table controls, 118

TableCell controls, 118 TableRow controls, 118 Tables property, 912

Tabular Data Stream (TDS) protocol, 232, 234 tag prefixes, 507

TagName property, HTML server controls, 107, 902

TagPrefix property, 902, 944 Target property, 585, 593

Task List, Visual Studio IDE, 35, 38–39 TCP (Transmission Control Protocol), 627 TCP/IP, 619, 627

TDS (Tabular Data Stream) protocol, 232, 234 template containers, 930, 933 TemplateContainer attribute, 934 TemplateControl class, 506

templated controls, 930–39 creating, 930–33 overview, 930

styles, 936–39

using customized templates, 933–36 TemplateField column, 337, 377 TemplateField control, 361

I N D E X 1247

templates. See also master pages GridView control

and binding to methods, 364–65 editing in Visual Studio, 363–64 editing with, 367–71

handling events in, 366 multiple, 362 overview, 361–62

PasswordRecovery templates, 737–39 TerraService, 1117

testing

connection, 236–37

data access components, 274–75 disabling caching while testing, 394 FactoredProfileProvider, 836–38 SOAP authentication system, 1192–94 web services, 1103–5

text encoding, 490 text files, 489–91

Text property, 585, 593 BaseValidator class, 136 MenuItem class, 596

TextAlign property, list controls, 129 TextBox control, 118, 533, 606, 742 TextBox.MaxLength property, 250 TextBoxStyle style, 726 TextChanged event, 817 TextureBrush class, 1026

Thawte certificate authority, 678 Theme attribute, 531, 535 themes

applying a simple theme, 530–31 applying dynamically, 536–38

applying through configuration files, 536 folders, 529–30

handling theme conflicts, 531–32 overview, 525, 528–29

skins

multiple, creating for same control, 532–33

with templates and images, 533–35 using Cascading Style Sheets (CSS) in, 535

Thread class, 1181 thumbnail page, 1030–33 ThumbnailViewer.aspx, 1032 ticket-granting service, 757 Time data types, 340

TimeConsumingPage.aspx, 980 Timeout, HttpSessionState setting, 217 timeout configuration, 624

timeout option, 696 timestamp-based updating, 273 timout setting, 222

Title attribute, 550

Title member, IWebPart Interface, 1058

Title property, WebPart class, 86, 513, 561, 1056, 1060