Not enough info on the user control part. You only have how to load the user control itself, dynamically, from the host page, which only in rare circumstances would you need to do (you could always redirect a user to another page, instead). You don't say how one might load something within that user control dynamically, how to get handles to the form, etc. In my user control's code-behind I put
and tried
after creating "myDropDown " as a DropDownList object and adding some items to it and it gives an error: "Object reference not set to an instance of an object".
Code:
public HtmlForm aspnetForm;
Code:
aspnetForm.Controls.Add(myDropDown);
Comment