ÔÚasp.netÖÐ ÔõÑùÈ¡µÃFileUploadÎļþµÄÍêÕû·¾¶
ÈçÌ⣡
FileUpload1.PostedFile.FileName
ÎÒÕâÑùдÁË µ«ÊÇ»¹ÊÇ»ñµÃµÄÊÇÒ»¸öÎļþµÄÃû³Æ£¬FileUpload1.FileName Õâ¸öÒ²ÊÇÒ»Ñù£¡
FileUpload1.PostedFile.FileName
IE ÎÊÌâ
¹¤¾ß-internetÑ¡Ïî-°²È«-×Ô¶¨Ò弶±ð-½«ÎļþÉÏ´«µ½·þÎñÆ÷ÊÇ°üº¬±¾µØ·¾¶
C# code:
ʹÓÃFileUpload¿Ø¼þÔÚ»ñÈ¡ÎļþÃûµÄʱºò£¬¾¡Á¿Ê¹ÓÃPath.GetFileName(UpLoadFile.PostedFile.FileName)ÕâÑùµÄ·½·¨¿ÉÒÔʹÈκÎä¯ÀÀÆ÷ÏÂÃ涼Äܵõ½ÕýÈ·µÄÎļþÃû£¬¶ø²»»á°üº¬Â·¾¶.
Path.GetFileName( FileUpload.PostedFile.FileName.ToString());
dim filename,filepath as string
filename=Path.GetFileName(uploadfile.PostedFile.FileName)
filepath="±£´æÎļþµÄ·¾¶Ãû" & filename
uploadfile.PostedFile.SaveAS(filepath)
Ïà¹ØÎÊ´ð£º
¸ÕѧÕâ¸ö£¬ËùÒÔÒ»¶ÑÎÊÌâÊÇûÃ÷°×µÄ
ÉèÖÃÁËCSSµÄÑùʽ£¬¸ü¸ÄΪÁ˾ø¶Ô¶¨Î»
µ«ÊÇÓÐʱºò¿Ø¼þ»¹ÊÇû°ì·¨Í϶¯···Ò»»á¿ÉÒÔÒ»»á²»¿ÉÒÔµÄÕâÊÇΪʲô°¡£¿
ÎÒÓõÄÊÇVS2008
²»ÊǺÜÃ÷°×£¬ÏÖÔÚÊÇÓÐÐ ......
ÎʸöÎÊÌ⣬×öºÃµÄasp.netÍøÕ¾Òª¼ÙÉèÔÚftp·þÎñÆ÷ÉÏ£¿
ÎÒÒѾÉú³ÉºÃÍøÕ¾£¬Ö±½Ó¿½±´µ½ftp·þÎñÆ÷ÉÏÊÇô£¿
½¨ÒéÈÓµ½iisÉÏ
Ò»°ã¼ÜÉèµ½·þÎñÆ÷µÄiisÖС£
Ôõô¼ÙÉèµ½IISÖÐÄØ£¿
³ÁÁË£¿
µÚÒ»²½£ºÖØбàÒë³Ì ......
ÈçÌâ:Ç°¼¸Ìì·þÎñÆ÷»¹ÊÇºÃºÃµÄ ½ñÌìÍøÒ³´ò²»¿ªÍ»È»³öÏÖ´íÎó,Ò»²éÊÇÁ´½Ó²»ÉÏÊý¾Ý¿âÁË?
(²éѯ·ÖÎöÆ÷ºÍÆóÒµ¹ÜÀíÆ÷¶¼¿ÉÒÔÕý³£ÏÔʾ)
[SqlException (0x80131904): Óû§ 'sa' µÇ¼ʧ°Ü¡£]
......
·þÎñÆ÷·ÅÖÃÔÚÄÚÍø¡£ÍøÕ¾Ö»ÄÜÊÇͨ¹ýÄÚ²¿ÍøÂç·ÃÎʵġ£ÔõÑù»ñÈ¡¿Í»§¶Ë¼ÆËã»úµÄÓòºÍ¼ÆËã»úÃû£¿
RT£¬Ð»Ð»ÁË¡£
Request.UserHostName
Request.UserHostAddress
Õâ¸öÊÔ¹ýÁ˲»ÐС£
ÈçºÎÔÚ.NETÖлñÈ¡µçÄÔÃû£ ......
ÏÖÔÚ×öÒ»¸öÍøÕ¾£¬ÓÃÁËĸ°æ£¬Óû§¿Ø¼þ£¬¶¼Óõ½ÁËscriptManager£¬¿ÉÊÇÄÚÈÝÒ³»¹ÒªÓÃscriptManager£¬¿´ÁËÏà¹Ø×ÊÁÏ£¬ËµscriptManagerProxy¿ÉÒÔ×÷ΪscriptManagerµÄ´úÀíʹÓã¬ÊÔÁËÏ£¬Ã»Óгɹ¦£¬ÌØ·¢´ËÌû£¬Çë¸÷λ°ï°ïæ£¬Ï ......