asp.net - ChildControl of a childcontrol is null when calling from Main control -


I created WebSourceControl in asp.net which had a database dropdown. When I put this control in the webform directly, it runs well, but if I try to add this control to the control as a control in the form of other controls

  child control hair Control = new child control (); Main Control Control.Ad (Child Control)  

, the dropdown of the hair control is not Institated (is empty) so that I run into an exception by trying to bind the data in the dropdown.

If it is a user control (do you have an SSC file?) Then you use the load controller Requires to instantiate the ASP.NET object.


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -