locked
update panel with no page reload stops navigation RRS feed

  • Question

  • User1488676540 posted

    I use update panel with condition if  (!Ispostback)  for page to stop refresh and show listview  ,and i click on data pager , 

    when i am on first page , i show 25 products , and click on 2 , it shows 25 to 50 products, but then again when i click on first page , no action is called,it does not show 1 to 25 products,,(i.e. it remains on second page with no action)...

    Monday, February 3, 2014 11:51 PM

Answers

  • User1488676540 posted

    hi

    if i commented in page_load , 

    //if(!IsPostBack)

    //{

    GridViewid.datasource();

    GridViewid.databind();

    UpdatePanelid.update();

    //}

    this works,,,, 

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, February 4, 2014 11:21 PM

All replies

  • User1734617369 posted

    Hi,

    Can you prove the code that you are using, that makes it a lot easier to answer your question!

    Best regards
    Johan

    Tuesday, February 4, 2014 6:07 AM
  • User555306248 posted

    If you remove the UpdatePanel is it working? You may need to Bind the data during Paging navigation and Call UpdatePanel.Update to reflect it.

    Tuesday, February 4, 2014 11:00 PM
  • User1488676540 posted

    hi

    if i commented in page_load , 

    //if(!IsPostBack)

    //{

    GridViewid.datasource();

    GridViewid.databind();

    UpdatePanelid.update();

    //}

    this works,,,, 

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, February 4, 2014 11:21 PM