YAFLogo

JoeOuts
  • JoeOuts
  • 97.4% (Exalted)
  • YAF Developer Topic Starter
15 years ago
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
  • mddubs
  • 100% (Exalted)
  • YAF Developer
15 years ago
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
15 years ago
Thanks for the bug report.