JoeOuts
  •  JoeOuts
  • 97.4% (Exalted)
  • YAF Developer Topic Starter
2009-06-22T04:35:54Z
Minor problem with paging on the active topics page.

Problem:
When you select a time range that brings up multiple pages of posts and you select anything greater than page one.

Then select one hour from the Since dropdown which should bring up only 1 page of posts.

This causes no data to display because the Pager.CurrentPageIndex was not reset to 0

Solution:
Add Pager.CurrentPageIndex = 0 to Since_SelectedIndexChanged in active.acsx.cs

protected void Since_SelectedIndexChanged(object sender, System.EventArgs e)
{
Pager.CurrentPageIndex = 0;
BindData();
}
KASL Technologies  - Specializing in Custom Web Application Development
Sponsor
mddubs
2009-06-22T06:23:36Z
Thanks Joe. I'll add it to source when I get back in town and boot my system back up.

fp:mddubs
UserPostedImage 
www.bunkerhollow.com  | www.careercomputing.com 
When I post fp:mddubs in a topic, I'm leaving my footprint there so I can track it once I get into coding/supporting. (Yes I stole this off Mek 🙂, who stole this off Ederon 🙂 )
Jaben
  •  Jaben
  • 100% (Exalted)
  • YAF Developer
2009-06-24T11:08:29Z
Thanks for the bug report.

About Us

The YAF.NET is an open source .NET forum project. YAF.NET is supported by an team of international developers who are build community by building community software.

Powered by Resharper Donate with PayPal button

Project Twitter Updates

Copyright © YetAnotherForum.NET & Ingo Herbote. All rights reserved