CodeSmith Community
Your Code. Your Way. Faster!

Page.DataBind kills PageSize logic.

Latest post 02-05-2007 7:05 PM by mike123. 3 replies.
  • 02-02-2007 7:06 PM

    Page.DataBind kills PageSize logic.

    .netTiers template version 2.0

    When I add Page.DataBind(); to the Page_Load method in the (generated) Admin site it breaks the PageSize functionality (always gets set to default:10).

    I am assuming I am destroying some postback data when I do the databind. Is there a way around this? Do I need to databind every control on the page separately?

     TIA - Brad

    • Post Points: 35
  • 02-05-2007 12:50 PM In reply to

    • mike123
    • Top 10 Contributor
    • Joined on 02-25-2005
    • Toronto, Ontario
    • Posts 735
    • Points 17,045

    Re: Page.DataBind kills PageSize logic.

    Brad, 

    Do you mean the pagesize dropdown doesn't retain selected value or you could not set it to anything via PageSelectorPageSizeInterval property?

     

    Mike Shatny
    --------------------------------------------------------------
    Member of the .netTiers team http://www.nettiers.com
    --------------------------------------------------------------

    Filed under: ,
    • Post Points: 35
  • 02-05-2007 12:56 PM In reply to

    Re: Page.DataBind kills PageSize logic.

    Correct on the former, the pagesize dropdown doesn't retain selected value if I throw Page.DataBind() into the Page_Load function.

     Thanks - Brad

    • Post Points: 35
  • 02-05-2007 7:05 PM In reply to

    • mike123
    • Top 10 Contributor
    • Joined on 02-25-2005
    • Toronto, Ontario
    • Posts 735
    • Points 17,045

    Re: Page.DataBind kills PageSize logic.

    Brad,

    It has been fixed (revision 473). Let me know if there are any issues.

     

     

    Mike Shatny
    --------------------------------------------------------------
    Member of the .netTiers team http://www.nettiers.com
    --------------------------------------------------------------

    • Post Points: 5
Page 1 of 1 (4 items) | RSS
Copyright © 2008 CodeSmith Tools, LLC
Powered by Community Server (Commercial Edition), by Telligent Systems