Need to postback without updated control

2 posts, 0 answers
  1. Dana Cobb
    Dana Cobb avatar
    46 posts
    Member since:
    Mar 2007

    Posted 06 Dec 2011 Link to this post

    Hello, all.

        I am dynamically adding a checkbox to a page. I am dynamically setting autopostback to True and wiring up an event handler that runs a Procedure in the code-behind.
    The procedure doesn't update any controls on the page. It just runs code that sets a cookie. I don't want the postback 'flash' to happen, so I need to dynamically set the AddAjaxSetting. But I don't have anything to put into the "updatedControl" arguement.

    How can I run

     

     

    Me.RadAjaxManager1.AjaxSettings.AddAjaxSetting(myCheckBox, [nothing to put here])

     ? 
    It throws an "Object reference not set to an instance of an object" error.

    Thanks in advance,
    Dana

     

  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 06 Dec 2011 Link to this post

    Hello Dana,

    Check the following help documentation which explains adding ajax settings programmatically.
    Add AjaxSettings Programmatically

    -Shinu.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top