Build Your Own ASP.NET 3.5 Website Using C# & VB (121 page)

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

BOOK: Build Your Own ASP.NET 3.5 Website Using C# & VB
8.37Mb size Format: txt, pdf, ePub

field’s properties

disallowing the addition of invalid

editing,
478

data,
299

Licensed to [email protected]

721

editing,
299

GetDirectories method,
608,
611,
612

options,
303

GetDirectoryName method, 614

properties, 303

GetExtension method,
614

tag,
96,
106

GetFileName method, 614
,
615

forms authentication,
553

GetFileNameWithoutExtension method,

adding a login page to Dorknozzle,

614,
615

555–557

GetFiles method, 608,
611
,
612

as cookie-based, 554

GetFileSystemEntries method,
608
,
611,

authenticating users, 557

612

configuring, 561–562

GetFullPath method, 615

constructing a basic login page,
554–

GetHashCode,
84

557

getName function, 63

working with, 554–567

GetPathRoot method,
615

forms authorization

GetT
empFileName method, 615

configuring, 562–564

GetT
empPath method, 615

FormsAuthentication class,
554
,
560

GetType,
84

Authenticate method,
565

Global Application Class template,
177

HashForStoringInConfigFile method,

Global.asax, 176–178

566

changing, 178

SignOut method,
567

creating, 177

FormsAuthenticationTicket class,
554

event handler in, 177

FormsIdentity class, 554

T
imeout property in, 188

FormView control,
371

greater-than operator (>),
326

From (address in email message), 620

greater-than or equal-to operator (>=),

FROM clause (SELECT query), 311

326

fully qualified name,
85

grid for the ControlID field, 646

functions,
61–65

grid records

and return types,
63
,
64

adding a new field, 459

declaring, 63
,
64

selecting, 458–463

number of parameters,
64

gridSortDirection property
, 538,
539

Functions.aspx, 64

gridSortExpression property,
538,
539,

542

G

GridView,
638,
639,
646

generic Control objects, 429

GridView action types

Generic Data Access,
349

and the events they trigger when

Get accessor,
139

clicked,
471

GETDATE function,
332

GridV
iew control, 370,
488
,
610
,
611

Licensed to [email protected]

722

and DetailsView update,
506

groups of values,
333–338

automatic presentation features,
452

COUNT function,
334

avoid overwriting columns, 495

filtering groups using HAVING,
336–

binding to DataSet, 530

337

binding to SqlDataAdapter and a

grouping records using GROUP BY,

DataSet, 521

334–336

binding to SqlDataReader,
447

binding to SqlDataSource,
490–498

H

calling BlindData method, 528

Handles keyword, 260

column controls, 454,
458

HasExtension method, 615

customizing columns,
453–454

HasFile property,
616

data key feature, 464–465

hashing,
552

deleting properties from, 491

passwords,
565–566

differences from Repeater control,
447

hashing algorithm,
566

displaying data drom a DataT
able, 525

HA
VING clause, 336–337

entering edit mode,
473–477

HeaderStyle,
442

event handling, 469–485

template,
372
,
421,

features, 446

504

in edit mode,
470
,
473

HeaderText property
, 454

PageSize,
495,
526

help desk,
158

paging,
498,
525–527

help desk page,
209–211,
650

proprties to set, 495

updating,
256–261

selecting grid records,
458–463

Help Desk Request form, 395

skins in, 456

help services,
22

smart tag options, 454

HelpDesk table,
389,
394

Sorting property
, 532–534

RequestID, 291,
393

styling with templates, skins and CSS,

setting the identity property,
393

454–458

HelpDesk table (employee database),

synchronization with DetailsView

284,
290,
291

control, 507

sample data from,
291

table generation,
451

HelpDeskCategories table (employee

template styles, 454

database), 284,
288
,
290

using, 446–452

HelpDeskStatus table (employee datausing templates,
477–481

base),
285,
288,
290

GridV
iew events, 469–473

HelpDeskSubjects table (employee data
GROUP BY clause, 334–336

base),
284,
288,
290

GroupName property
, 111

hidden form fields, 40

Licensed to [email protected]

723

HiddenField control, 109,
666

HtmlEncode method,
631

HidePanel subroutine, 114

HtmlForm control,
99
,
101

hierarchical structure of terms, 127–129
,

HtmlInputT
ext control, 99
,
101

131

HtmlSelect control, 99
,
101

hit counter
, 180–187
,
188

HTTP GET and POST requests,
636

homepage, 158

HTTP handlers and modules,
637

Host property
, 631

HTTP location,
161

Hosting Considerations

HttpCookie class,
191

ASP.NET,
697

HTTPS (HTTP Secure) protocol,
552

hot spots, 112–113

HttpUtility class, 631

HotSpotMode property,
113

HttpUtility
.HtmlEncode, 551

possible values, 113

HyperLink control,
111
,
666

HTML, 2,
636

HyperLinkField column,
459

tag,
112

div element,
114

I

select element,
115

(ID) property
, 642

HTML code,
97

identity increment, 277

HTML comments, 35

IDENTITY primary key,
345

HTML control classes, 98

IDENTITY property (columns), 277

HTML documents,
630

and primary key,
280

HTML elements

RequestID, 393

access to,
34

what they are not for,
289

HTML hidden form field, 40

identity seed, 277

HTML output

identity values,
339

visitors’ browser interpretation of,
551

IDENTITY_INSERT property
, 280

HTML pages,
96

If statement,
67,
69

HTML server controls,
97–99

combined with Else statement,
67

accessing properties of,
102–103

VB code,
68

assigning IDs t, 104

if statement (C# code),
68

essentially as HTML tags with run
IIf (in VB), 506

at="server" attribute,
100

Image control, 112
,
666

survey form example, 99–104

ImageButton control,
110
,
667

using, 99–104

ImageField column,
459

HTML tags,
27
,
36–37

ImageMap control,
112–113,
668

in HTML server controls, 100

Images folder,
204

manipulation,
98

ImageURL, 125

HtmlButton control, 99,
101,
113

ImageUrl attribute,
111

Licensed to [email protected]

724

Import directive,
30,
41

converting to a string,
64

Imports (VB), 85

Integrated Windows Authenticartion,

Impressions value,
125

356

IN operator,
328

IntelliSense,
166–167

use in SELECT queries,
319–320

Internet Explorer
, 170

indexing your content,
637

default browser,
15

IndexOutOfRangeException class,
214

Internet Information Services (IIS)

inheritance,
82

creating web project in,
161

initialization (variables), 55

permissions rule, 597

inline code,
33

intranet functionality
, 158

inline expressions, 33

invalid input data error message ,
366

inline style rules,
150

Is Nothing, 183

inner join, 323

IsBodyHtml property,
620,
630

input element,
105

IsPathRooted method,
615

inputString, 606

IsPostBack,
386

Insert method, 189

using appropriately,
387

INSERT query
, 388,
500

IsPostBack property
, 534

INSERT statement, 338–339
,
345

ItemCommand, 472

syntax, 338

ItemCommand event handler
, 424,
425,

InsertCommand property
, 543

428

inserting database records,
388–394

ItemDeleted event,
506

emplate> template, 479

ItemInserted event, 506

installing

ItemStyle, 443

required software,
5–11

emplate> template, 371
, 372
, 420
, SQL Server Management Studio Ex
421,
430,
479

press, 8–11

Button control in, 422
,
424

Visual Web Developer 2008 Express

ItemUpdated event, 506

Edition, 6

instance methods,
602

J

instantiating that class,
80

J#, 43

int (C#),
56,
64

Java, 43

int data type, 275

JavaScript, 2,
57
,
228,
636

int.TryParse method (C#),
366

debugging features,
15

Int32, 500

disabling,
261

Integer (VB), 55
,
56
,
64

disabling in Firefox,
233

Integer.TryParse method (VB),
366

disabling in Internet Explorer,
234

integers, 54,
57
,
58

disabling in Opera,
234

Licensed to [email protected]

725

libraries, 637

literal text,
27,
36–37

JavaScript XmlHttpRequest object,
636

LoadEmployeesList,
410

Locals window,
216

Other books

The Bride Tournament by Ruth Kaufman
Aces by Ian Rogers
The Fixer Of God's Ways (retail) by Irina Syromyatnikova
Learning to Spy by Moore, Leigh Talbert
Notable (Smith High) by Bates, Marni
3001. Odisea final by Arthur C. Clarke
Jedadiah's Mail Order Bride by Carlton, Susan Leigh
Jihad Joe by J. M. Berger
All That Is Red by Anna Caltabiano
Walking Dead Man by Hugh Pentecost