December 17, 2003 at 2:10 am
Hi,
I was wondering how I could give user friendly error messages given a particular error. I am using SQL Server Stored Procs and ASP/VBScript.
Any links/advice would be appreciated!
December 17, 2003 at 2:17 am
Would this help?
http://www.sqlservercentral.com/forum/link.asp?TOPIC_ID=18138
http://www.sqlservercentral.com/forum/link.asp?TOPIC_ID=18119
Frank
--
Frank Kalis
Microsoft SQL Server MVP
Webmaster: http://www.insidesql.org/blogs
My blog: http://www.insidesql.org/blogs/frankkalis/[/url]
December 17, 2003 at 2:40 am
Thanks for the links Frank. I was thinking along the lines of returning an error...but then redirecting the user to another page that confirms the error occurred, is this possible?
December 17, 2003 at 2:51 am
Oh sorry,
Something like this should work
On Error Resume Next
....
your db statement
Select Case Err.Number
Case.....
Response.Redirect somewhere else
End Select
I bet there are lots of examples on ASP sites. Might be worth a try.
Frank
--
Frank Kalis
Microsoft SQL Server MVP
Webmaster: http://www.insidesql.org/blogs
My blog: http://www.insidesql.org/blogs/frankkalis/[/url]
December 17, 2003 at 3:30 am
Thanks again, that´s exactly what I was looking for.
Viewing 5 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic. Login to reply