Posted on: 2/14/2014 10:04:14 AM | Views : 611

<div class="body"> Hi,
I have an asp.net custom server control, in which I have given template support. The template controls render fine. But, the events of template controls are not getting fired. For example, If I added an asp dropdownlist as a template in my custom control and select any item from dropdownlist and raised the postback, the selected item did not get updated in dropdownlist ( i.e selectedIndex, selectedText of the control remains the same as like initial rendering.), also I am not able to trigger the SelectedIndexChanged server side event of dropdownlist.
 
I have used NamingContainer for rendering the template controls. The codes are as follows,
 
<code>
 
This is my source:
        private < ...

Go to the complete details ...