Results 1 to 2 of 2

Thread: ASP Table Control

  1. #1

    Thread Starter
    New Member
    Join Date
    Nov 2004
    Posts
    3

    ASP Table Control

    I am using the ASP Table control to build a table that contains other controls - checkboxes and textboxes.

    The problem is that when the user changes the survey question country via a drop down list box the questions are the same - however then answers change -

    I rebuild the table on the page_load event each time however the controls inside the table cells (text/checkbox rebuilt with the same id) show the old values even through I build the controls and set their values based on a query that holds different results.

    I have tried setting the table enableviewstate to false in the page_init however this does not help.

    Does anyone have an answer for this problem. Thanks!

  2. #2
    PowerPoster
    Join Date
    Nov 2001
    Location
    Trying to reach and stay in the cloud
    Posts
    2,089

    Re: ASP Table Control

    The webform events are processed in the following manner:

    Page_Load
    Cached Events
    Post-Back Events
    Page_unload

    So i think you should "load" the new set of values in the "click event" of the button which post back the page/or the event code in which the post back occurs.

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