Asp.net,使用创建文件夹 [英] Asp.net, using create folder
本文介绍了Asp.net,使用创建文件夹的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
问题是我已经选择了创建文件夹的按钮,并且我想要创建按钮单击事件的代码,当用户单击该按钮时,光标进入文本框以提供该文件夹的名称.然后单击创建文件夹"按钮,将创建文件夹.
the question is i have taken the button which is create folder and i want the code for create button click event, when the user click on that button, cursor goes into the textbox to give the name for that folder.and after that click on create folder button and result is folder created.
推荐答案
使用 ^ ].检查是否存在用于创建目录的适当权限,或者您需要使用模拟 [ ^ ].
http://forums.asp.net/t/1683562.aspx/1 [ ^ ]
http://stackoverflow.com/问题/6152979/how-can-i-create-a-new-folder-in-asp-net-using-c [
Use CreateDirectory[^]. Check if proper rights are there for creating the directory, or you need to use impersonation[^].
http://forums.asp.net/t/1683562.aspx/1[^]
http://stackoverflow.com/questions/6152979/how-can-i-create-a-new-folder-in-asp-net-using-c[^]
1)要将焦点设置到您的TextBox中,请参见下面的链接.
http://msdn.microsoft.com/en-us/library/ms178232.aspx
2)创建新的目录/文件夹.
http://msdn.microsoft.com/en -us/library/system.io.directory.createdirectory(v = VS.100).aspx
1) To set focus into your TextBox refer below link.
http://msdn.microsoft.com/en-us/library/ms178232.aspx
2) To Create new Directory/Folder.
http://msdn.microsoft.com/en-us/library/system.io.directory.createdirectory(v=VS.100).aspx
检查一下
http://msdn.microsoft.com/en-us/library/as2f1fez.aspx [ ^ ]
Check this out
http://msdn.microsoft.com/en-us/library/as2f1fez.aspx[^]
这篇关于Asp.net,使用创建文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文