【20090311-01】c#中判断控件类型

--

判断控件类型
        1、可用控件的GetType函数,control.gettype().tostring,输出的类型带命名空间,如system.web.ui.webcontrols.button
        2、也可用TypeName函数,typename(control),输出的类型不带命名空间,如button控件直接输出button类型

        3、Code

posted @ 2009-03-11 16:52  WillWayer  阅读(11848)  评论(0编辑  收藏  举报