asp.netÏòÎļþдÈëÈÕÖ¾
using System;
using System.IO;
namespace WriteLog
{
/// <summary>
/// WriteInLog µÄժҪ˵Ã÷¡£
/// </summary>
public class WriteInLog
{
private string logFileName;
private int logFileSizes;
/// <summary>
/// дÈëÈÕÖ¾Îļþ
/// </summary>
public WriteInLog()
{
logFileName = @"d:\logfile.txt";
}
/// <summary>
/// ×Ô¶¯É¾³ýÈÕÖ¾Îļþ´óС,´Ë·½·¨ÒÑ¾ÖØÔØ.
/// </summary>
/// <param name="fileSize">ÈÕÖ¾Îļþ´óС,µ¥Î»KB</param>
public WriteInLog(int fileSize):this()
{
if(fileSize != 0)
{
this.logFileSizes = fileSize * 1024;
}
&nb
Ïà¹ØÎĵµ£º
ÔÚÍøÕ¾µÄʹÓÃÖУ¬ÓÐʱºòÐèÒª°ÑÊý¾Ý¿âÀïÃæµÄÄÚÈÝÉú³Éµ½wordÎĵµÀïÃæ£¬È»ºóÏÂÔØµ½±¾µØ½øÐв鿴£¬Ê¹ÓÃVS.NET¾Í¿ÉÒÔʵÏÖÕâ¸ö¹¦ÄÜ£¬ÏÂÃæÕâ¸öÀý×Ӿͼòµ¥µ½ÊµÏÖÁË·þÎñÆ÷¶ËÉú³ÉwordÎĵµ²¢ÌṩÏÂÔØµÄ¹¦ÄÜ£¬ËäȻûÓг¹µ×µØ°ÑÕû¸ö²Ù×÷д³öÀ´£¨ÓÈÆäÊÇдÉú³ÉwordµÄʱºò£©£¬µ«Õû¸öÁ÷³ÌÊÇÍê³ÉÁ˵ģ¬ÖÁÓÚÆäÖиüÏêϸµÄÄÚÈÝ£¬Çë²ÎÔÄMSDN ......
½éÉÜ
»º´æÊÇÔÚÄÚ´æ´æ´¢Êý¾ÝµÄÒ»Ïî¼¼Êõ£¬Ò²ÊÇASP.NETÖÐÌṩµÄÖØÒªÌØÐÔÖ®Ò»¡£ÀýÈçÄã¿ÉÒÔÔÚ¸´ÔÓ²éѯµÄʱºò»º´æÊý¾Ý£¬ÕâÑùºóÀ´µÄÇëÇó¾Í²»ÐèÒª´ÓÊý¾Ý¿âÖÐÈ¡Êý¾Ý£¬¶øÊÇÖ±½Ó´Ó»º´æÖлñÈ¡¡£Í¨¹ýʹÓûº´æ¿ÉÒÔÌá¸ßÓ¦ÓóÌÐòµÄÐÔÄÜ¡£
Ö÷ÒªÓÐÁ½ÖÖÀàÐ͵Ļº´æ£º
1.Êä³ö»º´æOutput caching
2.Êý¾Ý»º´æData caching
1. Êä³ö»º´æ ......
1¡¢ÓÉdatasetÉú³É
public void CreateExcel(DataSet ds,string typeid,string FileName)
{
HttpResponse resp;
resp = Page.Response;
resp.ContentEncoding = System.Text.Encoding.GetEncoding("GB2312");
resp.AppendHeader("Content-Dis ......
ÓÉÓÚÏîÄ¿ÐèÒªÒ»¸öÂÛ̳£¬±¾À´ÓÐCSµÄ£¬ÔÚ.netϺܳöÃûµÄ¹úÍ⿪ԴÂÛ̳¡£µ«ÎªÁËÊÊÓ¦¹úÄÚµÄ·çÆø£¬×îºóÑ¡ÓÃÔÚ¹úÄÚÈçÈÕÖÐÌìµÄDiscuz!NT¡£
½«DiscuzÓëasp.net¿ª·¢µÄÍøÕ¾ÕûºÏ£¬ÓкܶàÈËÒѾÍê³ÉÁË¡£
µ«ÔÚÍøÉÏûÓÐÕÒµ½½ÏÏêϸµÄÃèÊö¡£·½·¨µ¹ÊÇÓкܶàÖÖ¡£
ÔÚÏîÄ¿ÖÐ×¢²áÐÂÓû§Ê±£¬Ò²Í¬Ê±µ÷ÓÃÂÛ̳µÄÓû§×¢²á£¬ÕâÑù¾Íͬ²½×¢²áÁË¡£ÖÁÓÚɾ ......
µ±Ò»¸öÍøÒ³ÖмÈÓÐÊý¾ÝÑéÖ¤¿Ø¼þ£¬ÓÖÓÐÒ»¸ö°´Å¥ÔÚµã»÷ʱ³öÏÖÌáʾ°´Å¥¡£
Èç¹ûÖ±½ÓÔÚÒ³ÃæµÄºǫ́´úÂëµÄPage_Loadº¯ÊýÖÐдÈëbtn.Attributes["Onclick"] = "return confirm('È·¶¨Òª±£´æÊý¾Ý£¿')"£¬ÄÇôÑéÖ¤¿Ø¼þ¾Í»áʧЧ£¬ÒòΪÑéÖ¤¿Ø¼þÒ²ÊÇͨ¹ýjsʵÏֵģ¬ÕâÑùµÄ»°return confirm('È·¶¨Òª±£´æÊý¾Ý£¿')ÏÈÓÚÔÀ´µÄjs´úÂëÖ´ÐУ¬Ì ......