asp.net如何操作文件?
是操作服务器上的!!
可以新建文件夹、删除文件或文件夹!
这个要怎么弄呀??
using System.IO;
//File.Create
//Directory.CreateDirectory
Directory.Delete
只要权限够了就可以了的
那你写几句参考代码给我看看!!
删除的文件跟文件夹的!!
跟新建的!!
参考.NET Framework类库的System.IO命名空间下的类及其成员说明
里面有详细的说明和示例
File.Delete("d:\file.txt");
Directory.Delete("d:\demo");
File.Create("d:\file1.txt");
Directory.CreateDirectory("d:\newdemo");
主要是你要给你的根文件夹足够的权限。
相关问答:
select top 12 * from Product where [id] not in (select top 12 [id] from Product)
这样可以分页,但是我在后面想加个条件
select top 12 * from Product where [id] not in (select top 12 [id] from Prod ......
Imports System.ComponentModel
Imports System.Web.UI
Imports System.Web.UI.Design
Imports System.Web.UI.WebControls
Namespace CBDAspNet.WebControls.HTML
''' <summary>
'' ......
function CheckOpwd(){//验证用户名
var pwd=document.all.txtOpwd;
var div1=document.getElementById("divPwd");
if (pwd.value=="")
{
......
页面 Index.aspx 运行时 页面样子变了
把Index.aspx 生成的代码 复制到 index.html里面运行就没问题
不知道为什么 CSS路径都是相对的
路径用/css/your.css来表示 第一个/表示网站根目录。
路径可能有 ......