Это немного шире, поскольку мы ничего не знаем о ссылке или хранимой процедуре.
- получить значения параметров ссылки, если таковые имеются, используя request.querystring.
2.
передать параметры хранимой процедуре с помощью объекта команды ADO
Вот пример, но его нужно изменить для фактической хранимой процедуры
Function GetTest()
Dim cmd, cn
Set cmd = Server.CreateObject("ADODB.Command")
Set cmd.ActiveConnection = dbconn
With cmd
.CommandText = "spGetCourseResultsByID"
.Parameters.Append .CreateParameter("@RETURN_VALUE", adInteger, adParamReturnValue)
.Parameters.Append .CreateParameter("@MedLicID", adVarChar, adParamInput,50,MedLic_ID)
.Parameters.Append .CreateParameter("@TestID", adVarChar, adParamInput,50,Test_ID)
.execute
strResponse = Cint(.Parameters(0).value )
End With
With Response
if strResponse > 0 then
.Write strSuccess
else
.Write strFailure
end if
End With
End Function