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); // ´æ´¢Îļþ
Ïà¹ØÎĵµ£º
а汾URL-rewrite module for IIS 7.0µÄ·¢²¼ÁË£¬ASP.NET Routing×é¼þËæ×Å.NET Framework 3.5 SP1µÄ·¢²¼£¬²¢ÔÚ.NET Framework 4.0 BetaÖнøÒ»²½³ÉÊì¡£×÷ΪASP.NET ¿ª·¢ÈËÔ±£¬ÎÒÃDz»Ãâ»á¶ÔÕâÁ½¸ö¹¦ÄÜÏà½üµÄ×é¼þ±§ÓÐÐí¶àÒÉÎÊ£¬ÖîÈç“ËüÃÇÓÐʲôÒìͬ£¿”“·Ö±ðÊÊÓÃÓÚʲô»·¾³£¿”µÈµÈ¡£±¾ÎÄÖ¼ÔÚÃèÊöÕâÁ½Õß ......
ASP.NET Web ²¿¼þ¿Ø¼þ¼¯ÊÇÒ»×éÐͬ¹¤×÷µÄ×é¼þ£¬Ê¹Äú¿ÉÒÔ´´½¨×îÖÕÓû§¿ÉÒÔÖ±½Ó´Óä¯ÀÀÆ÷ÐÞ¸ÄÆäÓû§½çÃæ (UI) µÄÍâ¹ÛºÍÐÐΪµÄÍøÒ³¡£±¾¸ÅÊöº¸ÇÁË Web ²¿¼þ¿Ø¼þ¼¯µÄ»ù±¾·½Ã棬°üÀ¨×î³£ÓõĿؼþÒÔ¼°´´½¨ Web ²¿¼þÒ³ËùÐèµÄ»ù±¾ Web ²¿¼þ×é¼þµÄ˵Ã÷¡£
Ò»¡¢Web ²¿¼þ×é¼þµÄÀà±ð
Web ²¿¼þ¿Ø¼þ¼¯Ó ......
Web ²¿¼þµÄÒ»ÏîÖ÷Òª¹¦ÄÜÊÇʹ×îÖÕÓû§Äܹ»¸öÐÔ»¯ÍøÒ³²¢±£´æÆä¸öÐÔ»¯ÉèÖá£ÐÞ¸Ä Web ²¿¼þÒ³µÄÒ»¸ö·½Ãæ°üÀ¨±à¼¿É¼û WebPart ¿Ø¼þµÄÍâ¹Û¡¢²¼¾Ö¡¢ÐÐΪºÍÆäËûÊôÐÔ¡£
Web ²¿¼þ¿Ø¼þ¼¯Öеļ¸Öֿؼþ¿ÉÌṩ±à¼¹¦ÄÜ¡£ÆäÖаüÀ¨ EditorZone ¿Ø¼þ£¬¸Ã¿Ø¼þÊÇ Web ²¿¼þ¿Ø¼þ¼¯ÖÐÓÃÓÚ³ÐÔØÍøÒ³É쵀 EditorP ......
ASP.NETÉú³ÉËæ»úÃÜÂë
ÔÚ¿ª·¢ÐèÒªÓû§×¢²áºó²ÅÄÜʹÓÃÌṩµÄ¸÷ÏÄܵÄÓ¦ÓóÌÐòʱ£¬ÔÚÐÂÓû§Ìá½»×¢²áÐÅÏ¢ºó£¬½Ï³£¼ûµÄ×ö·¨ÊÇÓɳÌÐòÉú³ÉËæ»úÃÜÂ룬Ȼºó·¢ËÍÃÜÂëµ½Óû§×¢²áʱÌîдµÄµç×ÓÐÅÏ䣬Óû§ÔÙÓÃÊÕµ½µÄÃÜÂëÀ´¼¤»îÆäÕÊ»§¡£
ʵÏÖASP.NETÉú³ÉËæ»úÃÜÂ빦ÄÜÊǺÜÈÝÒ׵ģ¬ÏÂÃæµÄ´úÂë¸ø³öÁËÍêÕûµÄʵÏÖ·½·¨£º
publicstaticstring ......