是不是C#人太少了?Asp.net的多一点?
解决方案 »
- winform里怎么实现“应用”的按钮
- IIS Quartz 失效的问题
- 索引值超出数组界限
- Access数据库问题
- 我用c#读取BT种子文件的信息,CS1061: “System.IO.StreamReader”不包含“Length”的定义
- 调查:在学习C#过程中遇到的难题是什么?
- ???向这里的高手请教ListView里的大图标间距设置问题 ???
- 使用vs2008 自带的水晶报表,制作了一个简单的显示dataset的数据,在浏览时提示輸入sqlserver 的用戶名及密碼
- c#+mysql的用户登陆程序出问题了,有没有朋友能帮忙看看
- Aforge.net 怎么链接远程摄像头?
- 在C#中加flash组件时,为什么在编译成功以后执行时,flash6可以读出flash文件所带的文本文件,而flash7不可以
- 自定义用户控件重载OnPaint后,滚动条无法出现。
至于验证那我就知道 怎么自动添加了 我想总要自己重新再写的
当然要全部自己添加的话
估计id要固定了
Control myControl = (Control) myEnumerator.Current
控件类型 = Convert.ToString(myControl.GetType())
private void CollectControls(ControlCollection cc) {
foreach(Control c in cc) {
//Which Controls do we support?
if (c is TextBox ||
c is ListBox ||
c is DropDownList ||
c is RadioButton ||
c is RadioButtonList ||
c is CheckBox ||
c is CheckBoxList ||
c is BaseValidator ||
c is Button)
_ControlContainer.Rows.Add(new object[]{cc, c, cc.IndexOf(c)});
//Are there further Controls inside current Control?
if (c.HasControls())
CollectControls(c.Controls);
}
}