Skip to content

Commit

Permalink
First commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Spearing authored and Spearing committed Oct 4, 2016
0 parents commit f126a53
Show file tree
Hide file tree
Showing 53 changed files with 17,607 additions and 0 deletions.
8 changes: 8 additions & 0 deletions 579.html
@@ -0,0 +1,8 @@
Chapter 1: Introducing Performance Tuning and Optimization <br />
Chapter 2: Introducing ASP.NET Applications <br />
Chapter 3: Writing Optimized Data Access Code<br />
Chapter 4: Optimizing Application and Session State Management <br />
Chapter 5: Caching ASP.NET Applications<br />
Chapter 6: Writing Optimized Web Services <br />
Chapter 7: Stress Testing and Monitoring ASP.NET Applications <br />
Chapter 8: Debugging and Tracing ASP.NET Applications
Expand Down
Binary file added 842.pdf
Binary file not shown.
Binary file added 844.pdf
Binary file not shown.
Binary file added 9781590590720.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Chapter 02/Chapter 2/AspNetChap2MSI.msi
Binary file not shown.
Binary file added Chapter 02/Chapter 2/Setup.Exe
Binary file not shown.
7 changes: 7 additions & 0 deletions Chapter 02/Chapter 2/Setup.Ini
@@ -0,0 +1,7 @@
[MSILoader]
MSIFileName=AspNetChap2MSI.msi
[FXSection]
SupportedRuntimes=1.1.4322
InstallUrl=http://go.microsoft.com/fwlink/?LinkId=9832
Message=1.1.4322
UseDefaultMessage=1
Binary file not shown.
Binary file added Chapter 03/Chapter 3/AspNetChap3/Setup.Exe
Binary file not shown.
7 changes: 7 additions & 0 deletions Chapter 03/Chapter 3/AspNetChap3/Setup.Ini
@@ -0,0 +1,7 @@
[MSILoader]
MSIFileName=AspNetChap3MSI.msi
[FXSection]
SupportedRuntimes=1.1.4322
InstallUrl=http://go.microsoft.com/fwlink/?LinkId=9832
Message=1.1.4322
UseDefaultMessage=1
64 changes: 64 additions & 0 deletions Chapter 03/Chapter 3/Chapter 3 README.txt
@@ -0,0 +1,64 @@
README for Chapter 3 Sample Project


Project: AspNetChap3
---------------------

Purpose: Illustrates various data access methods using ADO.NET and ASP.NET. Illustrates the various methods of the Command, DataReader,
DataAdapter, DataSet, and Typed DataSet objects.

NOTE, you must run the SQL Script: DataAccess.sql, in Query Analyzer, before running the AspNetChap3 project.
Please refer to the sample project installation instructions for more details.


Page Purpose
------------------------------ ------------------------------
Menu.aspx Default page with links to each of the sample pages.

ExecNonQuery.aspx Demonstrates how to use the ExecuteNonQuery method to call a stored procedure to update the inventory of a product.

ExecScalar.aspx Demonstrates how to use the ExecuteNonQuery method to retrieve scalar data.

ExecSPOutParam.aspx Demonstrates how to use Output Parameters collection to retrieve data.

ExecSPReturnDR.aspx Demonstrates how to use a DataReader to retrieve different sets of data.
Retrieves a scalar value, a row of data, and multiple rows of data.

ExecSPReturnDS.aspx Demonstrates how to use a DataSet and a typed DataSet to retrieve differnet sets of data.
Retrieves a row of data, and multiple rows of data.
Output techniques include binding to a DataGrid, reading the elements programmatically, and using a DataView.

ExecSPReturnXML.aspx Demonstrates how to use the XmlReader to retrieve multiple rows of data.

ExecSPReturnXSD.aspx Demonstrates how the DataSet object interacts with XML and XSD.

UpdateDSWithDataGrid1.aspx Demonstrates how to use the DataSet and DataAdapter objects to update a data
source. Uses the SQLCommandBuilder to autogenerate the update command.

UpdateDSWithDataGrid2.aspx Demonstrates how to use the DataSet and DataAdapter objects to update a data
source. Uses a parameterized stored procedure for the update command.

UpdateWithParams.aspx Demonstrates how to use the Parameters collection and the Command object to update a row of data.

ShowSQLExceptions.aspx Demonstrates how to handle a SQL Exception.


Component Purpose
------------------------------ ------------------------------
dsCustOrderHist XSD schema for the dsCustOrderHist typed DataSet.

DataAccess Component that exposes generic and helper data access wrapper methods that are used throughout the sample project.
- ExecScalar Uses the ExecuteScalar method to execute a stored procedure and returns a scalar value.
- ExecSPOutputParams Uses the ExecuteNonQuery method to execute a stored procedure.
- ExecSPReturnDR Uses the ExecuteReader method to execute a stored procedure and return a DataReader.
- ExecSPReturnDS Uses the DataAdapter object to execute a stored procedure, fill and return a DataSet.
- ExecSPReturnDS1 Uses the DataAdapter object to execute a stored procedure, fill and return a typed DataSet.
- ExecSPReturnXML Uses the ExecuteXmlReader method to execute a stored procedure and return a XmlReader.
- GetProductInventory Returns the product name, unit price, and units in stock using the Parameters collection.
- SetupParameters Private subroutine that populates the Command objects's Parameters collection based on the passed in string array.
- UpdateCustomerProfile Updates a customer's profile using the the DataAdapter Update method and an assocaited DataSet.
- UpdateData Private subroutine that updates the DataSet with the passed in string array.




Expand Down
Binary file added Chapter 03/Chapter 3/DataAccess.sql
Binary file not shown.
Binary file added Chapter 04/Chapter 4.zip
Binary file not shown.
Binary file added Chapter 04/Chapter 4A.zip
Binary file not shown.
Binary file added Chapter 05/ApressWS1.zip
Binary file not shown.
Binary file added Chapter 05/Chapter 5A.zip
Binary file not shown.
Binary file added Chapter 05/Chapter 5B.zip
Binary file not shown.
7 changes: 7 additions & 0 deletions Chapter 06/AspNetChap6.sql
@@ -0,0 +1,7 @@

-- This stored procedure is required by the Web Service:
-- WebService6A.wsNorthwind
-- Web Method: GetCustomerList()
CREATE PROCEDURE CustomerList
AS
SELECT CustomerID, CompanyName FROM Customers
20 changes: 20 additions & 0 deletions Chapter 06/Chapter 6 README.txt
@@ -0,0 +1,20 @@

Chapter 6 README

Please install the sample projects from:

Chapter 6 \ AspNetChap6 \ AspNetChap6MSI \ Debug \ Setup.exe

This will install a solution of the following 4 projects:

1. AspNetChap6 - The client application
2. WebService6A - Web Service 1 of 2
3. WebService6B - Web Service 2 of 2
4. AspNetChap6MSI - A deployment project for the solution

Please run the custom .sql script prior to running the sample code.
This will create a custom stored procedure in the Northwind database.

See the README file in the SQL Scripts folder for detailed instructions on how
to run the .sql script. (You will not need this README file if you are
already familiar with Query Analyzer).
Expand Down
Binary file added Chapter 06/Chapter 6/AspNetChap6MSI.msi
Binary file not shown.
Binary file added Chapter 06/Chapter 6/Setup.Exe
Binary file not shown.
7 changes: 7 additions & 0 deletions Chapter 06/Chapter 6/Setup.Ini
@@ -0,0 +1,7 @@
[MSILoader]
MSIFileName=AspNetChap6MSI.msi
[FXSection]
SupportedRuntimes=1.1.4322
InstallUrl=http://go.microsoft.com/fwlink/?LinkId=9832
Message=1.1.4322
UseDefaultMessage=1
45 changes: 45 additions & 0 deletions Chapter 07/Chapter 7 ACT Test/AspNetChap7ACTTest.act
@@ -0,0 +1,45 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE Project>
<Project version="1.0.527.0" created="8/25/2002 4:57:15 PM" modified="1/1/2000">
<Test name="Login_Select_Checkout_1" file="Login_Select_Checkout_1.vbs" type="Dynamic" settings="testProperties-Login_Select_Checkout_1.xml">
<ClientGroup name="Default Clients Group"/>
<Report name="report-Login_Select_Checkout_1-Aug 26, 2002 02-07-30" file="report-Login_Select_Checkout_1-Aug 26, 2002 02-07-30.xml"/>
<Report name="report-Login_Select_Checkout_1-Aug 28, 2002 00-59-44" file="report-Login_Select_Checkout_1-Aug 28, 2002 00-59-44.xml"/>
<Report name="report-Login_Select_Checkout_1-Aug 28, 2002 23-09-39" file="report-Login_Select_Checkout_1-Aug 28, 2002 23-09-39.xml"/>
<Report name="report-Login_Select_Checkout_1-Aug 28, 2002 23-23-44" file="report-Login_Select_Checkout_1-Aug 28, 2002 23-23-44.xml"/>
<PerfCounters file="perfCounters-Login_Select_Checkout_1.xml"/>
</Test>
<Test name="Category_Fiction_History" file="Category_Fiction_History.vbs" type="Dynamic" settings="testProperties-Category_Fiction_History.xml">
<UserGroup name="Default Users Group"/>
<ClientGroup name="Default Clients Group"/>
<Report name="5_SimConnections" file="report-Category_Fiction_History-Aug 28, 2002 23-31-05.xml"/>
<Report name="10_SimConnections" file="report-Category_Fiction_History-Aug 28, 2002 23-35-11.xml"/>
<Report name="1_SimConnection" file="report-Category_Fiction_History-Aug 28, 2002 23-40-38.xml"/>
<Report name="7_SimConnections" file="report-Category_Fiction_History-Aug 28, 2002 23-48-18.xml"/>
<Report name="15_SimConnections" file="report-Category_Fiction_History-Aug 28, 2002 23-56-08.xml"/>
<Report name="25_SimCOnnections" file="report-Category_Fiction_History-Aug 29, 2002 00-00-42.xml"/>
<Report name="50_SimConnections" file="report-Category_Fiction_History-Aug 29, 2002 00-06-19.xml"/>
<Report name="75-SimConnections" file="report-Category_Fiction_History-Aug 29, 2002 00-12-45.xml"/>
<Report name="100-SimConnections" file="report-Category_Fiction_History-Aug 29, 2002 17-29-55.xml"/>
<PerfCounters file="perfCounters-Category_Fiction_History.xml"/>
</Test>
<Test name="BrowserTest" file="BrowserTest.vbs" type="Dynamic" settings="testProperties-BrowserTest.xml">
<UserGroup name="Default Users Group"/>
<ClientGroup name="Default Clients Group"/>
<Report name="report-BrowserTest-Aug 29, 2002 15-38-19" file="report-BrowserTest-Aug 29, 2002 15-38-19.xml"/>
<Report name="report-BrowserTest-Aug 29, 2002 15-40-06" file="report-BrowserTest-Aug 29, 2002 15-40-06.xml"/>
<PerfCounters file="perfCounters-BrowserTest.xml"/>
</Test>
<Test name="PageTest" file="PageTest.vbs" type="Dynamic" settings="testProperties-PageTest.xml">
<UserGroup name="Default Users Group"/>
<ClientGroup name="Default Clients Group"/>
<Report name="report-PageTest-Aug 29, 2002 16-01-14" file="report-PageTest-Aug 29, 2002 16-01-14.xml"/>
<Report name="report-PageTest-Aug 29, 2002 16-02-12" file="report-PageTest-Aug 29, 2002 16-02-12.xml"/>
<Report name="report-PageTest-Aug 29, 2002 16-04-17" file="report-PageTest-Aug 29, 2002 16-04-17.xml"/>
<PerfCounters file="perfCounters-PageTest.xml"/>
</Test>
<UserGroupDef name="Default Users Group" file="userGroup-Default Users Group.xml"/>
<UserGroupDef name="SampelUserGroup1" file="userGroup-SampelUserGroup1.xml"/>
<ClientGroupDef name="Default Clients Group" file="clientGroup-Default Clients Group.xml"/>
<DefaultValues file="properties.xml"/>
</Project>
56 changes: 56 additions & 0 deletions Chapter 07/Chapter 7 ACT Test/BrowserTest.vbs
@@ -0,0 +1,56 @@
Const SERVER_NAME = "kenneth-01"
Const PATH = "/Duwamish7vb"
Dim oIE6Request
Set oIE6Request = Test.CreateRequest
Call MakeIE60GETRequest(oIE6Request)
Call SendRequest(oIE6Request)

Sub SendRequest(oRequest)
Dim oConnection

Set oConnection = Test.CreateConnection(SERVER_NAME, 80, False)

If (oConnection Is Nothing) Then
Test.Trace("Error: Unable to create connection.")
Else
If (oConnection.IsOpen) Then
oRequest.Path = PATH
Set oResponse = oConnection.Send(oRequest)
' check for a bad connection or request
If (oResponse Is Nothing) Then
Test.Trace("Error: invalid request or host not found ")
Else
Test.Trace("Server response:" & oResponse.ResultCode)
End If
Else
Test.Trace("Connection was closed")
End If
Call oConnection.Close()
End If
End Sub

Function MakeIE60GETRequest(oRequest)
' function returns a request object with the appropriate header setup
Dim oHeaders
If not (oRequest is nothing) Then
' set request line
oRequest.Verb = "GET"
oRequest.HTTPVersion = "HTTP/1.1"
Set oHeaders = oRequest.Headers
With oHeaders
Call .RemoveAll()
' set header fields
Call .Add("Accept", "*/*")
Call .Add("Accept-Language", "en-us")
Call .Add("Connection", "Keep-Alive")
Call .Add("Host", "kenneth-01")
Call .Add("User-Agent", " Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)")
Call .Add("Accept-Encoding", "gzip, deflate")
Call .Add("Cookie", "(Automatic)")
End With
Else
Set oRequest = Nothing
Test.Trace("Invalid Request object")
End If
Set MakeIE60GETRequest = oRequest
End Function

0 comments on commit f126a53

Please sign in to comment.