Author: polix | Posted on: 11/10/2010 8:04:04 AM | Views : 277

Hello everybody,
I am writing an application with custom paging. For navigation I have created next, prev buttons. Also there are 5 link buttons with page numbers generated dynamicly. Today I faced serious problem. I have to click twice any button to do see any change in page numbers after page load. Let me show you the code
This is Page_Load
protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            PageIndex = 0;
        }
       
        bindData(PageIndex, NumRows);
        ViewState["currentPageIndex"] = PageIndex;
        loadLinkButtons(PageIndex); ...

Go to the complete details ...