Results 1 to 2 of 2

Thread: The page is rendered two times ???

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Oct 2002
    Location
    Gammapolis
    Posts
    1,474

    The page is rendered two times ???

    The scenario:
    1-When the page is first loaded the user sees an alphabetical list, then clicks on each and gets the data in a datagrid (in the same page but the pages is loaded again, (not postback)
    2-There is a dropdownlist that he can choose the number of records per page. The dropdown Viewstate and AutoPostBack is set to true.
    3- If he clicks on each item in a datagrid then another page loads showing more definitons. There is a 'back' link in that page that brings him back to the original page.A classic case of datagrid usage in ASP.NET.
    4-When the users chooses another alphabet, the dropdown list value is set to its original value --This is what excpected.
    5- Navigating the data (change datagrid pages) wont make any change in the dropdown list--This is excpected too.

    The Problem:
    When the user clicks on the 'Back' link in the second page and comes back to the first page the dropdownlist value changes to the original value then to the value that was set before going to that page. This makes the page to be rendered twice. I checked the SelectedIndexChanged event of the DropDownList and its not fired at all in this process. I dont know whats wrong, am i missing something here? is it a feature or...
    'Heading for the automatic overload'
    Marillion, Brave, The Great Escape, 1994

    'How will WE stand the FIRE TOMORROW?'
    Eloy, Silent Cries and Mighty Echoes, The Vision - Burning, 1979

  2. #2
    New Member
    Join Date
    Jun 2003
    Posts
    9

    postBack

    If not Page.ispostBack then
    load your datas
    end if
    angiras

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width