Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö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 BehaviorEditorPart Web ·þÎñÆ÷¿Ø¼þ¸ÅÊö


      BehaviorEditorPart Web ·þÎñÆ÷¿Ø¼þÊÇÒ»¸ö±à¼­Æ÷²¿¼þ¿Ø¼þ£¬×îÖÕÓû§¿ÉÒÔʹÓøÿؼþÔÚÔËÐÐʱ¸ü¸Ä¹ØÁªµÄ WebPart ¿Ø¼þÉϵĶà¸öÓû§½çÃæ (UI) ÊôÐÔ¡£Ï±íÁгöÁËÓû§¿É×Ô¶¨ÒåµÄ¹¦ÄÜ£¬ÒÔ¼°Óû§¿ÉʹÓà BehaviorEditorPart ¿Ø¼þ±à¼­µÄ¶ÔÓ¦µÄ WebPart ¿Ø¼þÊôÐÔÖµ¡£
Óû§¿É×Ô¶¨ÒåµÄ¹¦ÄÜ
WebPart ......

asp.netÖÐʹÓÃjavascriptµÄ·½·¨¼°Çø±ð

1.ʹÓà ʹÓÃResponse.Write£¬ÕâÖÖ·½·¨»á°ÑJS´úÂëдÔÚÒ³ÃæµÄ×²¿(µÄÇ°Ãæ)£º
2. ʹÓ㺠page.ClientScript.RegisterStartupScript£¨£©£» ÕâÖÖ·½·¨»á°ÑJS´úÂëǶÈëÔÚÒ³ÃæµÄµ×²¿¡¢±íµ¥µÄ×îºó (Ç°Ãæ)£¬ÊÊÓÃÓÚÒªÔÚÒ³Ãæ¿Ø¼þ¼ÓÔØÍê³ÉºóÔËÐеÄJS´úÂë
3.ʹÓÃRegisterClientScriptBlock£¨£©£»ÕâÖÖ·½·¨»á°ÑJS´úÂëǶÈëÔÚÒ³ÃæµÄ¶¥²¿¡¢ ......

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

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

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

ASP.NETÒ³ÃæµÄCheckBoxList×é¼þ

CheckBoxÑ¡Ôñ×é¼þÊÇÒ»¸ö³ÌÐòÖж¼¾­³£µÄ×é¼þ¡£ÔÚ³ÌÐòÉè¼ÆÖÐʹÓõ½¸Ã×é¼þ£¬Ò»°ã¶¼²»»áֻʹÓõ½Ò»¸ö£¬ÍùÍùÊÇÒÔ¶à¸ö´ËÀà×é¼þµÄÐÎʽ³öÏֵġ£ÔÚASP.NETÒ³ÃæÖÐÈç¹ûҪʹÓõ½¶à¸öCheckBox×é¼þ£¬³ýÁËÌí¼Ó¶à¸öCheckBox×é¼þÔÚÒ³ÃæÖÐÖ®Í⣬»¹ÓÐÒ»ÖֱȽϷ½±ãµÄ·½·¨£¬¾ÍÊÇʹÓÃCheckBoxList ×é¼þ¡£CheckBoxList×é¼þÊÇÓÉÒ»×éµÄCheckBox×é¼þ×é ......

ASP.NETÊý¾Ý¿â·ÃÎÊÀà

±È½ÏºÃµÄÊý¾Ý¿â·ÃÎÊÀà
using System;
using System.Collections.Generic;
using System.Text;
using System.Data.SqlClient;
using System.Data.OleDb;
using System.Data;
using System.Configuration;
namespace PublicClass
{
    /// <summary>    ///
  &n ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ