Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö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 DateTime ʱ¼äº¯Êý

1¡¢DateTime     Êý×ÖÐÍ   
    System.DateTime currentTime=new System.DateTime();   
    1.1 È¡µ±Ç°ÄêÔÂÈÕʱ·ÖÃë   
    currentTime=System.DateTime.Now;   
  & ......

ASP.NETÃæÊÔÌâ(Ò»)

SP.NETÃæÊÔÌâ
£¨×ª Ô­ÎĵØÖ·http://blog.sina.com.cn/s/blog_524c848901009e7b.html~type=v5_one&label=rela_nextarticle ×÷Õß
ÀîÑóµÄ²©¿Í
http://blog.sina.com.cn/liiyang£©
1. ¼òÊö private¡¢ protected¡¢ public¡¢ internal ÐÞÊηûµÄ·ÃÎÊȨÏÞ¡£
´ð . private : ˽ÓгÉÔ±, ÔÚÀàµÄÄÚ²¿²Å¿ÉÒÔ·ÃÎÊ¡£
prote ......

ASP.NET²¥·ÅÊÓƵÎļþ

///C#ÖеÄýÌå²¥·ÅÀà
using System;
namespace ConfigTools
{
/// <summary>
/// PlayClass µÄժҪ˵Ã÷¡£
///Ô­×÷CSDN,¾­±¾ÈËÉÔ¼ÓÐÞ¸Ä
/// </summary>
public class PlayClass
{
public PlayClass()
{
......

ASP.NET MVC ÈëÃÅ5¡¢ViewÓëViewData

±¾ÏµÁÐÎÄÕ»ùÓÚASP.NET MVC Preview5.
viewÔÚMVCģʽÖÐÓëÓû§½øÐÐ×îÖ±½ÓµÄ½Ó´¥£¬Ëü¸ºÔðÊý¾ÝµÄ³ÊÏÖ¡£ÕâÀïҪעÒâÒ»µã¾ÍÊÇ£¬viewÖ»ÊǸºÔðÊý¾ÝµÄ³ÊÏÖ£¬ËùÒÔÎÒÃÇÓ¦¸ÃÒª¾¡Á¿ÈÃ
viewÖв»Éæ¼°ÒµÎñÂß¼­µÄ´¦Àí¡£
ÎÒÃÇÀ´Ìí¼ÓÒ»¸öBlogÊ×Ò³µÄview¡£ÔÚ°²×°ÁËASP.NET MVCºó£¬ÎÒÃÇÔÚÌí¼ÓÐÂÏîÄ¿µÄʱºò¿ÉÒÔ¿´µ½ÓÐMVCµÄviewÄ£°å£º
 
......

ASP.NET¿çÒ³Ãæ´«Öµ¼¼ÇÉ

¡¡¡¡½ñÌìTMȺÀïÓÐÈËÎÊÆð¹ØÓÚÒ³Ãæ´«ÖµµÄ·½·¨£¬ÓÖÒý·¢ÁËÒ»³¡ÌÖÂÛ¡£¿´À´Õâ¸ö»¹ÊÇÓкܶàÈ˹Ø×¢µÄ£¬Òò´ËÎÒ¾ÍÎÒ¸öÈ˹۵ã×öÁËЩ×ܽᣬϣÍû¶Ô´ó¼ÒÓÐËù°ïÖú¡£
¡¡¡¡1.  ʹÓÃQueryString±äÁ¿
¡¡¡¡¡¡¡¡QueryStringÊÇÒ»Öַdz£¼òµ¥µÄ´«Öµ·½Ê½£¬Ëû¿ÉÒÔ½«´«Ë͵ÄÖµÏÔʾÔÚä¯ÀÀÆ÷µÄµØÖ·À¸ÖС£Èç¹ûÊÇ´«µÝÒ»¸ö»ò¶à¸ö°²È«ÐÔÒªÇ󲻸߻òÊǽṠ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ