[CLOSED] [1.0] Issue with dynamicly created user controls (viewstate)

  1. #1

    [CLOSED] [1.0] Issue with dynamicly created user controls (viewstate)

    Again I have problems to change usercontrols during runtime.
    I added sample code to reproduce the problem.
    Please start the application and then click on a radio button on the left site.
    Change the radio-button selection until the error occurs (2nd change).

    I wil send the sample code to support@ ...

    Klaus
    Attached Thumbnails Click image for larger version. 

Name:	uc001.jpg 
Views:	94 
Size:	91.4 KB 
ID:	1873  
    Last edited by Daniil; Nov 11, 2010 at 12:20 PM. Reason: [CLOSED]
  2. #2
    Hi,

    Please clarify did you send? Just I see no new incoming message.
  3. #3
    I sent the mail at 10:26 AM.

    Klaus
  4. #4
    Hi,
    did you receive the mail?

    Klaus
  5. #5
    Hi Klaus,

    We have not received your email. Please re-send to support@object.net.
    Geoffrey McGill
    Founder
  6. #6
    Quote Originally Posted by geoffrey.mcgill View Post
    Hi Klaus,
    We have not received your email. Please re-send to support@object.net.
    Hi Geoffrey,

    done !

    Klaus
  7. #7
    Hi,

    I tested your sample.

    I am not sure why you create two user controls during initial page load and do not the same during ajax request. Therefore you have different control tree during initial page load and ajax request (viewstate requires the same control tree)

    Possible solutions:
    - Remove viewstate: for example, RemoveViewState="true" for ResourceManager

    or

    - enable ViewState for DirectEvent to ensure that updated ViewState will be used on next request
    <Change OnEvent="det_cusrad01_Change" Timeout="300000" ViewStateMode="Enabled">
    or

    - remove InitAllUserControls calling from cusdetail_PreInit and remove cusdetail_SaveStateComplete handler
  8. #8
    Hi Vladimir,

    thank you for your possible solutions.
    I tried solution no 3 first and it seems to work fine.

    But I remember that there was a reason for this curious construction (InitAllControls ...) in a previous version of ext.net (FindControl).

    So you can mark this thread as closed.
    Thank you, Klaus

Similar Threads

  1. Get text of dynamicly created DisplayField
    By Birgit in forum 2.x Help
    Replies: 1
    Last Post: Jun 18, 2012, 11:12 PM
  2. Replies: 2
    Last Post: Jan 25, 2012, 3:18 PM
  3. Replies: 7
    Last Post: Jun 28, 2011, 11:13 AM
  4. Replies: 14
    Last Post: Nov 03, 2010, 3:40 PM
  5. [CLOSED] Create controls dynamicly
    By Ningdev in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Jun 03, 2009, 6:59 AM

Posting Permissions