Update Panel issue when adding RadDock

2 posts, 0 answers
  1. Brian
    Brian avatar
    10 posts
    Member since:
    Jul 2008

    Posted 12 Oct 2009 Link to this post

    I receive the following error in the CreateSaveStateTrigger  method when adding a RadDock dynamically to a RadDockZone

    {"A control with ID '39f41c90af750a469baaf9eacef10f1b6c83__53' could not be found for the trigger in UpdatePanel 'UpdatePanel1'."}


    '39f41c90af750a469baaf9eacef10f1b6c83__53'  is the id of the RadDock I am attempting to add.

    Here is my code for CreateSaveStateTrigger:

     

    private

     

    void CreateSaveStateTrigger(RadDock dock)

     

    {

     

    //Ensure that the RadDock control will initiate postback

     

     

     

     

     

    // when its position changes on the client or any of the commands is clicked.

     

     

     

     

     

    //Using the trigger we will "ajaxify" that postback.

     

     

     

     

    dock.AutoPostBack =

    true;

     

    dock.CommandsAutoPostBack =

    true;

     

     

    AsyncPostBackTrigger saveStateTrigger = new AsyncPostBackTrigger();

     

    saveStateTrigger.ControlID = dock.ID;

    saveStateTrigger.EventName =

    "DockPositionChanged";

     

    UpdatePanel1.Triggers.Add(saveStateTrigger);

     

    saveStateTrigger =

    new AsyncPostBackTrigger();

     

    saveStateTrigger.ControlID = dock.ID;

    saveStateTrigger.EventName =

    "Command";

     

    UpdatePanel1.Triggers.Add(saveStateTrigger);

    }


    Any help would be appreciated.

    Thanks,

    Brian

  2. Jim
    Jim avatar
    31 posts
    Member since:
    Jun 2009

    Posted 14 Oct 2009 Link to this post

    You cannot set IDs, to ASP.NET (AJAX) controls, that start with a numeric character.

    Try the following and you will see that an error will be thrown.
    <asp:Button ID="1A" runat="server" Text="Button" /> 
     
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top