When trying to execute this code, specifically Response.Write(strCheckBoxSubscript) the following error is returned
Response object error 'ASP 0106 : 80020005'
Type Mismatch
/login/calendarchanges.ex.asp, line 0
An unhandled data type was encountered.
Response object error 'ASP 0106 : 80020005'
Type Mismatch
/login/calendarchanges.ex.asp, line 0
An unhandled data type was encountered.
Code:
For vItem = 1 to Request.Form.Count
if left(Request.Form.Key( vItem),3) = "fld" then
strCheckBoxSubscript = Split( Request.Form.Key( vItem ), "_" )
Response.Write(strCheckBoxSubscript) ' the problem lies here......
Response.end
aryParams( 0 ) = Array( "@PlayerID", VAR_INTEGER, PARAM_In, 4, session("PlayerId") )
aryParams( 1 ) = Array( "@TournamentId", VAR_INTEGER, PARAM_In, 8, Request.Form("TournamentID_" & strCheckBoxSubscript))
aryParams( 2 ) = Array( "@TournamentDetailID", VAR_INTEGER, PARAM_In, 4, Request.Form("TournamentDetailID_" & strCheckBoxSubscript))
aryParams( 3 ) = Array( "@ChangeDate", VAR_VarChar, PARAM_In, 8, Request.Form("ChangeDate_" & strCheckBoxSubscript))
aryParams( 4 ) = Array( "@TournamentChangeTypeID", VAR_VarChar, PARAM_In, 4, Request.Form("TournamentChangeTypeID_" & strCheckBoxSubscript))
Dba_ExecProcedureNonSelect "sp_InsertCalenderChangesViewed", aryParams, "baseline"
End if
Next