... device requests 40 0 15.2 Logging and handling errors 40 2TECHNIQUE 92 Intercepting, and handling errors with a custom module 40 315.3 Extending ASP. NET HttpRuntime 40 7TECHNIQUE 93Running your site ... modules 44 3 TECHNIQUE 101 Configuring application warm-up in IIS 7.5 44 5appendix B Data access fundamentals 44 8 TECHNIQUE 102 UsiQuerying the database using ADO .NET 44 9TECHNIQUE 103 Using stored ... to query the database 45 2TECHNIQUE 1 04 Persisting data into the database 45 3 TECHNIQUE 105 Writing XML 45 6 TECHNIQUE 106 Generating XML from a data source 45 8 TECHNIQUE 107 Reading XML 45 9...
... 102 UsiQuerying the database using ADO .NET 44 9TECHNIQUE 103 Using stored procedures to query the database 45 2TECHNIQUE 1 04 Persisting data into the database 45 3 TECHNIQUE 105 Writing XML 45 6 ... 1 ASP. NET FUNDAMENTALS 11 Getting acquainted with ASP. NET4.0 31.1 Meet ASP. NET 4 1.2 Typical architecture in ASP. NET applications 71.3 Your first ASP. NET Web Form 131 .4 What’s new in ASP. NET ... device requests 40 0 15.2 Logging and handling errors 40 2TECHNIQUE 92 Intercepting, and handling errors with a custom module 40 315.3 Extending ASP. NET HttpRuntime 40 7TECHNIQUE 93Running your site...
... Windows Server 200 3. You also need to install IIS (Internet■INTRODUCTIONxxxiv6218ch00FM.qxd 3/ 24/ 06 5:21 PM Page xxxivCHAPTER 1 ■ INTRODUCING THE .NET FRAMEWORK 11Figure 1 -4 shows the .NET ... discussed in Chapter 24. (However, you still use the sample code directly in your web projects.) To run ASP. NET pages, you need Windows 200 0 Professional, Windows XP Professional,Windows 200 0 Server, ... pro-gramming language such as Visual Basic 200 5.Beginning ASP. NET 2 .0in VB 200 5 assumes you want to master ASP. NET, starting fromthe basics. Using this book, you’ll build your knowledge until...
... the same time.Darie-Watson _46 81C02.fm Page 26 Tuesday, September 20, 200 5 4: 51 AMxviiIntroductionWelcome to Beginning ASP. NET 2 .0 E-Commerce in C# 200 5: From Novice to Professional! The explosive ... operating system.Darie-Watson _46 81C02.fm Page 23 Tuesday, September 20, 200 5 4: 51 AMDarie-Watson _46 81Front.fm Page xiv Thursday, September 22, 200 5 5:26 AM8213592a11 745 6a 3 40 854d18cee57 603 ... shortest path to a complicated, hard -to- maintain, and inflexible system. In many data access tutorials or introductory materials, you’ll be shown howto perform simple database operations using a simple...
... CREATING THE PRODUCT CATALOG: PART I57Table 3-1. SQL Server 200 5 Data TypesData Type Size in Bytes Description and NotesInt 4 Stores whole numbers from -2, 147 ,48 3, 648 to 2, 147 ,48 3, 647 . You’ll ... Unicode version and goes to a maximum of 4, 000 characters, whereas Char can store 8 ,00 0 characters. When the size of the strings to be stored is fixed, it’s more efficient to use Char rather than ... September 15, 200 5 5 :42 AM 74 CHAPTER 3 ■ CREATING THE PRODUCT CATALOG: PART I 4. Finally, you need to give the ASPNET account privileges to the objects inside the BalloonShop database, such...
... RowNumber <= 10 IMPLEMENTING PAGING USING SQL SERVER 200 0The presented solution doesn’t work with SQL Server 200 0, because SQL Server 200 0 doesn’t support the ROW_NUMBER function used to generate ... bit, OnCatalogPromotion bit)Darie-Watson _46 81C 04 . fm Page 132 Monday, September 19, 200 5 9:51 AM8213592a11 745 6a 3 40 854d18cee57 603 148 CHAPTER 4 ■ CREATING THE PRODUCT CATALOG: PART II•Write the ... you’re interested in. • You can write stored procedures that return only the requested page of products.Darie-Watson _46 81C 04 . fm Page 125 Monday, September 19, 200 5 9:51 AM8213592a11 745 6a 3 40 854d18cee57 603 132CHAPTER...
... control in the following exercise.Darie-Watson _46 81C06.fm Page 2 04 Wednesday, August 24, 200 5 7 :02 AMCHAPTER 8 ■ CATALOG ADMINISTRATION229 database, he or she won’t be able to find out the stored ... algorithm is D033E22AE 348 AEB5660FC2 1 40 AEC35850C4DA997. In the following example, you’ll simply store this hash value in web.config. ASP. NET 2 .0 works by default with an SQL Server Express database ... Wednesday, August 24, 200 5 7 :02 AM8213592a11 745 6a 3 40 854d18cee57 603 CHAPTER 5 ■ SEARCHING THE CATALOG197SELECT @Matches = 0 /* Analyze the phrase word by word */WHILE LEN(@Phrase)> ;0 BEGIN SELECT...
... Tuesday, September 20, 200 5 4: 52 AM8213592a11 745 6a 3 40 854d18cee57 603 CHAPTER 10 ■ DEALING WITH CUSTOMER ORDERS375Exercise: Displaying Orders in OrdersAdmin.aspx1. The first step is to add the necessary ... shown in Table 9-1.Darie-Watson _46 81C09.fm Page 336 Tuesday, September 20, 200 5 7:28 AM3 60 CHAPTER 10 ■ DEALING WITH CUSTOMER ORDERS/* Insert a new record into Orders*/DECLARE @OrderID intINSERT ... 9-11.Darie-Watson _46 81C09.fm Page 339 Tuesday, September 20, 200 5 7:28 AM 346 CHAPTER 9 ■ CREATING A CUSTOM SHOPPING CARTAdministering the Shopping CartNow that you’ve finished writing the shopping cart,...
... (isDecrypted)Darie-Watson _46 81C12.fm Page 44 6 Monday, September 12, 200 5 6: 50 AMDarie-Watson _46 81C 10. fm Page 40 0 Tuesday, September 20, 200 5 4: 52 AM 44 8CHAPTER 12 ■ ADDING CUSTOMER ACCOUNTSCustomer LoginsAs ... earlier in this chapter, allowing customers to log into the site simply means using the same login system that administrators use, but defining a Customers role to use rather than an Administrators ... EventArgs e) { string stringToEncrypt = encryptBox.Text; string stringToDecrypt = decryptBox.Text; string encryptedString = StringEncryptor.Encrypt(stringToEncrypt); if (stringToDecrypt == "")...