Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can I customize a friendlier client-side error mesage? 4

Status
Not open for further replies.

ColonelBlue

Technical User
Jun 24, 2004
110
US
For example I get this:

Microsoft OLE DB Provider for Indexing Service error '80040e14'

Incorrect syntax near ' and )') AND (Filename LIKE '%.html' OR Filename LIKE '%.asp' OR Filename LIKE '%.htm') ORDER BY Rank DESC'. Expected STRING. SQLSTATE=42000

/search/runsearch.asp, line 199

How much can I customize/tweak a client side error and how?

Thanks in advance.
 
Put some error-checking code around the function that calls your recordset (or any code that can produce an error message like this) and then response.write out a more friendly error message. You can make it as elaborate or as simple as you wish.

------------------------------------------------------------------------------------------------------------------------
"Men occasionally stumble over the truth, but most of them pick themselves up and hurry off as if nothing ever happened."
- Winston Churchill
 
Thanks chopstick.
Obviously I am not an expert. Error checking code? Would you please be so kind to point me toward the right direction? Just a few examples somewhere and I can find my way.

Cheers

CB
 
Another option would be to customize your 500-100.asp page or create a new one. You can configure what page is used as the error page in the Internet Services Manager for IIS (or something like that).

-T

 
Thanks for the follow-up, johnwm and Tarwn. I guess I should have elaborated a little more in my original response...

------------------------------------------------------------------------------------------------------------------------
"Men occasionally stumble over the truth, but most of them pick themselves up and hurry off as if nothing ever happened."
- Winston Churchill
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top