posted @ 2012-04-11 16:38
高兴happy
阅读(9093)
推荐(1)
摘要:
身份证校验 function isChinaIDCard(StrNo) { StrNo = StrNo.toString() if (StrNo.length == 18) { var a, b, c if (!isInteger(StrNo.substr(0, 17))) { return false } a = parseInt(StrNo.substr(0, 1)) * 7 + parseInt(StrNo.substr(1, 1)) * ...
阅读全文
posted @ 2012-04-11 15:42
高兴happy
阅读(541)
推荐(0)
摘要:
static void Main(string[] args) { //放进去的顺序不一定和执行的顺序一致!多线程执行中需要注意的一点! //把任务分配给10个人,执行完成的顺序是不可预测的,不确定的 for (int i = 0; i /// 多线程下载按钮事件 /// /// /// private void button2_Click(object sender, EventArgs e) { /...
阅读全文
posted @ 2012-03-04 11:28
高兴happy
阅读(516)
推荐(0)
摘要:
View Code 1 /// 2 /// 初始化加载 3 /// 4 public static void Update() 5 { 6 //文件夹路径 7 string path = @"D:\408"; 8 //获取文件夹 9 DirectoryInfo dir = new DirectoryInfo(path);10 GetFileInfo(path, dir);11 12 }13 //...
阅读全文
posted @ 2011-11-10 19:30
高兴happy
阅读(1161)
推荐(0)
摘要:
文件操作FileFile类的常用静态方法:– void AppendAllText(string path, string contents),将文本contents附加到文件path中– bool Exists(string path)判断文件path是否存在– string[] ReadAllLines(string path) 读取文本文件到字符串数组中– string ReadAllText(string path) 读取文本文件到字符串中– void WriteAllText(string path, string contents)将文本contents保存到文件path中****
阅读全文
posted @ 2011-07-04 14:01
高兴happy
阅读(412)
推荐(0)
摘要:
本文来自网络:http://hi.baidu.com/aspxz/blog/item/48776f3ed07a1ae454e72390.htmlC#追加文件 StreamWriter sw = File.AppendText(Server.MapPath(".")+"\\myText.txt"); sw.WriteLine("追逐理想"); sw.WriteLine("kzlll"); sw.WriteLine(".NET笔记"); sw.Flush(); sw.Close(); =======
阅读全文
posted @ 2011-07-02 00:03
高兴happy
阅读(348)
推荐(0)
摘要:
本代码来自网络,版权归原作者所有~!/* * 获得时间差,时间格式为 年-月-日 小时:分钟:秒 或者 年/月/日 小时:分钟:秒 * 其中,年月日为全格式,例如 : 2010-10-12 01:00:00 * 返回精度为:秒,分,小时,天 */ function GetDateDiff(startTime, endTime, diffType) { //将xxxx-xx-xx的时间格式,转换为 xxxx/xx/xx的格式 startTime = startTime.rep...
阅读全文
posted @ 2011-07-01 23:48
高兴happy
阅读(6996)
推荐(0)
摘要:
模态化窗口时一showModalDialog来弹出模态化窗口的,以window.parent.returnValue来接受返回值并返回给父窗体示例如下:实现弹出模态化窗口,在模态化窗口中返回传值给父窗口cs端代码: Response.Write("<script>window.parent.returnValue='" + url + "';window.parent.close();</script>");//url为返回的值,返回后把模态化窗口关闭javascript代码 function fnCallDial
阅读全文
posted @ 2011-07-01 23:40
高兴happy
阅读(2084)
推荐(0)
摘要:
此代码来自网络,具体版权归原版主所有设置控件被选中:document.getElementById("id").checked=true; 设置控件不可用:document.getElementById("id").disabled = true; 设置控件不可见:document.getElementById("id").style.display='none'; 设置控件可见:document.getElementById("id").style.display='block';
阅读全文
posted @ 2011-07-01 23:14
高兴happy
阅读(1875)
推荐(0)
摘要:
当把iis重新安装后就有可能会出现不能浏览aspx也面的问题 这个问题是iis安全功能所导致的 解决步骤是 先装iis--》再在dos环境下运行"%windir%\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe" -i和 regsvr32 %windir%\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll 之后再在iis服务扩展里面就会出现Framework的版本,随即启用。ok,问题解决 上面代码里面的v2.0.50727几位Framework的版本
阅读全文
posted @ 2011-07-01 23:12
高兴happy
阅读(2036)
推荐(0)