Forums
This topic is locked
error handling....
Posted 13 Apr 2003 17:20:45
1
has voted
13 Apr 2003 17:20:45 adli mad nor posted:
Hi PLease help..how to divert an error page to a "sorry your data cannot be found" page in asp..
example: the data i want is not in the database,so an error occur. on the error page i wish to put an error message and a next button to continue??
how to do???
Replies
Replied 13 Apr 2003 23:05:04
13 Apr 2003 23:05:04 johan tessens replied:
use EOF and BOF to check if data from your database is empty, if so redirect to error handeling page.
Replied 15 Apr 2003 14:06:38
15 Apr 2003 14:06:38 adli mad nor replied:
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
use EOF and BOF to check if data from your database is empty, if so redirect to error handeling page.
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
thanx..but do you have a sampel code..its for my final year thesis..im really grateful for your help ..if you have some useful links about error handling pls post it thanx ..sorry for the trouble..
use EOF and BOF to check if data from your database is empty, if so redirect to error handeling page.
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
thanx..but do you have a sampel code..its for my final year thesis..im really grateful for your help ..if you have some useful links about error handling pls post it thanx ..sorry for the trouble..
Replied 16 Apr 2003 15:18:24
16 Apr 2003 15:18:24 Vince Baker replied:
<%
If yourrecordsetname.EOF and yourrecordsetname.BOF then
Response.write("yourerrorpage.asp"
end if
%>
Regards
Vince
Visit my home: www.chez-vince.com
VBScript | ASP | HTML | SQL | Oracle | Hosting
If yourrecordsetname.EOF and yourrecordsetname.BOF then
Response.write("yourerrorpage.asp"

end if
%>
Regards
Vince
Visit my home: www.chez-vince.com
VBScript | ASP | HTML | SQL | Oracle | Hosting