Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

ASP.NET Forum


You are currently viewing our ASP.NET Forum as a guest. Please register to participate.
Login



Reply
getting a better error message
Old 08-31-2005, 10:52 AM getting a better error message
numbenator's Avatar
Webmaster Talker

Posts: 516
Location: London
Trades: 0
Hi,

could someone please help us, I want to get better error messages than the standard server error I normally receive. How do i do this?

Also,

The below code is processing but with NO results. Records I select from comments are supposed to be updated to commentsA. Nothing happens. Can anyone see an issue.

cheers

Code:
 
		iMonth = cInt(Request.QueryString("month"))
		strSQL="SELECT * FROM comments where entryMonth="&iMonth
		set iRS=Server.CreateObject("ADODB.Recordset")
		iRS.Open strSQL, Conn 
	    
		if not (iRS.eof or iRS.bof) then
		iRS.MoveFirst 
		  do while NOT iRS.eof
		  
		    strSQL2 = "UPDATE commentsA SET studentName='"&iRS("studentName")&"',studenteMail='"&iRS("studenteMail")&"',portal='"&iRS("portal")&"',referal='"&iRS("referal")&"',comments='"&iRS("comments")&"',entrydate='"&iRS("entrydate")&"',entrymonth="&iRS("entrymonth")&",closed="&iRS("closed")&",reason='"&iRS("reason")&"',fixdate='"&iRS("fixdate")&"'"
			Set kuUpdate = Server.CreateObject("ADODB.Connection")
		  	kuUpdate.Open Conn
			kuUpdate.Execute strSQL	'errors here.		kuUpdate.Close
			iRS.movenext
		  loop		
		else
		  
		end if

cheers
Steve
__________________

Please login or register to view this content. Registration is FREE

Last edited by numbenator; 08-31-2005 at 10:59 AM..
numbenator is offline
Reply With Quote
View Public Profile Visit numbenator's homepage!
 
 
Register now for full access!
Old 08-31-2005, 11:53 AM
Minaki's Avatar
Defies a Status

Posts: 1,626
Location: Guildford, UK
Trades: 0
Have you tried turning off 'Use friendly HTTP Error Messages' under Tools - Options - Advanced (in IE) ?
__________________
Minaki Serinde MCP
"Wow, Linux is nearly on-par with Windows ME!"

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
Minaki is offline
Reply With Quote
View Public Profile Visit Minaki's homepage!
 
Old 08-31-2005, 12:11 PM
numbenator's Avatar
Webmaster Talker

Posts: 516
Location: London
Trades: 0
yes. I just get the standard error message. Tells me nothing at all.
__________________

Please login or register to view this content. Registration is FREE
numbenator is offline
Reply With Quote
View Public Profile Visit numbenator's homepage!
 
Reply     « Reply to getting a better error message
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.50480 seconds with 12 queries