This is a migrated thread and some comments may be shown as answers.

Need to postback without updated control

1 Answer 43 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Dana Cobb
Top achievements
Rank 1
Iron
Dana Cobb asked on 07 Dec 2011, 02:14 AM
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

 

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 07 Dec 2011, 05:09 AM
Hello Dana,

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

-Shinu.
Tags
Ajax
Asked by
Dana Cobb
Top achievements
Rank 1
Iron
Answers by
Shinu
Top achievements
Rank 2
Share this question
or