Expand|Select|Wrap|Line Numbers
- dim url,ojRS, SQL_Input
- set ojRS = Server.CreateObject("ADODB.Command")
- Set ojRS.ActiveConnection = C
- SQL_Input ="CP.dbo.usp_cs_Links"
- ojRS.CommandType = adCmdStoredProc
- set ojRS = C.Execute(SQL_Input,,adCmdText)
- url = ojRS(LastKeyValue)
- Response.Write("<tr>")
- Response.Write("<td Class=Field> ID:</td>")
- Response.Write("<td><A Class=TableLink HREF = 'http://"" url ""/cs/login.asp?SysKey="& SecEncode(iId) &" &srcserver=CP' > " &SecEncode(iId) &" </a> </td>")
- Response.Write("</tr>")
- objRS.close
- Set ojRS = Nothing
'http://"" url ""/cs/login.asp?SysKey="& SecEncode(iId) &" &srcserver=CP'
the url is actually the value of the from the database..the stored proc .
the output is the LastKeyValue from the stored proc .
there is an error
Can anyone please check the syntax.
thanks in advance