Pro ASP.NET 2.0 In CSharp 2005 (2005) [eng]
.pdf
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 |
|
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 |
