易截截图软件、单文件、免安装、纯绿色、仅160KB

asp.net定时执行代码

string LogPath;
Thread thread;
void WriteLog()
{
while (true)
{
StreamWriter sw = new StreamWriter(LogPath, true, Encoding.UTF8);
sw.WriteLine(thread.Name + ":" + DateTime.Now.ToString());
sw.Close();
Thread.CurrentThread.Join(1000 * 60);//阻止1分钟
}
}
void Application_Start(object sender, EventArgs e)
{
LogPath = HttpContext.Current.Server.MapPath("log.txt");
//在应用程序启动时运行的代码
thread = new Thread(new ThreadStart(WriteLog));
thread.Name = "写登录日志线程";
thread.Start();
}


相关文档:

asp.net如何获取msn联系人啊

之前也是在网上找的dotMsn可以获取了,之后又在网上看到说是msn升级了dotMsn获取不到了,怎么办那,我现在在做一个社区网,里面有邀请好友加入的功能,需要获取到msn的联系人,如果有哪位高手知道的,麻烦给我发一份,先谢谢了!msn:gongchuanbo@live.cn ,qq:476759761 ......

asp.net 页面中添加普通视频的几种方式

第一种
是通过调用window media player进行播放诸如:wmv,asf等格式文件:
<object align=center class=OBJECT classid=CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95 height=320 id=MediaPlayer width=356>
<param name="ShowStatusBar" value="-1">
<param name="Filename" value="电影地址">
& ......

ASP.NET MVC post提交表单 后台值为空

昨天遇到了一个小问题,提交表单的时候,后台的action中验证的表单里的控件值居然是空值,调来调去不得其法.
我在前台的表单里控件用的是标准html控件
页面上使用下面语句发送form
<%using (Html.BeginForm("AddNewPicGroups", "MetaData")){ %>
后台使用如下语句接收时却接收不到数据
public ActionResult AddNew ......

ASP.NET 和 IIS 配置自定义扩展名网页

看过微软的网站有时候,是.MSPX的扩展名?其实你也可以配置,很简单。Here We Go!
配置WEB.CONFIG:
<system.web>
    <compilation>
       <buildProviders>
          <add  ......

ASP.NET URL 映射

在Web.config文件的 <system.web></system.web>这两个节点中间插入需要映射的URL
 <urlMappings enabled="true">
      <add url="~/用户要访问的页面.aspx" mappedUrl="~/要重定向到的页面.aspx"/>
 </urlMappings> ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号