% '******************************************************* '* ASP 101 Sample Code - http://www.asp101.com/ * '* * '* This code is made available as a service to our * '* visitors and is provided strictly for the * '* purpose of illustration. * '* * '* http://www.asp101.com/samples/license.asp * '* * '* Please direct all inquiries to webmaster@asp101.com * '******************************************************* %> <% ' Questions about adovbs.inc? ' See "What is Adovbs.inc and Why Do I Need It?" ' http://www.asp101.com/articles/john/adovbs/default.asp Dim strSQL Dim cnnSalesDB Dim rstSalesmen, rstSales Dim iRequestedID ' Some basic checking and cleaning of the input iRequestedID = Trim(Request.QueryString("id")) iRequestedID = Replace(iRequestedID, "'", "''") If IsNumeric(iRequestedID) Then iRequestedID = CInt(iRequestedID) Else iRequestedID = 0 End If ' The form links back to this same file passing back the id %>
Pick a salesman to see the details of one of their sales: