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

asp.net 中实现页面每隔一分钟刷新一次的效果

在Global.asax
需要回顾的知识点是 线程 和  文本文件的读写。
<%@ Application Language="C#" %>
<%@ Import Namespace="System.IO" %>
<%@ Import Namespace="System.Threading" %>
<script runat="server">
    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);
        }
    }
    void Application_Start(object sender, EventArgs e)
    {
        // 在应用程序启动时运行的代码
  
        logpath = HttpContext.Current.Server.MapPath("log.txt");
        thread = new Thread(new ThreadStart(writelog));
        thread.Name = "写入登陆日志线程";
        thread.Start();
       
    }
   
    void Application_End(object sender, EventArgs e)
    {
        //  在应用程序关闭时运行的代码
     
    }
       
    void Application_Error(object sender, EventArgs e)
    {
        // 在出现未


相关文档:

ASP.net的url重写

1.
有关于URL的重写,本文也只是拿来主意。相继有MS的组件“URLRewriter”和在Global.asax里的“Application_BeginRequest()”编码方式,以及IIS里的ISAPI设置。
娜列下来,实现方法也都很简单。
 
方法一:MS组件
这里也不用详解了,相关请看:
http://www.microsoft.com/china/msdn/libra ......

创建ASP.NET WEB自定义控件

本文通过一段完整的代码向读者介绍复合自定义控件的制作,包括:自定义属性、事件处理、控件间数据传递等方面的技术。
以下是一个登陆框的代码,包括:用户名输入TextBox、密码输入TextBox、提交Button、重置Button以及承载以上四项的Panel。控件类名为LoginCtrl。
(例程使用C#)
using System;
using System.Web.UI; ......

FCKeditor 2.X 在 Asp.Net中的设置

FCKeditor相关资料简介:
官方网站http://www.fckeditor.net/
官方文档http://wiki.fckeditor.net/
下载地址http://www.fckeditor.net/download/default.html
官方演示http://www.fckeditor.net/demo/default.html
FCKEditor asp.net设置
下载:http://www.fckeditor.net
(要下载FCKeditor2.4.2.zip和FCKeditor.NET ......

WCF中的服务和ASP.NET AJAX中的WebService

WCF的架构:using System.ServiceModel;
契约:Contract
[ServiceContract]
public partial interface IContract
{
        [OperationContract]
        string DocumentWebHostUrl();
}
服务:Service
[ServiceBehavior(IncludeException ......

转:ASP.NET页面传值的几种方式

一. 使用QueryString变量
    QueryString是一种非常简单也是使用比较多的一种传值方式,但是它将传递的值显示在浏览器的地址栏中,如果是传递一个或多个安全性要求不高或是结构简单的数值时,可以使用这个方法。
         Response.Redirect( "target.aspx?param1=hello& ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号