Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Community Forums
 Code Support: ASP (Non-Forum Related)
 Going Goofy Over Error
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Carefree
Advanced Member

Philippines
4207 Posts

Posted - 18 January 2012 :  04:01:25  Show Profile  Reply with Quote
Here's some code I wrote for a small school's registrar. If I don't search for a name, it displays properly. If I do, it freezes and then displays rows of edit/trash icons, followed by blank image place holders and more edit/trash icons, etc. until it times out.

Fixed that bug. Taking another approach on the last one.

Edited by - Carefree on 03 February 2012 10:49:46

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 02 February 2012 :  13:10:26  Show Profile  Send ruirib a Yahoo! Message  Reply with Quote
Does the page submit, when you try to change it? Does the code receive the desired page number correctly?


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

Carefree
Advanced Member

Philippines
4207 Posts

Posted - 03 February 2012 :  03:13:48  Show Profile  Reply with Quote
Yes, it submits from the bottom (2) and receives the page number correctly; but the top page changer doesn't function (except it will receive the correct page number when changed with the bottom). Unfortunately, the data displayed never changes; consistently reads from the first record.
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 03 February 2012 :  05:48:00  Show Profile  Send ruirib a Yahoo! Message  Reply with Quote
Regarding the first issue, I see one single call to Paging2 (line 778). If you have two dropdowns, shouldn't there be two? Also, this call just uses the value 1 for the parameter passed to the function.

Regarding page changes, what database are you using? This seems a modded topic.asp, and I have seen you changed the paging code associated with SQL Server / Access. I wonder why you would do that?


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

Carefree
Advanced Member

Philippines
4207 Posts

Posted - 03 February 2012 :  07:59:26  Show Profile  Reply with Quote
There's another call at about 867 using 2 (which works, except as noted above). There's nothing from topic.asp in it - I used the page change routine from members.asp but ran into a couple of odd results when searching for students (which is where the changed Access/Sql routine comes in).

Oh yes, forgot to specify. I'm testing on Access will be in MySql when implemented.

Edited by - Carefree on 03 February 2012 08:00:57
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 03 February 2012 :  08:18:05  Show Profile  Send ruirib a Yahoo! Message  Reply with Quote
At 867 what you have is the definition of a subprocedure, not a call to one.


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

Carefree
Advanced Member

Philippines
4207 Posts

Posted - 03 February 2012 :  08:52:17  Show Profile  Reply with Quote
lines 873-881 - should have been 876 not 867


If MaxPages > 1 Then
	Response.Write	"<table border=""0"" align=""left"">" & vbNewLine & _
		"	<tr>" & vbNewLine
	Call Paging2(2)
	Response.Write	"	</tr>" & vbNewLine & _
		"</table><br />" & vbNewLine
Else
	Response.Write	" " & vbNewLine
End If
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 03 February 2012 :  09:18:39  Show Profile  Send ruirib a Yahoo! Message  Reply with Quote
Not in the code that you posted...

Posting code like this, it's never the best option. I may not have copied it properly, but I have 913 lines, plus a few comments.


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.12 seconds. Powered By: Snitz Forums 2000 Version 3.4.07