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

asp.net ͼƬˮӡ

string mapho = request["imgpath"];//»ñȡij¸öÒ³Ãæ´«¹ýµÄͼƬÃû³Æ
  string str1 = Server.MapPath(mapho);//ÒªÌí¼ÓˮӡµÄͼƬ
  string str2 = Server.MapPath("WaterMark.jpg");//Ìí¼ÓµÄÄÚÈÝͼƬ
  System.Drawing.Image bmp = System.Drawing.Image.fromFile(str1);
  Graphics gs = Graphics.fromImage(bmp);
System.Drawing.Image bmp2 = System.Drawing.Image.fromFile(str2);
  //Á½ÕÅͼƬºÏ²¢
  gs.DrawImage(bmp2, bmp.Width-bmp2.Width, bmp.Height - bmp2.Height, bmp2.Width, bmp2.Height);
  Response.ContentType = "image/jpeg";//Êä³öÀàÐÍ
  bmp.Save(Response.OutputStream,ImageFormat.Jpeg);//±£´æ
Ó÷¨:
н¨Ò»¸öÒ³ÃæÔÚÒ³Ãæ¼ÓÔØʼþÀïÌí¼ÓÒÔÉÏ´úÂë¡£
ÔÚÒªÓÃÕâ¸öͼƬµÄʱºò°ÑËüµÄͼƬURLµØÖ·µÈÓÚÕâ¸öÒ³Ãæ¾Í¿ÉÒÔÁË.
ÀýÈ磺<asp:image runat="server" ImageUrl="ÒÔÉÏÒ³ÃæµÄÃû³Æ.aspx?imgpath="+"ͼƬÃû³Æ"></asp:image>
 


Ïà¹ØÎĵµ£º

ASP.NET Ó¦ÓóÌÐòÉúÃüÖÜÆÚ¸ÅÊö

 
±¾Ö÷Ìâ¸ÅÊöÓ¦ÓóÌÐòÉúÃüÖÜÆÚ£¬ÁгöÖØÒªµÄÉúÃüÖÜÆÚʼþ£¬²¢ÃèÊöÈçºÎ±àдÊʺÏÓ¦ÓóÌÐòÉúÃüÖÜÆڵĴúÂë¡£ÔÚ ASP.NET ÖУ¬ÈôÒª¶Ô ASP.NET Ó¦ÓóÌÐò½øÐгõʼ»¯²¢Ê¹Ëü´¦ÀíÇëÇ󣬱ØÐëÖ´ÐÐһЩ´¦Àí²½Öè¡£´ËÍ⣬ASP.NET Ö»ÊǶÔä¯ÀÀÆ÷·¢³öµÄÇëÇó½øÐд¦ÀíµÄ Web ·þÎñÆ÷½á¹¹µÄÒ»²¿·Ö¡£Á˽âÓ¦ÓóÌÐòÉúÃüÖÜÆڷdz£ÖØÒª£¬ÕâÑù²ÅÄÜÔÚÊ ......

ASP.NET Web GardenÄ£ÐÍ


±¾ÎĽéÉÜASP.NET Web GardenÄ£ÐÍ£¬Web GardenÄ£ÐÍ¿ÉÒÔͨ¹ý machine.config ÎļþÖÐµÄ ²¿·Ö½øÐÐÅäÖá£
Web GardenÄ£ÐÍ
Web GardenÄ£ÐÍ¿ÉÒÔͨ¹ý machine.config ÎļþÖÐµÄ <processModel> ²¿·Ö½øÐÐÅäÖá£Çë×¢Ò⣬<processModel> ²¿·ÖÊÇΨһ²»ÄÜ·ÅÔÚÓ¦ÓóÌÐòÌض¨µÄ web.config ÎļþÖеÄÅäÖò¿·Ö¡£Õâ¾ÍÊÇ˵£¬Web ......

asp.net ·þÎñÆ÷¿Ø¼þ¼¸¸ö ID µÄ˵Ã÷

¹ØÓÚ asp.net ·þÎñÆ÷¿Ø¼þ¼¸¸ö ID µÄ˵Ã÷[ZT]
Òý×Ô:http://lujf1978.blog.163.com/blog/static/2320126620078114112822/
 
¶ÔÓÚÿһ¸ö·þÎñÆ÷¿Ø¼þSystem.Web.UI.Control ¶¼¾ßÓÐ ID£¬UniqueID£¬ClientID Èý¸öÊôÐÔ£¬ÄÇôÕâ¸öÈýÕßµ½µ×ÓкӹØϵ£¬ÔÚ¿Í»§¶ËHTMLÖÐÓÖÊÇÈçºÎ¶ÔÓ¦³ÊÏÖµÄÄØ£¿
ID£º»ñÈ¡»òÉèÖ÷ÖÅä¸ø·þÎñÆ÷¿Ø¼þµÄ ......

£¨C#£©Asp.netÈÕÆÚ¡¢Ê±¼äº¯Êý´óÈ«

ÔÚASP.NetÒ»°ãµÄ³ÌÐò±àдÖУ¬ËùʹÓõÄÊý¾ÝÀïÃ棬ÈÕÆÚʱ¼äÊÇÒ»ÖÖÌØÊâµÄÊý¾ÝÀàÐÍ£¬Ò²ÊǾ­³£±»Ê¹Óõġ£---µçÄԽ̳̼¼ÊõѧϰÍø
  ÔÚVisual Basic.NETÖеÄÈÕÆÚʱ¼äÊý¾ÝÓÃÊýÖµµÄÊý¾ÝÀàÐͱ£´æ£¬¶øÇÒÓз¶Î§¡£
   ÈÕÆڵķ¶Î§Êǹ«Ôª1Äê1ÔÂ1ÈÕ¡«¹«Ôª9999Äê1 2ÔÂ3 1ÈÕ£¬Ê±¼äµÄ·¶Î§ÊÇ00£º00£º00¡«23£º59£º59¡£ÉùÃ÷¸ñÊ½È ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ