这是VB编写的如何用C#来写 If Container.GetType Is GetType(UpdatePanel) Then
                    CType(Container, UpdatePanel).ContentTemplateContainer.Controls.Add(Panel)
这里container是函数传过来的对象