|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
what if no results are found in SQL
Built a search/results page using dreamweaver and ASP.
newbie to ASP. When i search for a miss-spelled parameter or a parmater that does not match any records in my SQL database i get a 500- internal server error....yes show friendly http error messages is checked off. (I have tried it with both on and off.) Is there some sort of IF condition in the SQL or ASP language that i can use to either show an empty results page or redirect the user to my own "Sorry No results" page. ![]() |
|
#2
|
||||
|
||||
|
Code:
If(rs.eof) Then
'There were no records returned for the search
Response.write("No records returned")
End If
|
![]() |
| Viewing: ASP Free Forums > Database > Microsoft SQL Server > what if no results are found in SQL |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|