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

ASP.NetÖÐÀûÓÃashxʵÏÖͼƬ·ÀµÁÁ´´úÂë

GET /Img.ashx?img=svn_work.gif HTTP/1.1
Accept: */*
Referer: http://www.svnhost.cn/
Accept-Language: zh-cn
UA-CPU: x86
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.2; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; CIBA)
Host: www.svnhost.cn
Connection: Keep-Alive
¸ÃÊý¾Ý°ü±íʾÇëÇóhttp://www.svnhost.cn/Img.ashx?img=svn_work.gifÎļþ¡£ÎÒÃÇ¿ÉÒÔ¿´µ½Referer±íʾÉÏÒ»Ò³ÇëÇóÒ³ÃæµØÖ·£¬Ò²¾ÍÊÇÎļþÀ´Ô´¡£Host±íʾµ±Ç°ÇëÇóµÄÖ÷»úµØÖ·¡£
ÏÂÃæÊÇÒ»¸öµÁÁ´µÄÊý¾Ý°ü
GET /Img.ashx?img=svn_work.gif HTTP/1.1
Accept: */*
Referer: http://745.cc/
Accept-Language: zh-cn
UA-CPU: x86
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.2; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; CIBA)
Host: www.svnhost.cn
Connection: Keep-Alive
ÎÒÃÇ¿ÉÒÔ¿´µ½£¬ÉÏÃæÁ½¸öÊý¾Ý£¬±íʾ¶ÔÓÚͬһ¸öÎļþ£ºhttp://www.corange.cn/Img.ashx?img=svn_work.gifµÄÇëÇó¹ý³Ì£¬ÕâÀïµÄ²»Í¬¾ÍÊÇReferer£¬Ò²¾ÍÊǶ¼ÊÇÇëÇóͬһ¸öÎļþ£¬µ«ÊÇÇëÇóµÄÀ´Ô´ÊDz»Í¬µÄ¡£Òò´ËÎÒÃÇ¿ÉÒÔÔÚ³ÌÐòÀïÅжÏÊÇ·ñÊÇÀ´Ô´ÓÚµ±Ç°·þÎñÆ÷£¬À´ÅжÏÊÇ·ñÊǵÁÁ´¡£Ã÷°×Ô­ÀíÒÔºó£¬ÊµÏÖ·ÀµÁÁ´¾Í·Ç³£¼òµ¥ÁË¡£ÏÂÃæÒÔͼƬ·ÀµÁÁ´À´ÊµÏÖÒ»¸öÑÝʾ¡£ASP.NETÖÐÌí¼ÓÒ»¸öimg.ashxÎļþ£¬È»ºóºǫ́´úÂëÈçÏ£º
using System;
using System.Collections;
using System.Data;
using System.Web;
using System.Web.Services;
using System.Web.Services.Protocols;
namespace GetImage
{
/// <summary>
/// $codebehindclassname$ µÄժҪ˵Ã÷
/// </summary>
[WebService(Namespace = "http://tempuri.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
public class Img : IHttpHandler
{
public void ProcessRequest(HttpContext context)
{
context.Response.ContentType = "image/jpg";
if (context.Request.UrlReferrer != null && context.Request.UrlReferrer.Host.Equals(context.Request.Url.Host, StringComparison.InvariantCultureIgnoreCase))
context.Response.WriteFile(context.Server.MapPath(


Ïà¹ØÎĵµ£º

asp.netÐÔÄÜÓÅ»¯×ܽá ÐÄÈçֹˮ

1. C#ÓïÑÔ·½Ãæ
1.1 À¬»ø»ØÊÕ
¡¡À¬»ø»ØÊÕ½â·ÅÁËÊÖ¹¤¹ÜÀí¶ÔÏóµÄ¹¤×÷£¬Ìá¸ßÁ˳ÌÐòµÄ½¡×³ÐÔ£¬µ«¸±×÷ÓþÍÊdzÌÐò´úÂë¿ÉÄܶÔÓÚ¶ÔÏó´´½¨±äµÃËæÒâ¡£
¡¡1.1.1 ±ÜÃâ²»±ØÒªµÄ¶ÔÏó´´½¨
¡¡ÓÉÓÚÀ¬»ø»ØÊյĴú¼Û½Ï¸ß£¬ËùÒÔC#³ÌÐò¿ª·¢Òª×ñÑ­µÄÒ»¸ö»ù±¾Ô­Ôò¾ÍÊDZÜÃâ²»±ØÒªµÄ¶ÔÏó´´½¨¡£ÒÔÏÂÁоÙһЩ³£¼ûµÄÇéÐΡ£
¡¡1.1.1.1 ±ÜÃâÑ­»·´´½¨¶ÔÏ ......

asp.net mvc 2 RC ÔÚiisÉϵIJ¿Êð

Ò»£¬Èç¹ûÖ±½Ó°Ñasp.net mvc2 RC ²¿ÊðÔÚiis5.1ÉÏ£¬»á³öÏÖÎÞ·¨ÏÔʾҳÃæµÄÇé¿ö£¬Ô­Òò¿ÉÄÜÊÇ·¾¶Ó³ÉäûÓÐÆð×÷Óá£
½â¾ö°ì·¨£º
      1.ÔÚ  routes.MapRoute(
                "Default",    ......

asp.netÖеÄSEOÓÅ»¯

ASP.NET 4°üÀ¨ÁËһϵÁÐеÄÔËÐÐʱÌØÐÔ£¬¿ÉÒÔ°ïÖúÄã½øÒ»²½ÓÅ»¯ÄãµÄÍøÕ¾¡£ÆäÖÐһЩÐÂÌØÐÔ¿ÉÒÔÓÃÀ´½øÐÐSEOÓÅ»¯ÒÔÌá¸ßÍøÕ¾ÔÚËÑË÷ÒýÇæÖеÄÅÅÃûºÍȨÖØ£¬ÕâЩÌØÐÔ°üÀ¨£º
еÄPage.MetaKeywords ºÍ Page.MetaDescription ÊôÐÔ
Õë¶ÔASP.NET Web FormsµÄÐÂURLµ¼ÏòÖ§³Ö
еÄResponse.RedirectPermanent()·½·¨
ÏÂÃæÊÇÈçºÎÀûÓÃÕâÐ ......

ASP.NETÖÐΪGridViewÌí¼Óɾ³ýÌáʾ¿ò

ÔÚGridViewÖÐÎÒÃÇ¿ÉÒÔÖ±½ÓÌí¼ÓÒ»¸öCommandFieldɾ³ýÁÐÀ´É¾³ýijÐÐÐÅÏ¢¡£µ«ÎªÁ˱ÜÃâÎó²Ù×÷ÒýÆðµÄÎóɾ³ý£¬ÔÚɾ³ý²Ù×÷ÕßÈòÙ×÷ÕßÔÙÈ·ÈÏÏ£¬ÍêºóÔÙ½øÐÐɾ³ý¡£
¡¡¡¡Ê×ÏÈÎÒÃǸøÎÒÃǵÄGridView Ìí¼ÓÒ»¸öÄ£°åÁУ¬ÈçÏ£º
ÒÔÏÂÊÇÒýÓÃƬ¶Î£º
£¼ASP:TemplateField HeaderText="Delete" ShowHeader="False"£¾
£¼ItemStyle ......

asp.net ȨÏÞϵͳÉè¼Æ

ÃüÃû¿Õ¼ä Access
Àࣺ
User
ÊôÐÔ£ºLoginID,UserName,Password,Remark
Role
ÊôÐÔ£ºRoleName Remark(±¸×¢ÐÅÏ¢)
AccessItem
ÊôÐÔ£ºName,Text,Remark
PermissionManager
ÊôÐÔ£º
·½·¨£ºvoid AddUser(string loginID,string password, string remark );void AddRole();Void AddItem(string name,string text,strin ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ