Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

asp.netÈÕÖ¾

                    string path = "...\\Debug\\log.txt";
                    if (!File.Exists(path))
                    {
                        StreamWriter sw1;
                        sw1 = File.CreateText(path);
                        sw1.Close();
                    }
                    string str = System.DateTime.Now.Year.ToString() + "Äê" + System.DateTime.Now.Month.ToString() + "ÔÂ" + System.DateTime.Now.Day.ToString() + "ÈÕ " + System.DateTime.Now.Hour.ToString() + ":" + System.DateTime.Now.Minute.ToString() + ":" + System.DateTime.Now.Second.ToString() + "  " + "Êý¾ÝWeb·þÎñÎÞ·¨·ÃÎÊ»òÕßÍøÂ粻ͨ. ";
                    StreamWriter sw = File.AppendText(path);
                    sw.WriteLine(str);
                    sw.Close();
                    return;


Ïà¹ØÎĵµ£º

ASP.NET(C#) DataSetÊý¾Ýµ¼³öµ½Excel

½ñÌì¸ø¿Í»§×öÁ˸ö¹¦ÄÜÐèÒª°ÑÍø¸ñÊý¾Ý£¨Gridview£©µ¼³ö³ÉExecl£¬ËùÒÔÎÒÈ¥ÍøÉÏÕÒÁ˸ö´úÂë private void Export(string FileType, string FileName)
...{
try
...{
Response.Charset = "GB2312";
Response.ContentEncoding = System.Text.Encoding.UTF7;
Response.AppendHeader("Content-Disposition", "att ......

asp.netÖÐʱ¼ä¸ñʽ»¯µÄ¼¸ÖÖ·½·¨

Çмǣ¬ÇÐ¼Ç DateTime.Now.Date.ToString("yyyyÄêMMÔÂddÈÕ"); //MM Òª´óд£¬·ñÔò»áÊÇ00,²»ÊÇÕæÊµµÄÔÂ·Ý private void getDate()
{
date.Text = DateTime.Now.Date.ToString("yyyyÄêMMÔÂddÈÕ"); //Õâ¸öËæÒâµÄ£ºyyyy-MM-dd Ò²¿ÉÒÔ
string Temp="";
switch (DateTime.Now.DayOfWeek)
{
case DayO ......

ASP.NETÒ³ÃæË¢Ð·½·¨×ܽá

µÚÒ»£º
private void Button1_Click( object sender, System.EventArgs e ) { Response.Redirect( Request.Url.ToString( ) ); } µÚ¶þ£º
private void Button2_Click( object sender, System.EventArgs e ) { Response.Write( " < script language=javascript>window.location.href=document.URL; < /script&g ......

ÏîÄ¿¿ª·¢¾­Ñ飭ASP.NETÏîÄ¿¿ª·¢ÖеÄÒì³£´¦Àí

 Ô´ÌùµØÖ·£ºhttp://www.cnblogs.com/yanyangtian/archive/2009/05/07/1451705.html
           Ç°ÑÔ£ºÒì³£µÄ´¦ÀíÔÚÏîÄ¿¿ª·¢ÖÐÊǺÜÓбØÒªµÄ£¬Òì³£µÄ´¦Àí²»½ö½öÖ»ÊÇtry..catch..finally¾ÍÍêÊÂÁ˵ġ£Òì³£´¦Àí¾ø¶Ô¿ÉÒԳƿª·¢ÖеÄÖØÒª×é³É²¿·Ö¡£±ØÐëÕýÈ·µÄÃæ¶ÔÒì³ ......

[ת]asp.netÇø·ÖÖÐÓ¢ÎÄ×Ö·û´®½ØÈ¡

/// <summary>
/// ×Ö·û´®Çиî
/// </summary>
/// <param name="p_SrcString"></param>
/// <param name="p_Length"></param>
/// <returns></returns>
public static string GetSubString(string p_SrcString, int ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ