开源一个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,简单实用配置。
在下已经成功配置并使用,全部功能均可用,包含上传图片等。
在下环境
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 引入了新的声明性数据绑定语法。这种非常灵活的语法允许开发人员不仅可以绑定到数据源,而且可以绑定到简单属性、集合、表达式甚至是从方法调用返回的结果。下表显示了新语法的一些示例。
简单属性 Customer: <%# custID %>
集合 Orders: <asp:ListBox id="List1" datasour ......
<mce:script language=javascript><!--
//注册命名空间
Type.registerNamespace("Demo");
Demo.Message=function(content,publishTime)
{
this._content = content;
this._publishTime = publishTime;
}
Dem ......
//开发环境:Window 2000、SQLServer2000、.Net Framework SDK正式版
//开发语言:C#、ASP.Net
//简介:数据库中图片存蓄及读取
//作者:engine
/*
说明:在ASP中,我们用Request.TotalBytes、Request.BinaryRead()来上传图片,这个可恶的BinaryRead()方法非常笨,单个文件上传倒没什么大事,单如果多个图片上专可就花 ......