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 ......
C# code: SqlConnection conn = CsDB.sqlcon(); SqlDataAdapter da = new SqlDataAdapter("select fwCoding from bjmuma_fwCoding where OrderNumber='" + Order + & ......
1.asp.net×öµÄÒ»¸ö´ðÌâÒ³Ã棬ÈçºÎʵʱÏÞʱºó×Ô¶¯Ìá½»£¬Çë´ó¼Ò¸øµã˼· ÏÞʱµÄʱ¼äÐÅÏ¢´æ·ÅÔÚÊý¾Ý¿âÖÐ 2.Èç¹û´ðÌâʱ¼äÉèÖõĽϳ¤£¬ÈçºÎ·½Ê½session³¬Ê±ºóÒ³ÃæÎÞЧ лл ÓÃjs·½·¨À´¿ØÖÆ »Ø¸´ÄÚÈÝÌ«¶ÌÁË¡£¡£ js ......
ÎÒ×î½ü×öÁËÒ»¸öÍøÕ¾ÊǹØÓÚ²úƷչʾµÄ ~ Õû¸öÍøվͼƬ¶¼Õ¼ÓÃÁËÒ»´ó°ë ÕâÑùµÄ»°·ÃÎÊËٶȾͷdz£Âý ÓÐʲô°ì·¨¿ÉÒÔ½â¾öÂ𣿠Âé·³´ó¼Ò¶à¶à¸øµãÒâ¼û £¡ ÓÐʲô¾¡¹Ü˵ 3Q´ó¼Ò htmlÒ³Ãæ. Õâ¸ö,¼ÈÈ»Ö÷Ò ......