|
I am dynamically adding user controls to the page
Such as: there is a freetextbox control in uc.ascx
Then click the button in index.aspx to dynamically add uc.ascx control to index.aspx
When adding a uc, that is, when the page has only one uc.ascx, the freetextbox control can be used normally
But when the number of added uc>1, the freetextbox control is invalid. Clicking on it does not respond, and the webpage prompts: There is an error on the webpage
But when I delete the dynamically added uc, the freetextbox is normal again.
Thank you |
|