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

get value from usercontrols inside placeholder after partial postback with radajaxmanager.

1 Answer 27 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Brett
Top achievements
Rank 1
Brett asked on 26 Mar 2013, 08:25 PM
I have a web application that is using RadAjaxManager to enable partial postback to the page.
I have a placeholder on the page that I am adding usercontrols to it's controls collection through code behind after a partial postback. 
The controls are created and displayed correctly. however when I go to retrieve the values, the placeholder controls collection is  null even though i am not updating the placeholder on partial postback via ajaxsetting.
Since I am not updating the placeholder on postback of the submit button, the controls do not dissapear off the page but the placeholder.controls collection is empty/null.
Any ideas?

1 Answer, 1 is accepted

Sort by
0
Brett
Top achievements
Rank 1
answered on 26 Mar 2013, 08:50 PM
I figured it out, I had to make sure to recreate the controls on page_load NOT page_init which is what I kept trying initially.
Tags
Ajax
Asked by
Brett
Top achievements
Rank 1
Answers by
Brett
Top achievements
Rank 1
Share this question
or