|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Throwing errors
I need to know how to throw an error when the SQL comes back empty from the database<br>For example:<br>The query asks: Select * from tblCustomer where cusID = Dave<br>if there is no Dave in the database I want to be able to redirect the user to an other page<br>Please help, thanks!
|
|
#2
|
|||
|
|||
|
When you are checking the returned values, look to see if you get anything. If nothing is returned, then redirect. It should be as easy as validating what is returned.<p> </p><p><hr size="1" width="50%" align="left" />dotNetBB Forum Developer<br><b><i>Building A Better Community, One Post At A Time</i></b><br><a href="http://www.dotnetbb.com" target="_blank">www.dotnetbb.com</a></p>
|
![]() |
| Viewing: ASP Free Forums > Database > SQL Development > Throwing errors |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|