[CLOSED] XRender: UpdateContent error

  1. #1

    [CLOSED] XRender: UpdateContent error

    Last edited by Daniil; Jan 09, 2014 at 4:36 AM. Reason: [CLOSED]
  2. #2
    Hi @jamesand,

    I guess you are using a Click DirectEvent for those Buttons. Probably, you don't recreate the user control during each request.

    The example that you mentioned:
    http://examples2.ext.net/#/XRender/U...UpdateContent/

    This is the essential part to get working the DirectEvents inside the user controls.
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!string.IsNullOrWhiteSpace(CurrentControl.Text))
        {
            this.LoadUserControl(CurrentControl.Text);
        }
    }
  3. #3
    Quote Originally Posted by Daniil View Post
    Probably, you don't recreate the user control during each request.
    [/CODE]
    That's right Daniil, I didn't.

    Works as expected. Thanks.
  4. #4
    Hope I'm not barging in but this is exactly why I started working on http://forums.ext.net/showthread.php...-Hidden-Fields

    If you're planning to reuse ajaxable UserControls a lot or your website is public, you might want to consider the control security model at least.
  5. #5
    Quote Originally Posted by michaeld View Post
    Hope I'm not barging in but this is exactly why I started working on http://forums.ext.net/showthread.php...-Hidden-Fields

    If you're planning to reuse ajaxable UserControls a lot or your website is public, you might want to consider the control security model at least.
    Thank you Michael, I will consider it, althought neither it is a public website nor it is intended to reuse user controls heavily.

    Regards.

Similar Threads

  1. [Bug 2.3.1]: UpdateContent exception on loaded control
    By michaeld in forum 2.x Legacy Premium Help
    Replies: 29
    Last Post: Mar 14, 2014, 4:51 AM
  2. UpdateContent function showing error
    By yash.kapoor in forum 2.x Help
    Replies: 2
    Last Post: Jan 10, 2013, 6:42 AM
  3. UpdateContent() problem.
    By berger in forum 1.x Help
    Replies: 5
    Last Post: Aug 01, 2012, 6:41 PM
  4. Replies: 1
    Last Post: Oct 19, 2011, 4:30 PM
  5. [CLOSED] Viewport1.UpdateContent() does not work
    By 78fede78 in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Dec 16, 2010, 12:41 PM

Tags for this Thread

Posting Permissions