|
it
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
need help : error in asp
after "objConn.execute(sql)" the page got error
how can i show the error? there is an Object error ? regards, yuval Well, what was the "error" you got?
Show code. There is an error object, but how you use it will depend what language you're using. Tim. Show quote "moshe" <yuval***@gmail.com> wrote in message news:f4a9785d.0503061110.50d0c8fb@posting.google.com... > after "objConn.execute(sql)" the page got error > how can i show the error? there is an Object error ? > > regards, > yuval My guess is that objConn is not an object and that tells me that your
connection string is incorrect and you did not make a connection to your database. Did you do any error checking after trying to connect? As Tim says..."show us your code" Brian Show quote "moshe" <yuval***@gmail.com> wrote in message news:f4a9785d.0503061110.50d0c8fb@posting.google.com... > after "objConn.execute(sql)" the page got error > how can i show the error? there is an Object error ? > > regards, > yuval "moshe" <yuval***@gmail.com> wrote in message On Error Resume Nextnews:f4a9785d.0503061110.50d0c8fb@posting.google.com... > after "objConn.execute(sql)" the page got error > how can i show the error? there is an Object error ? objConn.execute(sql) If Err.Number <> 0 Then Response.Write "Error #" & Err.Number _ & " : " & Err.Decription Response.End End If HTH, Phill W. "Phill. W" wrote in message news:d0htjo$96q$1@yarrow.open.ac.uk... and then...: "moshe" <yuval***@gmail.com> wrote in message : news:f4a9785d.0503061110.50d0c8fb@posting.google.com... : > after "objConn.execute(sql)" the page got error : > how can i show the error? there is an Object error ? : : On Error Resume Next : objConn.execute(sql) : If Err.Number <> 0 Then : Response.Write "Error #" & Err.Number _ : & " : " & Err.Decription : Response.End : End If On Error Goto 0 ? -- Roland Hall /* This information is distributed in the hope that it will be useful, but without any warranty; without even the implied warranty of merchantability or fitness for a particular purpose. */ Technet Script Center - http://www.microsoft.com/technet/scriptcenter/ WSH 5.6 Documentation - http://msdn.microsoft.com/downloads/list/webdev.asp MSDN Library - http://msdn.microsoft.com/library/default.asp |
|||||||||||||||||||||||