开发者

How to remove parent control without deleting its children 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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜