易截截图软件、单文件、免安装、纯绿色、仅160KB

asp.net 文件夹操作(创建,删除,遍历)

一、创建文件夹
#region 创建文件夹
    /// <summary>
    /// Self_Function:创建文件夹
    /// </summary>
    /// <param name="path">创建文件夹的路径</param>
    /// <param name="noyes">隐藏文件夹True 普通文件夹False</param>
    public void FileNewfile(string path, bool noyes)
    {
        if (noyes)
        {
            //若文件夹不存在则新建文件夹
            if (!Directory.Exists(path))
            {
                //新建文件夹
                Directory.CreateDirectory(path).Attributes.ToString().IndexOf("Hiden");
                File.SetAttributes(path, FileAttributes.Hidden);
            }
        }
        else
        {
            //若文件夹不存在则新建文件夹
            if (!Directory.Exists(path))
            {
                //新建文件夹
                Directory.CreateDirectory(path);
              


相关文档:

ASP.NET自动生成页面后台代码

 声明:
只提供后台.cs文件代码
详细教程地址:http://download.csdn.net/source/2289546
1.需要 编写静态模板页 我使用的是 template.htm
2.在模板页中定义htmlyem标记,标记非固定内容,在后台代码中为标记赋值
3.后台代码如下:
using System;
using System.Data;
using System.Configuration;
using Syst ......

asp.net 利用WMI实现关机重启

我这是拿来别人用的,为了方便以后自己看吧,看对大家有帮忙吗
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.InteropServices;
namespace AppBLL
{
public class ShutDown
{
[StructLayout(LayoutKind.Sequential, Pack = 1)] ......

ASP.NET项目中在64位环境下运行32位dll的配置

在网上找的
 
http://support.microsoft.com/kb/894435/en-us
http://www.atalasoft.com/kb/article.aspx?id=10181
也许以后会用得着。
在web.config中加入以下配置:
C#
<system.codedom>
<compilers>
<compiler
language="c#;cs;csharp" extension=".cs"
compilerOptions="/platform ......

asp.net 服务端的文件管理器

http://www.cnblogs.com/wyforumid/archive/2008/05/14/1196155.html
首先对以上的原创者说对不起下,未经同意就改了他的源码,还把改后的源码发出来。
主要改的地方就是地址栏里的东东了,原文可以看以上的,我贴上自己改后的源码吧
Default.aspx文件
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="D ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号