Read Build Your Own ASP.NET 3.5 Website Using C# & VB Online
Authors: Cristian Darie,Zak Ruvalcaba,Wyatt Barnett
Tags: #C♯ (Computer program language), #Active server pages, #Programming Languages, #C#, #Web Page Design, #Computers, #Web site development, #internet programming, #General, #C? (Computer program language), #Internet, #Visual BASIC, #Microsoft Visual BASIC, #Application Development, #Microsoft .NET Framework
with parameterized DELETE query,
Licensed to [email protected]
734
with parameterized INSERT query,
Standard table view
, 296
standard web controls, 659–678
with parameterized UPDATE query,
standard web server controls,
106–115
SqlCommand object comm
static method,
602
SqlCommandBuilder object,
543,
545
StaticItemTemplate,
204
stored procedure
SqlConnection object conn
for DetailsView records,
481
SqlDataAdapter,
544
stored procedures,
341–346
use with employee directory,
414–415
SqlDataAdapter class, 488,
518,
520
StreamReader
SqlDataAdapter object, 515,
523,
545
reading files using,
608
properties,
543
SqlDataReader class,
348
, 376,
377,
445,
StreamReader object, 604
,
606
,
607
StreamWriter class,
597
string concatenation operator
, 67
SqlDataSource object,
488
,
489
,
511
string functions,
330–332
advantages/disadvantages, 514–515
string variables,
606
binding to DetailsView,
499–511
binding to GridView
, 490–498
converting numbers to,
64
generating INSERT, UPDATE and
strongly-typed languages,
57
Structured Query Language (
see
SQL)
use with address book,
494
style attribute,
150
Style Builder tool,
198
style properties,
151
style rules,
149
inline,
150
Style Sheet template,
197
StackTrace property
, 226
Standard tab
Licensed to [email protected]
735
external,
149
System.Configuration namespace, 381
styled address book,
457
System.Data.SqlClient namespace, 348
styles
System.IO namespace,
595
,
600
,
608
, 612
groups of classes,
596
CssClass property
, 152–154
System.Net.Mail namespace, 596,
619
editing,
198
System.W
eb.Security namespace, 554
element type selectors,
150
System.Web.UI.HtmlControls
inline,
150
System.Web.UI.MasterPage class,
143
styling the DetailsView,
467–468
System.Web.UI.Page class,
97
styling the GridView with templates,
System.Web.UI.UserControl class,
134,
skins and CSS,
454–458
System.Web.UI.W
ebControls class, 85
subclass
System.Web.UI.WebControls namespace,
deriving,
82
System.W
indows.Forms namespace, 107
T
Submit Request button, 259
,
386
,
389,
table relationships
submitButton_Click method,
233,
260,
creating and visualizing,
300
subqueries,
323
many-to-many relationships,
304–305
one-to-many relationships, 302–304
components,
50
one-to-one relationship,
301
Table View,
296
page events,
52
tables
web control,
50–51
tables (databases),
265
subtraction operator (-),
326
TagPrefix,
140
survey form
TargetSite property,
226
HTML server control example, 99–104
template styles
switch statements,
610
in GridView
, 454
SwitchPage event handler
, 132
TemplateControl class,
84
system databases,
269
TemplateField column,
459
,
479,
481
Licensed to [email protected]
736
templates
Timeout property
, 188
access to controls within, 422
T
o (address in email message), 620
Repeater control,
372
using in DetailsView,
477
collapsed tabs,
167
using in GridView
, 477–481
controls,
168
terminating a loop,
74
ternary operator,
506
test query
Validation tab,
238
TOP keyword,
321
ToString,
84
text
placement inside a web form, 105
arithmetic functions,
329–330
text box,
105
data and time functions, 332–333
adding to a web form,
105
string functions,
330–332
text files,
595
working with groups of values,
333–
(
see also
files)
reading content from a, 604–607
TreeV
iew control, 127–129,
131
,
204
events,
693
setting up permissions, 597–599
methods,
693
triggers
to update an UpdatePanel, 643–647
TextBox,
167
Triggers,
646
for username and password,
559
TextBox control,
108
, 136
, 479,
603,
625
, T
ry-Catch-Finally blocks, 368,
370,
387
,
TextBox controls,
479
Try-Catch-Finally construct,
214
, 223
widening,
479
syntax,
221
TextBox web server control,
105
,
106
TextMode property,
108
U
theme folder
unauthenticated users (
see
anonymous
cerating,
196
users)
Throw keyword,
223
Update Employee button,
406–410
, 411–
timeout attribute,
561
Licensed to [email protected]
737
Update Item button,
433,
434–437
,
438
editing,
439
SQL Server
, 356
UPDATE statements,
339–340
storage in authentication ticket,
560
updateButton control,
399
usernames
UpdateCommand property,
543
security,
553
UpdateEmployee stored procedure,
437
users,
3
UpdateEmployeeDetails,
481
authenticating,
587
using triggers to update, 643–647
loging out,
567
UpdatePanel control,
638–643,
644
, 647
, storing in W
eb.config file, 564
Users role
UpdatePanelAnimationExtender
, 655
UpdateProgress control,
638
,
640,
641,
updating database records, 395–410
use WHERE statement,
396
updating DetailsView records,
481–485
V
updating existing data,
338–341
validating user input,
550
validation controls, 227–262
,
550,
649–
uploading files from the client to the
CompareValidator
, 240–243
server,
596
CustomValidator
, 249–252
UPPER function,
330
RangeValidator,
243–244
RegularExpressionValidator,
246–249
user access
RequiredFieldValidator,
239–240
using,
238–252
setting individual rules,
585
ValidationSummary,
244–246
validation errors,
246
user display
customizing,
589–593
default,
255
Validation tab,
238
user interaction
ValidationExpression,
247
ValidationGroup property,
253
Licensed to [email protected]
738
ValidationSummary control,
244–246,
writing content to a text file, 600
ValidatorCallout,
648
VB.NET code (
see
VB)
ValidatorCalloutExtender
, 653
View Code,
163
ValidatorCalloutExtender Control ExV
iew Log button, 700
tender
, 649–652
View More details button,
422
, 427,
428
, Value property,
109
variable declarations,
55