(תÔØ)ASP.NETµ¯³ö¶Ô»°¿ò¼¸ÖÖ»ù±¾·½·¨
ÎÒÃÇÔÚ.NET³ÌÐòµÄ¿ª·¢¹ý³ÌÖУ¬³£³£ÐèÒªºÍÓû§½øÐÐÐÅÏ¢½»»¥£¬±ÈÈçÖ´ÐÐijÏî²Ù×÷ÊÇ·ñ³É¹¦£¬“È·¶¨”»¹ÊÇ“È¡Ïû”£¬ÒÔ¼°Ñ¡Ôñ“È·¶¨”»ò“È¡Ïû”ºóÊÇ·ñÐèÒªÌøתµ½Ä³¸öÒ³ÃæµÈ£¬ÏÂÃæÊDZ¾È˶Գ£ÓöԻ°¿òʹÓõÄС½á£¬Ï£Íû¶Ô´ó¼ÒÓÐËù°ïÖú£¬Í¬Ê±Ò²»¶Ó´ó¼Ò²¹³ä¡£
(1) µã»÷Ò³ÃæÉϵİ´Å¥£¬µ¯³öÒ»¸ö¶Ô»°¿òÌáʾÊÇ“È·¶¨”»¹ÊÇ“È¡Ïû”²Ù×÷£¬ÎÒÃDzÉÓÃÔÚ°´Å¥ÖÐÌí¼ÓÊôÐÔÀ´Íê³É£º
¾ÙÀýÈçÏ£º
public System.Web.UI.WebControls.Button btnDelRow;
btnDelRow.Attributes.Add("onclick", "return confirm('È·¶¨ÒªÉ¾Âð?');");
(2) µã»÷Ò³ÃæÉϵİ´Å¥£¬µ¯³öÒ»¸ö¶Ô»°¿òÌáʾÊÇ“È·¶¨”»¹ÊÇ“È¡Ïû”²Ù×÷£¬Ñ¡Ôñ“È·¶¨”»ò“È¡Ïû”ºóÌøתµ½ÏàÓ¦µÄÒ³Ã棺
¾ÙÀýÈçÏ£º
string strMsg, string strUrl_Yes, string strUrl_No;
Response.Write("<Script Language='JavaScript'>if ( window.confirm('"+strMsg+"')) { window.location.href='" + strUrl_Yes +
"' } else {window.location.href='"+ strUrl_No +"' };</script>");
(3) ¶ÔÓÚÒ³ÃæÍê³ÉÒ»¸ö²Ù×÷ºó£¬µ¯³öÒ»¸ö¶Ô»°¿òÌáʾÊÇ·ñ“²Ù×÷³É¹¦”¡£
¾ÙÀýÈçÏ£º
Response.Write("<script>alert('ɾ³ý³É¹¦!')</script>");
(4) ¶ÔÓÚÒ³ÃæÍê³ÉÒ»¸ö²Ù×÷ºó£¬µ¯³öÒ»¸ö¶Ô»°¿òÌáʾÊÇ·ñ“²Ù×÷³É¹¦”ºóÌøתµ½Ä³Ò»¸öÒ³Ãæ¡£
¾ÙÀýÈçÏ£º
Response.Write("<script>alert('ɾ³ý³É¹¦!');window.location.href ='www.cnblogs.com'</script>");
(5)ÔÊÐí ASP.NET ·þÎñÆ÷¿Ø¼þÔÚ Page Öз¢³ö¿Í»§¶Ë½Å±¾¿é£º
public virtual void RegisterStartupScript(string key,string script);
 
Ïà¹ØÎĵµ£º
Ç°ÑÔ
FCKeditorÊÇʹÓ÷dz£¹ã·ºµÄHTML±à¼Æ÷£¬±¾ÎÄ´Ó ASP.NET µÄʹÓó¡¾°¶Ô FCKeditor Óë FCKeditor.NET µÄÅäÖᢹ¦ÄÜÀ©Õ¹£¨Èç×Ô¶¨ÒåÎļþÉÏ´«×ÓĿ¼¡¢×Ô¶¨ÒåÎļþÃû¡¢ÉÏ´«Í¼Æ¬µÄºóÆÚ´¦ÀíµÈ£©¡¢ÒÔ¼°°²È«ÐÔ½øÐгõ²½µÄ²ûÊö¡£
Ï£ÍûÄÜ°ïÖúÓÐͬÑùÐèÇóµÄͬÈʽÚÊ¡Ò»µãʱ¼ä£»Ò²Ï£Íû¸÷λÄÜÖ¸ÕýÆäÖеIJ»×㡣лл¡£
Ò»¡¢×Ô¶¨Òå FCKedit ......
ÏÞÉèÖÃÒÔWindows Server 2003ΪÀý£¬ÐéÄâÖ÷»úÓû§²»±Ø½øÐдËÏîÉèÖá£Ê×ÏÈ£¬ÎÒÃÇÐèÒªÓõ½ÒÔϵÄ×é:
IIS_WPG ×飨Ҳ³ÆΪ IIS ¹¤×÷½ø³Ì×飬IIS Worker Process Group£©
Guests×é £¨À´±ö×飬ÔÚϵͳÖÐÓµÓÐ×îÉÙµÄȨÏÞ£©
ÒÔ¼°ÒÔϵÄÕʺÅ:
Internet À´±öÕÊ»§ £¨ÄäÃû·ÃÎÊ Internet ÐÅÏ¢·þÎñµÄÄÚÖÃÕÊ»§£©
Æô¶¯ IIS ½ø³ÌÕÊ»§ £¨ÓÃÓ ......
ÔÚ×¢²á±í System->CurrentControlSet->Services->Eventlog ´¦Ñ¡ÔñÌí¼ÓϵͳÖÐ AspNet Õâ¸öÕË»§×¢ÒâÊÇÔÚÓÒ¼üµÄ °²È«->ȨÏÞ->Ìí¼Ó
дÈÕÖ¾
public static void Log(string sourceName, string message)
{
EventLog eventLog = null;
......
ÄãÖ»ÒªÔÚWeb,configÎļþµÄ system.web ÅäÖýÚÏÂÌí¼ÓÒÔÏÂÅäÖãº
<globalization requestEncoding="GB2312" responseEncoding="GB2312"/>
µ±È»£¬ÄãÒ²¿ÉÒÔ½«“GB2312”¸ÄΪϵͳĬÈϵēUTF-8”£¬Ö»Òª¼ÓÉÏÕâÒ»ÅäÖã¬Ò³Ãæ¼ä´«ÖµµÄÂÒÂëÎÊÌâ¾Í½â¾öÁË¡£ ......
Õâ¸öÎÊÌâÀ§ÈÅÁËÎÒÁ½Ì죬ÊÖ»úÏÂÔØ
protected void Page_Load(object sender, EventArgs e)
{
string filename = Server.UrlDecode(Request["upload"]);
string filePath = Server.MapPath("uploa ......