Results 1 to 2 of 2

Thread: Values from dynamically loaded user controls

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Oct 2002
    Location
    california
    Posts
    245

    Values from dynamically loaded user controls

    Hello,

    I have created several User Controls and am loading them dynamically but can't figure out how to get values back from these controls during a postback.

    I know they dissappear at somepoint because they were dynamically loaded, but there must be a way to get their values when the form is submitted...isn't there?

    Thanks for any help at all. Email me if you have any questions about my question.

    - T

  2. #2
    Hyperactive Member
    Join Date
    Aug 2002
    Location
    Fort Collins, CO
    Posts
    366
    You have to recreate them in exactly the same order as they were originally created the first time around as early as possible(before viewstate is evaluated, best place is in OnInit). Doing that will ensure that their viewstate is persisted on postback.

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