|
|
|
|
|
| | |
|
PowerASP active server pages asp.net microsoft .net framework sdk learn asp what is asp tutorial learn asp.net CJWSoft ASPProtect ASPBanner ASPClassifieds
(Advanced)
(Components)
(Database)
(General)
(Vbscript)

|
|
Subject: |
Error Messages |
From: |
Adam |
Date: |
6/29/2001 2:56:57 PM |
IP: |
12.2.27.125 |
Right now I have a form with 3 input fields: employee name, emp. number, and dept. I created an message to appear if the form is submitted but there is no result to avoid the nasty error messages that might scare some people. My code looks like this:
<% If Rs1.EOF and Rs1.BOF Then %>
<table align="center">
<tr>
<td colspan="3" width="610">
<font size="+1" color="#ff0000"><strong>YOUR SEARCH RETURNED NO RESULTS!<br><br>
Please try your SEARCH AGAIN.</strong><br><br></font>
<font face="arial" size="+2"><b><a href="/emp_info/default.asp">New Search</b></a>
<br><br>
</td>
</tr>
</table>
<% Else %>
It works for both the name and department fields. However if one accidentally enters a name into the number field then it goes back to the nasty error message produced by the ASP, not the one I created. I'm stumped so any suggestions would be much appreciated. Thanks! |
Follow Up - Re: Error Messages - Harpreet 7/1/2001 7:43:18 AM
Follow Up - Re: Error Messages - David Beal 7/2/2001 4:02:21 PM
|
|

|
|
|
|
|
|
|
|
|
|