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

开源一个ASP.NET记录**.LOG的类

 using System;
using System.Collections.Generic;
using System.Text;
namespace PublicClass
{
    public static class Log
    {
        public static void WriteLine(string line)
        {
            try
            {
                System.Diagnostics.Debug.Assert((line != null), " public static void WriteLine(string line) line 不能为空!");
                line = String.Format("#############{0}################## \r\n{{\r\n   {1}  \r\n}}\r\n", DateTime.Now.ToString(), line);
                line += "%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\r\n\r\n\r\n";
                line = "%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\r\n" + line;
                lock (line)
                {
                    //增加每一天记录一个Log文件
                    string FileName = string.Format("~/Sys_Log/{0}.log", DateTime.Now.ToString("yyyy-MM-dd"));
                    string FilePath=System.Web.HttpContext.Current.Request.MapPath(FileName);


相关文档:

在asp.net中使用FCKeditor,简单实用配置。

 在asp.net中使用FCKeditor,简单实用配置。
在下已经成功配置并使用,全部功能均可用,包含上传图片等。
在下环境
1.Microsoft Visual Web Developer 2005
2.FCKeditor.Net_2.6.3.zip   下载地址:http://download.csdn.net/source/1833985
3.FCKeditor_2.6.5.zip  下载地址:http://download.cs ......

ASP.NET数据绑定和的区别

 <%=%>绑定CS文件中的变量,有值的属性,或者有返回值的方法,
 <%#%>一般式放在数据控件中绑定数据源表中的字段
 <%=%><%#%>区别:
前者 是在页面之中使用.属于一段代码.有=号的就相当于response.write()这功能.和asp一样.
后者 是在页面中的服务器数据控件中绑定数据源的字段 ......

Asp.net 中 Get和Post 的用法

 表单form的提交有两种方式,一种是get的方法,一种是post 的方法.看下面代码,理解两种提交的区别:
1 <form id="form1" method="get" runat="server">
2     <div>
3          你的名字<asp:TextBox ID="name" runat="server">< ......

ASP.NET中如何搭建三层架构

步骤: 
1、先在D盘建一个新文件夹
2、打开VS2008,新建一个网站,更改名字后存放在1中的文件夹中,此时要记得给该网站建一个新的文件夹,专门用来存放该网站所有的文件;
3、搭建数据访问层,点击文件——添加——新建项目——类库,更改名字之后,存放在1中的文件夹中,同样也为数 ......

ASP.NET防止表单重复提交解决办法搜集

 
OnClientClick="this.disabled=true;this.form.submit();" UseSubmitBehavior="False"在按钮属性中加入这段代码
this.btnSubmit.Attributes["onclick"] = this.GetPostBackEventReference(this.btnSubmit) + ";this.disabled=true;";
如果是提交是一个Button,可以使用javascript,设置为en ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号