我爱我老婆
摘要: CheckBoxField竟然不支持int型的数据现扩展加上int的支持,如果为0,则不选中,为1,则选中.代码: public class CheckBoxFieldPro : CheckBoxField { protected override void OnDataBindField(object sender, EventArgs e) { System.Web.UI.Control co... 阅读全文
posted @ 2009-04-30 12:15 DataFlow 阅读(189) 评论(0) 推荐(0) 编辑
摘要: 使用DropDownList,我们习惯在所有待选数据前面加一个空白项,或者"请选择"的提示,微软却没有,这可能就是中西文化的差异.现在扩展为DropDownListPro经过代码调试,和看源代码,得知默认选中的行为是在SelectedIndex的Get方法中设置的.所以重载该方法,即可达到目的.public class DropDownListPro: DropDownList { public ... 阅读全文
posted @ 2009-04-30 12:09 DataFlow 阅读(262) 评论(0) 推荐(0) 编辑