Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö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 Web GardenÄ£ÐÍ


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

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

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

ÔÚasp.netÖÐʹÓÃsession³£¼ûÎÊÌ⼯½õ

ÎÊ£ºÎªÊ²Ã´SessionÔÚÓÐЩ»úÆ÷ÉÏż¶û»á¶ªÊ§£¿
´ð£º¿ÉÄܺͻúÆ÷µÄ»·¾³ÓйØÏµ£¬±ÈÈ磺·À»ðǽ»òÕßɱ¶¾Èí¼þµÈ£¬³¢ÊԹرշÀ»ðǽ¡£
ÎÊ£ºÎªÊ²Ã´µ±µ÷ÓÃSession.Abandonʱ²¢Ã»Óм¤·¢Session_End·½·¨£¿
´ð£ºÊ×ÏÈSession_End·½·¨Ö»Ö§³ÖInProc£¨½ø³ÌÄڵģ©ÀàÐ͵ÄSession¡£Æä´ÎÒª¼¤·¢Session_End·½·¨£¬±ØÐë´æÔÚSession£¨¼´ÏµÍ³ÖÐÒѾ­Ê¹Ó ......

ÎĵµÖÐÌáʾ Ò³Ãæ»á±ä°× asp.net¼òµ¥¼ÓÃÜ

Page.ClientScript.RegisterStartupScript(Page.GetType(), "message", "<script language='javascript' defer>alert('¼ÓÈëÔÝ´æ¼Ü³É¹¦£¡');</script>"); 
asp.net¼òµ¥¼ÓÃÜ
//using System.Web.Security;
System.Web.Security.FormsAuthentication.HashPasswordForStoringInConfig ......

asp.net ´æ´¢¹ý³ÌÖ´ÐÐʵÀý

protected void Page_Load(object sender, EventArgs e)
    {
        /*
        sql½Å±¾-´´½¨Ñ§Éú±í
        create table student(id int,name varchar(50))
     ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ