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

asp.net ÖÐʵÏÖÒ³Ãæÿ¸ôÒ»·ÖÖÓË¢ÐÂÒ»´ÎµÄЧ¹û

ÔÚGlobal.asax
ÐèÒª»Ø¹ËµÄ֪ʶµãÊÇ Ïß³Ì ºÍ  Îı¾ÎļþµÄ¶Áд¡£
<%@ Application Language="C#" %>
<%@ Import Namespace="System.IO" %>
<%@ Import Namespace="System.Threading" %>
<script runat="server">
    string logpath;
    Thread thread;
    void writelog()
    {
        while (true)
        {
            StreamWriter sw = new StreamWriter(logpath, true, Encoding.UTF8);
            sw.WriteLine(thread.Name + ":" + DateTime.Now.ToString());
            sw.Close();
            Thread.CurrentThread.Join(1000 * 60);
        }
    }
    void Application_Start(object sender, EventArgs e)
    {
        // ÔÚÓ¦ÓóÌÐòÆô¶¯Ê±ÔËÐеĴúÂë
  
        logpath = HttpContext.Current.Server.MapPath("log.txt");
        thread = new Thread(new ThreadStart(writelog));
        thread.Name = "дÈëµÇ½ÈÕÖ¾Ïß³Ì";
        thread.Start();
       
    }
   
    void Application_End(object sender, EventArgs e)
    {
        //  ÔÚÓ¦ÓóÌÐò¹Ø±ÕʱÔËÐеĴúÂë
     
    }
       
    void Application_Error(object sender, EventArgs e)
    {
        // ÔÚ³öÏÖδ


Ïà¹ØÎĵµ£º

asp.net³£ÓÃ֪ʶ

1. oncontextmenu="window.event.returnvalue=false" ½«³¹µ×ÆÁ±ÎÊó±êÓÒ¼ü
<table border oncontextmenu=return(false)><td>no</table> ¿ÉÓÃÓÚTable
2. <body onselectstart="return false"> È¡ÏûÑ¡È¡¡¢·ÀÖ¹¸´ÖÆ
3. onpaste="return false" ²»×¼Õ³Ìù
4. oncopy="return false;" oncut="return f ......

ASP.NET³£ÓÃÓï¾ä

1.//µ¯³ö¶Ô»°¿ò.µã»÷תÏòÖ¸¶¨Ò³Ãæ
Response.Write(" <script>window.alert('¸Ã»áԱûÓÐÌá½»ÉêÇë,ÇëÖØÐÂÌá½»£¡')
</script>");
Response.Write(" <script>window.location
='http://www.51aspx.com/bizpulic/upmeb.aspx' </script>");
2.//µ¯³ö¶Ô»°¿ò
Response.Write(" <script lang ......

C#£¨ASP.NET£© ÏÂÔØÊý¾Ý

Internet Àà
using System;
using System.Collections.Generic;
using System.Collections;
using System.Text;
using System.Net;
using System.IO;
using System.Text.RegularExpressions;
using System.Threading;
namespace DownData
{
    class internet
    {
 &nb ......

asp.net(c#)ÍøÒ³ÌøתÆßÖÖ·½·¨

1.Response.Redirect("http://www.jb51.net",false);
Ä¿±êÒ³ÃæºÍÔ­Ò³Ãæ¿ÉÒÔÔÚ2¸ö·þÎñÆ÷ÉÏ£¬¿ÉÊäÈëÍøÖ·»òÏà¶Ô·¾¶¡£ºóÃæµÄboolֵΪÊÇ·ñÍ£Ö¹Ö´Ðе±Ç°Ò³¡£
ÌøתÏòеÄÒ³Ã棬ԭ´°¿Ú±»´úÌæ¡£"
ä¯ÀÀÆ÷ÖеÄURLΪз¾¶¡£
:Response.Redirect·½·¨µ¼ÖÂä¯ÀÀÆ÷Á´½Óµ½Ò»¸öÖ¸¶¨µÄURL¡£µ±Response.Redirect()·½·¨± ......

ASP.NET MVC ϵÁÐÎÄÕÂ

http://www.cnblogs.com/chsword/archive/2008/03/10/dotnetmvcframework.html
ÒÔÏÂÎÄÕÂÊôÓÚASP.NET MVC 1.0 Õýʽ°æ
ASP.NET MVCµñ³æС¼¼ 1-2
ASP.NET MVC Öصã½Ì³ÌÒ»ÖÜÄê°æ µÚʮһ»Ø ĸ°æÒ³¡¢Óû§×Ô¶¨Òå¿Ø¼þ¼°ÎļþÉÏ´«
ASP.NET MVC Öصã½Ì³ÌÒ»ÖÜÄê°æ µÚÊ®»Ø ÇëÇóController
ASP.NET MVC Öصã½Ì³ÌÒ»ÖÜÄê°æ µÚ¾Å»Ø H ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ