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.
精彩评论