开发者

How to unload a child user Control that is Loaded on parent control in asp.net

开发者 https://www.devze.com 2023-03-18 20:46 出处:网络
I Am working with user controls in Asp.net. I am loading a user Control(Usercontro2) in a Control panel ofa parent child control (Usercontro1).

I Am working with user controls in Asp.net.

I am loading a user Control(Usercontro2) in a Control panel of a parent child control (Usercontro1).

Now I want to unload the control on the click of link button of Usercontro2

Ho开发者_如何学运维w can I do it in the Child user control.


You should do nothing in this case. Once the button is clicked, the postback is sent to the server. If you do not create the UserControl again in this request, it won't appear in the client after the page is posted back.

0

精彩评论

暂无评论...
验证码 换一张
取 消