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 ·ÂQQµ¯³ö´°¿Ú
¡²×ª¡³http://hi.baidu.com/liyukun8203/blog/item/d9244dfcdb78e388b901a019.html
×î½üÔÚ×öÄÚ²¿¹ÜÀí,ÐèÒªÓõ½Õâ¸ö¶«Î÷À´ÌáÐÑ,ËùÒԾͰÑËü×ö³ÉÒ»¸öÀà,Ö±½Óµ÷ÓÃ,Âú·½±ãµÄ.ÌùһϴúÂë,´ó¼Ò¿´Ò»ÏÂ
Code
1 using System;
2 using System.Web;
3 using System.Collections.Generic;
4 using Sy ......
asp.netµ¯³ö´°¿ÚÉè¼Æ
¡²×ª¡³http://hi.baidu.com/%CE%DE%B7%E7%CC%FD%BA%A3/blog/item/af7182c596ce3bc339db4959.html
ÕªÒª£º±¾ÎÄÌÖÂÛÈçºÎÒÔASP.NETÖеÄCodeBehind·½Ê½ÊµÏÖ¸÷ÖÖµ¯³ö´°¿Ú£¬ÊµÏÖÓ뵯³ö´°¿ÚµÄ½»»¥¡£²¢Ì½ÌÖ³£Ó÷DZê×¼IEä¯ÀÀÆ÷¶Ôµ¯³öµÄ´°¿ÚµÄ¸÷ÖÖ¹ýÂËÐÐΪ¼°Ê¹Óõ¯³ö´°¿ÚÏàÓ¦¶Ô²ß£¬ÒÔÆÚ¸ø³öʹÓõ¯³ö´°¿ÚµÄÒ»¸öͨ ......
ÎÒ¾õµÃÕâ¸öÎÄÕ²»ÄÜËãÎÒµÄÔ´´£¬ÒòΪ´úÂëÒ²ÊÇÎÒ´Ó±ðµÄµØ·½ÕÒµ½µÄ£¬¶øÇÒÎÒÔÚÍøÉϲéÁË£¬»ù±¾É϶¼ÊÇÕâÌ×´úÂë¡£
ͨÓõİÑÊý¾Ýµ¹½øword»òÕßexcel¡£ÕâÀïµÄµ¼ÈëexcelºÍÎÒ֮ǰµÄÄÇÆªÎÄÕÂÖеķ½·¨ÊDz»Ò»ÑùµÄ¡£
´úÂëÈçÏ£º
aspxÒ³ÃæÖУº
<form id="form1" runat="server">
&nbs ......
asp.net»ñÈ¡¿Í»§¶ËµÄMACµØÖ·¡²Ö»ÊÊÓÃÓÚ¾ÖÓòÍø¡³
[ת]http://www.cnblogs.com/scgw/archive/2008/08/01/1213951.html
½üÈÕÔÚ×öÒ»¸öͶƱϵͳÖÐÓÐÕâÑùÒ»¸öÐèÇó£ºÎªÁË·ÀÖ¹¶ñÒâÀƱ»òˢƱ£¬ÐèҪͨ¹ýÔ¶³Ì¿Í»§¶ËµÄIPµØÖ·
À´»ñÈ¡¿Í»§¶ËÍø¿¨µÄMACµØÖ·¡£ÍíÉÏÕÒÁ˺ܶà×ÊÁÏ£¬ÖÕÓÚÓеãÊÕ»ñ¡£
ÈçºÎÈ¡µÃÍø¿ ......
µÚÒ»£º
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 ......