该文被密码保护。 阅读全文
posted @ 2012-07-17 22:18 要等闲阿 阅读(3) 评论(0) 推荐(0) 编辑
只有注册用户登录后才能阅读该文。 阅读全文
posted @ 2012-07-12 18:42 要等闲阿 阅读(44) 评论(0) 推荐(0) 编辑
摘要: //今天DateTime.Now.Date.ToShortDateString();//昨天,就是今天的日期减一DateTime.Now.AddDays(-1).ToShortDateString();//明天,同理,加一DateTime.Now.AddDays(1).ToShortDateString();//本周(要知道本周的第一天就得先知道今天是星期几,从而得知本周的第一天就是几天前的那一天,要注意的是这里的每一周是从周日始至周六止DateTime.Now.AddDays(Convert.ToDouble((0 - Convert.ToInt16(DateTime.Now.DayOfWe 阅读全文
posted @ 2012-07-11 17:50 要等闲阿 阅读(208) 评论(0) 推荐(0) 编辑
摘要: 日期:/// <summary> /// 判断两个日期是否在同一周 /// </summary> /// <param name="dtmS">开始日期</param> /// <param name="dtmE">结束日期</param> /// <returns></returns> private bool IsInSameWeek(DateTime dtmS, DateTime dtmE) { TimeSpan ts = dtmE - dtmS; .. 阅读全文
posted @ 2012-07-11 16:31 要等闲阿 阅读(4172) 评论(0) 推荐(0) 编辑
摘要: 主要代码:using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.UI;using System.Web.UI.WebControls;using System.IO;using Word = Microsoft.Office.Interop.Word;namespace WebWordToHtml{ public partial class WebForm1 : System.Web.UI.Page { protected vo... 阅读全文
posted @ 2012-07-09 22:37 要等闲阿 阅读(7948) 评论(4) 推荐(0) 编辑
摘要: <html><head> <script type="text/javascript"> function add() { var br = document.createElement("br"); var file = document.createElement("input"); var button = document.createElement("input"); file.type = "file"; file.name = "fil 阅读全文
posted @ 2012-07-08 22:37 要等闲阿 阅读(216) 评论(0) 推荐(0) 编辑
摘要: ./当前目录/网站主目录../上层目录~/网站虚拟目录如果当前的网站目录为E:\wwwroot应用程序虚拟目录为E:\wwwroot\company浏览的页面路径为E:\wwwroot\company\news\show.asp在show.asp页面中使用Server.MapPath("./")返回路径为:E:\wwwroot\company\newsServer.MapPath("/")返回路径为:E:\wwwrootServer.MapPath("../")返回路径为:E:\wwwroot\companyServer.MapPat 阅读全文
posted @ 2012-07-08 12:47 要等闲阿 阅读(131) 评论(0) 推荐(0) 编辑
摘要: 前台页面:<html xmlns="http://www.w3.org/1999/xhtml"><head runat="server"> <title></title></head><body> <form id="form1" runat="server"> <div> </div> <asp:Button ID="Button1" runat="server" 阅读全文
posted @ 2012-07-08 12:23 要等闲阿 阅读(9105) 评论(0) 推荐(0) 编辑
摘要: 代码:using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.UI;using System.Web.UI.WebControls;using PPT = Microsoft.Office.Interop.PowerPoint;using System.IO;using System.Reflection; namespace WebPPT{ public partial class WebForm1 : System.Web.UI.Page ... 阅读全文
posted @ 2012-07-08 11:19 要等闲阿 阅读(362) 评论(0) 推荐(0) 编辑
摘要: 代码: /// <summary> /// 上传文件 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void Button1_Click(object sender, EventArgs e) { if (this.FileUpload1.PostedFile.FileName == "") { Respons... 阅读全文
posted @ 2012-07-07 22:34 要等闲阿 阅读(444) 评论(0) 推荐(0) 编辑