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

ASP.NET(C#)ʵÏÖÒ»´ÎÐÔÉÏ´«¶àÕÅͼƬ£¨¶à¸öÎļþ£©

ÔÚ×öasp.netµÄWeb¿ª·¢µÄʱºò£¬ÎÒÃǾ­³£»áÓöµ½Ò»´ÎÐÔÉÏ´«¶à¸öÎļþµÄÐèÇó¡£Í¨³£ÎÒÃǵĽâ¾ö·½·¨Êǹ̶¨·Å¶à¸öÉÏ´«Îļþ¿ò£¬ÕâÑùµÄ½â¾ö°ì·¨ÏÔÈ»ÊDz»ºÏÀíµÄ£¬ÒòΪһ´ÎÉÏ´«¶à¸ö£¬¾ÍÒâζ×ÅÊýÁ¿²»È·¶¨¡£Òò´ËÎÒÃǾÍÒªÈÃÕâЩÎļþÉÏ´«¿ò¶¯Ì¬Ìí¼Ó£¬ÏÂÃæÎÒÒÔÎÒ×öµÄÒ»¸öͼ¿â¹ÜÀíÖеÄÉÏ´«Í¼Æ¬µÄ¹¦ÄÜΪÀý
ÏÈ¿´Ð§¹û£º
´ò¿ªµÄ³õʼ½çÃ棺
ĬÈÏÊÇÉÏ´«Ò»¸öͼƬ£¬µ«µ±ÎÒÃǵã“Ôö¼ÓͼƬ”°´Å¥Ê±¿ÉÒÔʵÏÖÑ¡Ôñ¶à¸öͼƬ¼°ÆäÃèÊöͬʱÉÏ´«£¬±¾¹¦ÄÜÏÞÖÆÒ»´Î×î¶àÖ»ÄÜÉÏ´«8ÕÅ£¬ÇÒÿÕÅͼƬ´óС²»³¬¹ý1M£¬Õâ¸ö´ó¼Ò¿É¸ù¾Ýʵ¼ÊÇé¿ö¸ü¸Ä£¡
Èçͼ£º
ÏÂÃæÀ´¿´ÊµÏÖ¹ý³Ì£º
µÚÒ»²½£¬Ê¹ÓÃjavascript´úÂëʵÏÖ¶¯Ì¬Ìí¼ÓÎļþÉÏ´«¿òºÍÃèÊöÎı¾¿ò£¬¹Ø¼ü´úÂëÈçÏ£º
<script type="text/javascript">
        var i=1
        function addFile()
        ...{
    
         if (i<8)
            ...{var str = '<BR> <input type="file" name="File" runat="server" style="width: 300px"/>ÃèÊö£º<input name="text" type="text" style="width: 150px" maxlength="20" />'
            document.getElementById('MyFile').insertAdjacentHTML("beforeEnd",str)
       
            }
        else
            ...{
                alert("ÄúÒ»´Î×î¶àÖ»ÄÜÉÏ´«8ÕÅͼƬ£¡")
            }
            i++
        }
        </script>HTMLµ÷ÓôúÂëΪ£º
<P id="MyFile"><INPUT onclick="addFile()" type="button" value="Ôö¼ÓͼƬ(Add)"><br />
&n


Ïà¹ØÎĵµ£º

ÅäÖÃASP.NETƽ̨ʱÓöµ½µÄ¡°·ÃÎÊIISÔªÊý¾Ý¿âʧ°Ü


ÅäÖÃASP.NETƽ̨ʱÓöµ½µÄ“·ÃÎÊIISÔªÊý¾Ý¿âʧ°Ü”
(2007-05-18 09:20:08)
±êÇ©£º
asp
·ÖÀࣺ¼¼ÊõËæ±Ê
ʵϰҲ½áÊøÁË£¬×î½üÖÕÓÚÓÐʱ¼äÕýʽµØ¸ã±ÏÒµÉè¼ÆÁË……
¿ÎÌâÊǹØÓڴһ¸ö»ùÓÚASP.NETÍøÕ¾¿ò¼ÜµÄ£¬µ±È»ÅäÖÿª·¢Æ½Ì¨ÊǵÚÒ»²½£¬×°ÉÏIISºó£¬ÔÚ±¾µØ·ÃÎÊ.aspxÒ³Ãæʱ×ܳöÏÖÈçϱ¨´íÐÅÏ¢£º
·Ã ......

ASP.NETÍøÕ¾ÖеÄÌØÊâÎļþ¼Ð

ÓÃVS¿ª·¢ASP.NETÍøÕ¾³ÌÐòµÄʱºò,»á½«Àà»òWeb Services·ÅÔÚÌØÊâµÄÎļþ¼ÐÖÐ,·²ÊÇ·ÅÔÚÕâЩÌØÊâµÄÎļþ¼ÐÖÐ(App_Themes³ýÍâ)µÄ³ÌÐò»òÄÚÈÝÖ»ÔÊÐíÓ¦ÓóÌÐò·ÃÎÊ,¶ÔÓÚÍøÒ³µÄRequestÔò²»ÓèÏìÓ¦(ÎÞ·¨¶ÁÈ¡).
Îļþ¼Ð                  &nbs ......

asp.net »ñµÃ·¾¶

²âÊÔµÄurlµØÖ·ÊÇhttp://www.test.com/testweb/default.aspx,   ½á¹ûÈçÏ£º  
  Request.ApplicationPath:   /testweb  
  Request.CurrentExecutionFilePath:   /testweb/default.aspx  
  Request.FilePath:   /testweb/defa ......

asp.netµÄMISϵͳ

ϵͳ¼òµ¥½éÉÜ£º
    ºÜ±ê×¼µÄÅäÖãºasp.net 2.0+SqlServer 2000 or 2005,һЩͳ¼Æͼ²ÉÓõÄÊÇflash¼¼Êõ~¸Õ±ÏÒµµÄʱºòÔÚÒ»¼Òµç×ÓÕþÎñ¹«Ë¾¹¤×÷ʱ¿ª·¢µÄ£¬ÕâÌ×ϵͳǿ¾ÍÇ¿ÔÚËü²»ÊÇÓ¦ÓÃϵͳ£¬¶øÊÇÒ»¸ö¹¤¾ß£¬¿ÉÒÔÔڴ˹¤¾ß»ù´¡ÉÏ£¬¾­¹ý¶þ´Î¿ª·¢£¬ÑÜÉú³öÂú×ãÕþ¸®²¿ÃÅÐÅÏ¢»¯ÐèÇóµÄÓ¦ÓÃϵͳ£¡£¡
    Õ ......

asp.net »ñÈ¡ÉÏ´«Í¼Æ¬µÄ´óС


System.Drawing.Image imgPhoto = System.Drawing.Image.fromFile("ͼƬ·¾¶Ãû");   
int sourceWidth = imgPhoto.Width;   //ͼƬ¿í¶È
int sourceHeight = imgPhoto.Height;   //ͼƬ¸ß¶È
¿Ø¼þÃû.PostedFile.ContentLength &n ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ