会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
代码
博客园
首页
新随笔
联系
管理
订阅
上一页
1
···
19
20
21
22
23
24
25
26
27
下一页
2012年7月17日
密钥
该文被密码保护。
阅读全文
posted @ 2012-07-17 22:18 要等闲阿
阅读(3)
评论(0)
推荐(0)
2012年7月12日
silverlight 上传文件
只有注册用户登录后才能阅读该文。
阅读全文
posted @ 2012-07-12 18:42 要等闲阿
阅读(44)
评论(0)
推荐(0)
2012年7月11日
C#中DateTime类
摘要: //今天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 要等闲阿
阅读(218)
评论(0)
推荐(0)
C#日期判断
摘要: 日期:/// <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 要等闲阿
阅读(4189)
评论(0)
推荐(0)
2012年7月9日
asp.net实现word文档在线预览功能代码
摘要: 主要代码: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 要等闲阿
阅读(7966)
评论(4)
推荐(0)
2012年7月8日
javascript实现多个上传控件
摘要: <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 要等闲阿
阅读(227)
评论(0)
推荐(0)
asp.net Server.MapPath
摘要: ./当前目录/网站主目录../上层目录~/网站虚拟目录如果当前的网站目录为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 要等闲阿
阅读(139)
评论(0)
推荐(0)
asp.net创建、删除、移动文件夹 文件
摘要: 前台页面:<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 要等闲阿
阅读(9116)
评论(0)
推荐(0)
asp.net创建PPT
摘要: 代码: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 要等闲阿
阅读(386)
评论(0)
推荐(0)
2012年7月7日
Asp.net上传控件上传文件到文件夹
摘要: 代码: /// <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 要等闲阿
阅读(453)
评论(0)
推荐(0)
上一页
1
···
19
20
21
22
23
24
25
26
27
下一页
公告