index | search | no replies | posting guidelines | help | login | register |
Index » Products » ASP DataGrid |
| |||||||
Jul 29 2004, 10:41 PM |
| ||||||
Yimei from: Myrtle Creek, OR | After adding .SetProcedure("qaur") Call .AddParameter("param1", "200401") Call .AddParameter("param2", "200406") I got this err msg: The connection cannot be used to perform this operation. It is either closed or invalid in this context. How do I tell the grid to use command object? My original asp page would say: Set conn = Server.CreateObject("ADODB.Connection") conn.open strConn Set cm = Server.CreateObject("ADODB.Command") cm.CommandText = "qaur" cm.CommandType = adCmdStoredProc cm.ActiveConnection = conn Set R = cm.Execute (RecordsAffected, Array(200401,200406), adCmdStoredProc) Thanks for your help. | ||||||
Pages: (1) [1] |