Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - no records found from SQL DB=problems
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

no records found from SQL DB=problems

 Post Reply Post Reply Page  <12
Author
neosarcastic View Drop Down
Newbie
Newbie


Joined: 06 February 2004
Status: Offline
Points: 12
Post Options Post Options   Thanks (0) Thanks(0)   Quote neosarcastic Quote  Post ReplyReply Direct Link To This Post Posted: 17 February 2004 at 12:51pm

Yes it is the source code for the error page, this is exactly what the broswer shows me, it is not formatted by html or anything..?  this is strange but I have found a way to customize the IIS 500 error pages.  so this is what i was able to pull:

ASP 500 Error
An error occurred processing the page you requested.
Please see the details below for more information.

COM Error Number -2146825267 (0x800A0BCD)
File Name /pftintranet/vendorresults.asp
Line Number 286
Brief Description Either BOF or EOF is True, or the current record has been deleted. Requested operation requires a current record. 
BUT:
Line 286, is:
<td width="182"> <span class="style12"> <%=(Recordset1.Fields.Item("VendorName").Value)%> </span> </td>

 

Back to Top
Semikolon View Drop Down
Senior Member
Senior Member


Joined: 09 September 2003
Location: Norway
Status: Offline
Points: 1718
Post Options Post Options   Thanks (0) Thanks(0)   Quote Semikolon Quote  Post ReplyReply Direct Link To This Post Posted: 17 February 2004 at 12:57pm

change line 286 to

If Not Recordset1.EOF Then Response.Write(Recordset1.Fields.Item("VendorName").Value)

Back to Top
Mart View Drop Down
Senior Member
Senior Member
Avatar

Joined: 30 November 2002
Status: Offline
Points: 2304
Post Options Post Options   Thanks (0) Thanks(0)   Quote Mart Quote  Post ReplyReply Direct Link To This Post Posted: 17 February 2004 at 2:17pm
You sure that your server has ASP installed? The source code sholdn't get to the browser
Back to Top
Semikolon View Drop Down
Senior Member
Senior Member


Joined: 09 September 2003
Location: Norway
Status: Offline
Points: 1718
Post Options Post Options   Thanks (0) Thanks(0)   Quote Semikolon Quote  Post ReplyReply Direct Link To This Post Posted: 17 February 2004 at 2:28pm

i think theres a problem with the server yeah..

you are running IIS right?

im not sure if ASP is installed by default, so you might check if it is

Back to Top
Mart View Drop Down
Senior Member
Senior Member
Avatar

Joined: 30 November 2002
Status: Offline
Points: 2304
Post Options Post Options   Thanks (0) Thanks(0)   Quote Mart Quote  Post ReplyReply Direct Link To This Post Posted: 17 February 2004 at 2:31pm
ASP is installed by default...
Back to Top
neosarcastic View Drop Down
Newbie
Newbie


Joined: 06 February 2004
Status: Offline
Points: 12
Post Options Post Options   Thanks (0) Thanks(0)   Quote neosarcastic Quote  Post ReplyReply Direct Link To This Post Posted: 17 February 2004 at 2:37pm

Thank you semikolon, I appreciate all your help, this I beleive will work as I have come across that piece of code earlier on a site and it was to be a suggestion in my next post. 

 

I know that ASP is installed on this server as it has been serving our current Intranet that is ASP for some time now.  I am building it's replacment. 

In case this line does not work I think I am content with customizing the error page to say: "Sorry, no results found"

Once again thank-you and i will post the result of that line.

Back to Top
 Post Reply Post Reply Page  <12

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.