asp.net ÏÂÔØ - .NET¼¼Êõ / ASP.NET
sqlserverµÄÊý¾Ý¿â£¬×Ö¶ÎÊÇimageÀàÐ͵ġ£Ôõôд´úÂ룬ÔÚÒ³ÃæÖеã»÷¡°ÏÂÔØ¡±¾ÍÄÜ´ò¿ªÄǸöÏÂÔØ¶Ô»°¿ò£¿ PS£ºOracleLob ÔÚsqlserverÀïÊÇʲô£¿
Response.Redirect("test.jpg")ÒýÓà Response.Redirect("test.jpg") ÇëÎÊÄúÕâ»Ø¸´¸úÎÒµÄÎÊÌâÓÐʲô¹ØÏµ£¿ codeÀïÃæÐ´Ò»¸ö·½·¨ C# code: public class SourceShareHandler:IHttpHandler { public SourceShareHandler() { // //TODO: ÔÚ´Ë´¦Ìí¼Ó¹¹Ô캯ÊýÂß¼ // } public void ProcessRequest(HttpContext context) { if ((context.Request.UrlReferrer == null) || (context.Request.UrlReferrer.Host == "localhost" && context.Request.UrlReferrer.Port == 1049)) { context.Response.Expires = 0; context.Response.Clear(); context.Response.ContentType = "rar"; context.Response.WriteFile(context.Request.PhysicalPath); context.Response.End(); } else //Èç¹û²»ÊDZ¾µØÒýÓã¬ÔòÊôÓÚµÁÁ´ÒýÓ㬠{ HttpResponse response = context.Response; response.Redirect("~/ErrorInfo.aspx"); } } public bool IsReusable { get { return false; } } } ½çÃæ <a href="Download/Code1.rar">¹²Ïí×ÊÔ´Ò»</a> web.config httphandlers ÀïÃæ¼Ó <add verb="*" path="Download/*.rar" type="SourceShareHandler"/> <a href="Download/Code1.rar">¹²Ïí×Ê
Ïà¹ØÎÊ´ð£º
ÓÐÒ»¸öÀà class adc { dim a,b,c } ÈçºÎÔÚÁíÍâÒ»¸öÀàÖÐÈ¡µÃÀà³ÉÔ±¼°³ÉÔ±¸öÊý class getmenber { dim menbers() function getmenbers(resclass) 'resΪһδ֪Àà 'getmenber ......
Microsoft JET Database Engine '80040e07' ±ê×¼±í´ïʽÖÐÊý¾ÝÀàÐͲ»Æ¥Åä¡£ \wwwroot\update.asp, line 20 -------------------------------------------------------------------------------- Ho ......
ÎÒÓÃ.net¿ª·¢wapÍøÕ¾ 1£¬ÎÒ´Ó¹¤¾ßÏäÀïÍÏÁËÁ½¸ölink£¬ÕâÁ½¸ölink»áÏÔʾÔÚÁ½ÐУ¬Èç¹ûÈÃÕâÁ½¸ölink´¦ÓÚͬһÐС£ 2£¬ÈçºÎÏÔʾÁ½¸ö¿Ø¼þÖ®¼äµÄ¿Õ¸ñÎÊÌâ¡£ ¸úwapÓйØÂ𣿲»Ì«Ã÷°× ÓÑÇé°ï¶¥¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£ ¾Í ......
ÎÒ×î½ü×öÁËÒ»¸öÍøÕ¾ÊǹØÓÚ²úƷչʾµÄ ~ Õû¸öÍøÕ¾Í¼Æ¬¶¼Õ¼ÓÃÁËÒ»´ó°ë ÕâÑùµÄ»°·ÃÎÊËٶȾͷdz£Âý ÓÐʲô°ì·¨¿ÉÒÔ½â¾öÂ𣿠Âé·³´ó¼Ò¶à¶à¸øµãÒâ¼û £¡ ÓÐʲô¾¡¹Ü˵ 3Q´ó¼Ò htmlÒ³Ãæ. Õâ¸ö,¼ÈÈ»Ö÷Ò ......