07 2007 档案
Repeater中FooterTemplate中的控件提取
摘要:ASP.NET 2.0,Repeater中FooterTemplate并无FindControl方法,也无法将FooterTemplate转成RepeaterItem,虽然在Repeater的ItemDataBound事件中,RepeaterItemEventArgs参数用if (e.Item.ItemType == ListItemType.Footer)可判别出这个Footer,但其他时候不行... 阅读全文
posted @ 2007-07-23 20:31 Jeff.Yang 阅读(1388) 评论(2) 推荐(0)
控件存在检测
摘要:操作控件时,一般应检测其存在性:if ( null != myControl ) ...但即便直接出现在Form下的控制,如果没有用FindControl找出来,这样检测时仍然出错。 阅读全文
posted @ 2007-07-05 12:49 Jeff.Yang 阅读(217) 评论(0) 推荐(0)