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 Ö»ÊǶÔä¯ÀÀÆ÷·¢³öµÄÇëÇó½øÐд¦ÀíµÄ Web ·þÎñÆ÷½á¹¹µÄÒ»²¿·Ö¡£Á˽âÓ¦ÓóÌÐòÉúÃüÖÜÆڷdz£ÖØÒª£¬ÕâÑù²ÅÄÜÔÚÊ ......
±¾ÎĽéÉÜASP.NET Web GardenÄ£ÐÍ£¬Web GardenÄ£ÐÍ¿ÉÒÔͨ¹ý machine.config ÎļþÖÐµÄ ²¿·Ö½øÐÐÅäÖá£
Web GardenÄ£ÐÍ
Web GardenÄ£ÐÍ¿ÉÒÔͨ¹ý machine.config ÎļþÖÐµÄ <processModel> ²¿·Ö½øÐÐÅäÖá£Çë×¢Ò⣬<processModel> ²¿·ÖÊÇΨһ²»ÄÜ·ÅÔÚÓ¦ÓóÌÐòÌض¨µÄ web.config ÎļþÖеÄÅäÖò¿·Ö¡£Õâ¾ÍÊÇ˵£¬Web ......
¹ØÓÚ asp.net ·þÎñÆ÷¿Ø¼þ¼¸¸ö ID µÄ˵Ã÷[ZT]
Òý×Ô:http://lujf1978.blog.163.com/blog/static/2320126620078114112822/
¶ÔÓÚÿһ¸ö·þÎñÆ÷¿Ø¼þSystem.Web.UI.Control ¶¼¾ßÓÐ ID£¬UniqueID£¬ClientID Èý¸öÊôÐÔ£¬ÄÇôÕâ¸öÈýÕßµ½µ×ÓкӹØϵ£¬ÔÚ¿Í»§¶ËHTMLÖÐÓÖÊÇÈçºÎ¶ÔÓ¦³ÊÏÖµÄÄØ£¿
ID£º»ñÈ¡»òÉèÖ÷ÖÅä¸ø·þÎñÆ÷¿Ø¼þµÄ ......
ÔÚASP.NetÒ»°ãµÄ³ÌÐò±àдÖУ¬ËùʹÓõÄÊý¾ÝÀïÃ棬ÈÕÆÚʱ¼äÊÇÒ»ÖÖÌØÊâµÄÊý¾ÝÀàÐÍ£¬Ò²ÊǾ³£±»Ê¹Óõġ£---µçÄԽ̳̼¼ÊõѧϰÍø
ÔÚVisual Basic.NETÖеÄÈÕÆÚʱ¼äÊý¾ÝÓÃÊýÖµµÄÊý¾ÝÀàÐͱ£´æ£¬¶øÇÒÓз¶Î§¡£
ÈÕÆڵķ¶Î§Êǹ«Ôª1Äê1ÔÂ1ÈÕ¡«¹«Ôª9999Äê1 2ÔÂ3 1ÈÕ£¬Ê±¼äµÄ·¶Î§ÊÇ00£º00£º00¡«23£º59£º59¡£ÉùÃ÷¸ñÊ½È ......