07 2011 档案
文件操作
摘要:文件操作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 阅读(409) 评论(0) 推荐(0) 编辑
C# 添加,修改,删除文件夹/文件集合
摘要:本文来自网络: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 阅读(347) 评论(0) 推荐(0) 编辑
Javascript计算时间差函数
摘要:本代码来自网络,版权归原作者所有~!/* * 获得时间差,时间格式为 年-月-日 小时:分钟:秒 或者 年/月/日 小时:分钟:秒 * 其中,年月日为全格式,例如 : 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 阅读(6974) 评论(0) 推荐(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 阅读(2058) 评论(0) 推荐(0) 编辑
javascript控制页面控件的常用属性
摘要:此代码来自网络,具体版权归原版主所有设置控件被选中: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 阅读(1869) 评论(0) 推荐(0) 编辑
iis 不能浏览aspx页面
摘要:当把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 阅读(2023) 评论(0) 推荐(0) 编辑


点击右上角即可分享
微信分享提示