asp.net·ÃÎÊͼƬȨÏÞ
ËùÓÐÓû§ÉÏ´«µÄͼƬ¶¼·ÅÔÚÒ»¸öÎļþ¼ÐÏ£¬Ò»Õűí¼Ç¼×ÅÓû§idºÍͼƬÔÚÕâ¸öÎļþ¼ÐϵÄÃû³Æ¡£
ÈçºÎ¿ÉÒÔÈûáÔ±Ö»ÄÜ·ÃÎÊ×Ô¼ºÉÏ´«µÄËùÓÐͼƬ£¬¶øÄäÃûÓû§ºÍÆäËû»áÔ±²»ÄÜ·ÃÎÊ£¨¼´Ê¹ÖªµÀͼƬµÄ·¾¶£©¡£
¿´À´Ö»ÄÜÓÃHttpModuleÀ´´¦Àí£¬À¹½Ø jpg,png,gifÇëÇó
¶¥Ò»ÏÂ
°ÑͼƬ·ÅÈëÊý¾Ý¿â
·ÀµÁÁ´
public class myhandler : IHttpHandler
{
public void ProcessRequest(HttpContext context)
{
string FileName = context.Server.MapPath(context.Request.FilePath);
if (context.Request.UrlReferrer.Host == null)
{
context.Response.ContentType = "image/JPEG";
context.Response.WriteFile("~/no.gif");
}
else
{
if (context.Request.UrlReferrer.Host.IndexOf("localhost") > -1) {
context.Response.ContentType = "image/JPEG";
context.Response.WriteFile(FileName);
}
else
Ïà¹ØÎÊ´ð£º
select top 12 * from Product where [id] not in (select top 12 [id] from Product)
ÕâÑù¿ÉÒÔ·ÖÒ³£¬µ«ÊÇÎÒÔÚºóÃæÏë¼Ó¸öÌõ¼þ
select top 12 * from Product where [id] not in (select top 12 [id] from Prod ......
ǰ¶Îʱ¼äÅöµ½Ò»µÀÃæÊÔÌâÈçÏ£º
test.aspxÒ³ÃæÓÐÈçÏ´úÂ룺
Response.Write(Test.GetDate());
TestÀàÈçÏ£º
public class Test
{
static string dt="";
public static s ......
°ÑÒµÎñ²ãµÄ¶¼Ð´ÔÚdllÎļþÖÐÁË£¬ÏÖÔÚÏëÒªÐ޸쬴ó¼Ò¶¼ÓÃʲô¹¤¾ß´ò¿ª£¿
ÓÃvisual studio×Ô´øµÄ ildasm¿ÉÒÔÂð£¿
ÆÚ´ý¸ßÊÖ
LZºÃÀ÷º¦
Ó÷´±àÒëÈí¼þ
ÎÒÓÃReflectorÖ»ÄÜ¿´£¬²»Äܸİ¡£¿
ÓÐÃ ......
ÕýÔÚѧϰÕâ¸ö¶«¶« ¸Ð¾õºÜ¶àµØ·½²»ÊǺܶ® ÕýÔÚŬÁ¦ É¢µã·Û¸øasp.netµÄͬÈÊÃÇ Çó½ÌºÃµÄѧϰ×ÊÁÏ Ð»Ð»
²Î¿¼
asp.net/mvcÉÏÓкܶàÄÚÈÝ¡£
×î½üÒ²ÔÚ¿´¡£
ͬÁÄ¡£
JF,3Q
±ÈÎÒÓÐǰ;, ÎÒÖÁÉÙĿǰ ......