日期:2014-05-20  浏览次数:20633 次

如何通过控件名对控件进行操作?[急]
ASP.NET控件ID为a1,a2,a3……,如何通过反射来对这些控件的属性、方法进行操作啊?


------解决方案--------------------
你可以用Page.FindControl方法来根据ID获得Control。

------解决方案--------------------
正如楼上所说:
你可以用Page.FindControl方法来根据ID获得Control。
------解决方案--------------------
I think it might be one of the methods