Forums

This topic is locked

redirection to a customized 'no result' page.

Posted 13 Feb 2002 08:57:20
1
has voted
13 Feb 2002 08:57:20 Serge Chabert posted:
hi everybody.

i have successfully designed a search and a result page with a two parameters search.
Does anyone know how can i make a redirection to a specific page when there is no results to the search. i mean a customized
"no result" page instead of the current error msg that is displayed.

thanks

Replies

Replied 13 Feb 2002 09:49:57
13 Feb 2002 09:49:57 Viktor Farcic replied:
Something like:
<%
If TableName.EOF Then
Response.Redirect("NameOfThePage.asp"
End If
%>

Or, you can insert text instead of redirection...
<% If TableName.EOF Then %>
There are no results!!!
<% End If %>

<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
hi everybody.

i have successfully designed a search and a result page with a two parameters search.
Does anyone know how can i make a redirection to a specific page when there is no results to the search. i mean a customized
"no result" page instead of the current error msg that is displayed.

thanks


<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>

Viktor Farcic

TalkZone Manager
Replied 13 Feb 2002 11:44:42
13 Feb 2002 11:44:42 Serge Chabert replied:
thanks, iwill try it.

Reply to this topic