开发者

How to remove parent control without deleting its children in asp.net c#?

开发者 https://www.devze.com 2023-01-24 20:24 出处:网络
I want to remove parent control (which is span in this case) without deleting its children controls from container. how can I accomplish this in asp.net c#?

I want to remove parent control (which is span in this case) without deleting its children controls from container. how can I accomplish this in asp.net c#?

you can see the code he开发者_开发百科re: http://pastebin.com/9NiriWXN

Note: I can easily find the "newsright" control and return its parent (which is span in this case)


You'll need to get the children first and the parent of the parent control and then add the children back to the parent of the parent control.

0

精彩评论

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

关注公众号