Can someone have a look at my code to see why it may crash my server everytime I run it. The other pages work fine.
NT4.0
IIS.4.0
CFServer4.0
Thanks
<!---
findlot.cfm
--->
<!--- enforce security --->
<CFSET #Privelige#="Claim">
<CFINCLUDE TEMPLATE="/PDC/openContent.cfm">
<!--- optional parameters --->
<CFPARAM NAME="NameSearchString" DEFAULT="[^-aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ1234567890,<>./?;:{}[[]]`~!@$&*()+=\| ##[%][_]]">
<!--- get the matching Lot --->
<CFQUERY NAME="Lot" DATASOURCE="PDC">
SET NOCOUNT ON
SELECT DISTINCT LotID
From Lot
WHERE Lot.LotID LIKE
'%#NameSearchString#%' ORDER BY LotID
</CFQUERY>
<!--- get the claim window --->
<CFQUERY NAME="ClaimWindow" DATASOURCE="PDC">
SET NOCOUNT ON
SELECT ClaimStart, ClaimLength
FROM Person, Account, BillingMethod
WHERE Person.PersonID = #Cookie.CurrentPersonID#
AND Person.AccountID = Account.AccountID
AND Account.BillingMethodID = BillingMethod.BillingMethodID
</CFQUERY>
<H1>Find Lot</H1>
<!--- two primary columns --->
<TABLE>
<TR><TD VALIGN="TOP">
<!--- display the results --->
<TABLE>
<CFLOOP QUERY="Lot">
<TR>
<TD VALIGN="TOP">
<!--- get the Lot --->
<CFQUERY NAME="Lot" DATASOURCE="PDC">
SET NOCOUNT ON
SELECT DISTINCT LotID
From Lot
WHERE Lot.LotID LIKE
'%#NameSearchString#%' ORDER BY LotID
</CFQUERY>
<!--- output --->
<TD>
<CFOUTPUT>
<a HREF="../../Claim/enterItemClaims.cfm?LotID=#LotID#">#LotID#</a>
</CFOUTPUT>
</CFLOOP>
</TD>
<!--- allow the user to enter another search --->
<CFFORM METHOD="POST" ACTION="#CGI.Path_Info#">
<TABLE>
<TR>
<TD>Lot#: </TD>
</TR>
<TR>
<TD><CFINPUT TYPE="TEXT" NAME="NameSearchString"></TD>
</TR>
<TR>
<TD>
<INPUT TYPE="SUBMIT" VALUE="Search">
<INPUT TYPE="RESET" VALUE="Reset">
</TD>
</TR>
</TABLE>
</CFFORM>
</TR>
</TABLE>
<CFINCLUDE TEMPLATE="/PDC/closeContent.cfm"><!---
enterLotReport.cfm
NT4.0
IIS.4.0
CFServer4.0
Thanks
<!---
findlot.cfm
--->
<!--- enforce security --->
<CFSET #Privelige#="Claim">
<CFINCLUDE TEMPLATE="/PDC/openContent.cfm">
<!--- optional parameters --->
<CFPARAM NAME="NameSearchString" DEFAULT="[^-aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ1234567890,<>./?;:{}[[]]`~!@$&*()+=\| ##[%][_]]">
<!--- get the matching Lot --->
<CFQUERY NAME="Lot" DATASOURCE="PDC">
SET NOCOUNT ON
SELECT DISTINCT LotID
From Lot
WHERE Lot.LotID LIKE
'%#NameSearchString#%' ORDER BY LotID
</CFQUERY>
<!--- get the claim window --->
<CFQUERY NAME="ClaimWindow" DATASOURCE="PDC">
SET NOCOUNT ON
SELECT ClaimStart, ClaimLength
FROM Person, Account, BillingMethod
WHERE Person.PersonID = #Cookie.CurrentPersonID#
AND Person.AccountID = Account.AccountID
AND Account.BillingMethodID = BillingMethod.BillingMethodID
</CFQUERY>
<H1>Find Lot</H1>
<!--- two primary columns --->
<TABLE>
<TR><TD VALIGN="TOP">
<!--- display the results --->
<TABLE>
<CFLOOP QUERY="Lot">
<TR>
<TD VALIGN="TOP">
<!--- get the Lot --->
<CFQUERY NAME="Lot" DATASOURCE="PDC">
SET NOCOUNT ON
SELECT DISTINCT LotID
From Lot
WHERE Lot.LotID LIKE
'%#NameSearchString#%' ORDER BY LotID
</CFQUERY>
<!--- output --->
<TD>
<CFOUTPUT>
<a HREF="../../Claim/enterItemClaims.cfm?LotID=#LotID#">#LotID#</a>
</CFOUTPUT>
</CFLOOP>
</TD>
<!--- allow the user to enter another search --->
<CFFORM METHOD="POST" ACTION="#CGI.Path_Info#">
<TABLE>
<TR>
<TD>Lot#: </TD>
</TR>
<TR>
<TD><CFINPUT TYPE="TEXT" NAME="NameSearchString"></TD>
</TR>
<TR>
<TD>
<INPUT TYPE="SUBMIT" VALUE="Search">
<INPUT TYPE="RESET" VALUE="Reset">
</TD>
</TR>
</TABLE>
</CFFORM>
</TR>
</TABLE>
<CFINCLUDE TEMPLATE="/PDC/closeContent.cfm"><!---
enterLotReport.cfm