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

asp.netÏÂʵÏÖÎļþÉÏ´«µ½·þÎñÆ÷

   string filepath = FileUpload1.FileName;                                                         //  µÃµ½ÎļþµÄÍêÕû·¾¶
   string filename = filepath.Substring(filepath.LastIndexOf("\\") + 1);            //  µÃµ½ÎļþÃû£¨¼´È¥µôÁË·¾¶£©
   string type = filename.Substring(filename.LastIndexOf("."));                       //  µÃµ½ÎļþµÄÀàÐÍ(´ø . )
   string newname = DateTime.Now.ToString("yyyyMMddHHmmss") + type;   //  ½«µ±Ç°µÄʱ¼ä¸ñʽ»¯×÷ΪÎļþµÄÐÂÃû×Ö
   string serverpath = Server.MapPath("~/upimages/") + newname;              // ¹¹³ÉÎļþµÄ´æ´¢Â·¾¶£¨ÕâÊÇÕæÊµÂ·¾¶£©
   FileUpload1.PostedFile.SaveAs(serverpath);                                                //  ´æ´¢Îļþ


Ïà¹ØÎĵµ£º

ASP.NET¿ª·¢ÖÐURL±»½ØÈ¡»òÂÒÂëµÄ½â¾ö·½°¸

ʹÓÃASP.NET¿ª·¢ÍøÕ¾Ê±£¬Èç¹ûURLÖд«µÝµÄ²ÎÊý¹ý³¤£¨¾ßÌå¶à³¤Ã»ÓвâÊÔ£©µÄ»°£¬ÔÚʹÓÃIE6ä¯ÀÀʱ£¬¾Í»á³öÏÖͨ¹ýQueryString»ñµÃµÄÖµ²»ÍêÕû£¬»òÕß³öÏÖÂÒÂëµÄÇé¿ö¡£Æä½â¾ö·½·¨ÊÇ£ºÔÚWeb.configÖеÄSystem.webÅäÖýÚÖÐÌí¼ÓÈçÏ´úÂë¼´¿É£º
<globalization requestEncoding="gb2312" responseEncoding="gb2312"  ......

ASP.NET Web ²¿¼þ¿Ø¼þ¼¯¸ÅÊö


      ASP.NET Web ²¿¼þ¿Ø¼þ¼¯ÊÇÒ»×éЭͬ¹¤×÷µÄ×é¼þ£¬Ê¹Äú¿ÉÒÔ´´½¨×îÖÕÓû§¿ÉÒÔÖ±½Ó´Óä¯ÀÀÆ÷ÐÞ¸ÄÆäÓû§½çÃæ (UI) µÄÍâ¹ÛºÍÐÐΪµÄÍøÒ³¡£±¾¸ÅÊöº­¸ÇÁË Web ²¿¼þ¿Ø¼þ¼¯µÄ»ù±¾·½Ã棬°üÀ¨×î³£ÓõĿؼþÒÔ¼°´´½¨ Web ²¿¼þÒ³ËùÐèµÄ»ù±¾ Web ²¿¼þ×é¼þµÄ˵Ã÷¡£
Ò»¡¢Web ²¿¼þ×é¼þµÄÀà±ð
Web ²¿¼þ¿Ø¼þ¼¯Ó ......

ASP.NETµÄ¹¤×÷Ô­Àí

ASP.NETµÄ¹¤×÷Ô­Àí

ÔÚ¶àÊý³¡ºÏÏ£¬¿ÉÒÔ½«ASP.NETÒ³Ãæ¼òµ¥µØ¿´³ÉÒ»°ãµÄHTMLÒ³Ãæ£¬Ò³Ãæ°üº¬±ê¼ÇÓÐÌØÊâ´¦Àí·½Ê½µÄһЩ´úÂë¶Î¡£µ±°²×°.NETʱ£¬±¾µØµÄIIS Web·þÎñÆ÷×Ô¶¯ÅäÖóɲéÕÒÀ©Õ¹ÃûΪ.aspxµÄÎļþ£¬ÇÒÓÃASP.NETÄ£¿é(ÃûΪaspnet_isapi.dllµÄÎļþ)´¦ÀíÕâЩÎļþ¡£
´Ó¼¼ÊõÉϽ²£¬ASP.NETÄ£¿é·ÖÎöASPXÎļþµÄÄÚÈÝ£¬²¢½«ÎļþÄÚÈ ......

asp.net¶¨Ê±·¢ËÍÓʼþ×ܽá (ת)

Ïã¸ÛÄDZ߹«Ë¾µÄÊг¡²¿¿ª»áʱҪÇóÎÒÃÇÕâ±ßʵÏÖÒ»¸ö¶¨Ê±·¢ËÍÓʼþµÄ¹¦ÄÜ£¬¼´ÔÚÿÌìÏÂÎç5µã×óÓÒ¶¨Ê±°Ñ½ñÌìÒÑͨ¹ýÈýÉóµÄ¶©µ¥ÐÅÏ¢·¢¸øÊг¡²¿µÄ¾­Àí£¬¸æËßËûÄÄЩ¶©µ¥ÒѾ­Í¨¹ýÁËÖÕÉ󡣯½Ê±Ö»ÖªµÀÈçºÎÓÃ.net·¢ËÍÓʼþ£¬µ«²»ÖªÈçºÎ¶¨Ê±·¢ËÍÓʼþ¡£ÓÚÊǰٶÈÁËһϣ¬×ܽáÆðÀ´ÓÐÒÔÏÂÄÇôÈýÖÖ£º
£¨1£©×öÒ»¸öwinform À´¶¨Ê±·¢Óʼþ¡£È»ºóͨ¹ý ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ