[CLOSED] Error: 'dom.style' by loading UserControl

  1. #1

    [CLOSED] Error: 'dom.style' by loading UserControl

    Hello,

    I have trouble with my sample in attachement.
    When I load page with some content via LoadControl, I wont load other UserControl with DirectMethod.

    In this case on end loading UserControl I test update panel with "panel.Render()" and get following message:

    "
    Line: 10568
    Error: 'dom.style' is null or not an object
    "

    If I change with "panel.UpdateContent()" I get following message:

    "
    Line: 2659
    Error: Expected ';'
    "

    Can you see my sample for this trouble.
    Attached Files
    Last edited by Daniil; Aug 31, 2010 at 7:25 AM. Reason: [CLOSED]
  2. #2
    Hello!

    It happens because of a center region cannot be re-rendered. To get more information please follow this link.

    Please wrap the pnlCenter in any container, for example:

    Example
    <ext:Container runat="server" Region="Center" Layout="Fit"> 
        <Items>
            <ext:Panel ID="pnlCenter" runat="server" />
        </Items>
    </ext:Container>
  3. #3
    Quote Originally Posted by Daniil View Post
    Hello!

    It happens because of a center region cannot be re-rendered. To get more information please follow this link.

    Please wrap the pnlCenter in any container, for example:

    Example
    <ext:Container runat="server" Region="Center" Layout="Fit"> 
        <Items>
            <ext:Panel ID="pnlCenter" runat="server" />
        </Items>
    </ext:Container>
    Thanx, this is solution.

Similar Threads

  1. Replies: 8
    Last Post: Feb 15, 2012, 9:04 AM
  2. [CLOSED] Loading UserControl window from Parent Form throwing error
    By rnachman in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Mar 10, 2011, 3:43 PM
  3. [CLOSED] Issue with loading usercontrol
    By smart+ in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Aug 03, 2010, 7:46 PM
  4. [CLOSED] [1.0] Javascript error when loading usercontrol from code
    By klaus.schwarz in forum 1.x Legacy Premium Help
    Replies: 17
    Last Post: Jul 12, 2010, 3:59 PM
  5. [CLOSED] Javascript Error loading dynamic usercontrol 1.0
    By SymSure in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Apr 01, 2010, 3:05 AM

Posting Permissions