摘要:
集合: 通过索引来访问成员,--引申到索引器 的使用 for foreach循环遍历 --引申到 IEnumerable IEnumerator(会引申到yield) 常用的集合操作,add, insert ,remove... 索引器: 类比从数组Array中拿一个元素值。 int[] a=new 阅读全文
摘要:
1. 涉及技术: Winservice: 用system身份后台跑; Quartz:定时任务; SVN 2. 思路: Quartz定时调用cmd 程序,执行SVN update 命令,整个程序寄宿在Winservice 3. 步骤: 1)service 用local system账户安装,通过Pro 阅读全文
摘要:
例如:http://www.cnblogs.com/JimmyZhang/archive/2008/12/07/1349454.html 启用Asp.Net脚本回调部分 阅读全文
摘要:
if(document.activeElement.id="txtIdHouse")
{
}var xx = document.activeElement.id;
xx就是现在获得焦点控件的id值 阅读全文
摘要:
即使在代码中添加了using System.Configuration 也不会自动出来ConfigurationManager, 需要到项目的Reference手动引用Configuration的dll 阅读全文
摘要:
要检查长度 后台或者js 阅读全文
摘要:
阅读全文
摘要:
vb.net 里面有两种messagebox,一种是vb语言提供的msgbox,另一种是.net framework 提供的messagebox.在此统一使用messagebox. Warning,提示警示信息: MessageBox.Show("You are not allowed to enquiry!", "Warning", MessageBoxButtons.OK, Message... 阅读全文
摘要:
1. 用Response.Write方法 代码如下: Response.Write(""); 不能调用脚本文件中的自定义的函数,只能调用内部函数,具体调用自定义的函数只能在Response.Write写上函数定 义,比如 Response.Write(""); 2.用ClientScript类 代码如下:在想调用某个javascript脚本函数的地方添加代码,注意要保证MyFun... 阅读全文
摘要:
html利用input防止回车提交 默认情况下,单个输入框,无论按钮的type="submit"还是type="button"类型,回车即提交。 1.当type="submit"时,无论有几个type="text"输入框,回车均表示提交。(submit) 2.当type="button"时,且存在多个输入框,回车不提交。(button) 3.解决单个输入框的回车即提交问题,参考第二点:可以增加一个... 阅读全文