Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

Asp.net¶ÔÎļþ¼ÐºÍÎļþµÄ²Ù×÷Àà

using System;
using System.IO;
using System.Web;
namespace SEC
{
/**////
/// ¶ÔÎļþºÍÎļþ¼ÐµÄ²Ù×÷Àà
///
public class FileControl
{
public FileControl()
{
}
/**////
/// ÔÚ¸ùĿ¼Ï´´½¨Îļþ¼Ð
///
///
Òª´´½¨µÄÎļþ·¾¶
public void CreateFolder(string FolderPathName)
{
if(FolderPathName.Trim().Length> 0)
{
try
{
string CreatePath = System.Web.HttpContext.Current.Server.MapPath
("../../../Images/"+FolderPathName).ToString();
if(!Directory.Exists(CreatePath))
{
Directory.CreateDirectory(CreatePath);
}
}
catch
{
throw;
}
}
}
/**////
/// ɾ³ýÒ»¸öÎļþ¼ÐÏÂÃæµÄ×ÖÎļþ¼ÐºÍÎļþ
///
///
public void DeleteChildFolder(string FolderPathName)
{
if(FolderPathName.Trim().Length> 0)
{
try
{
string CreatePath = System.Web.HttpContext.Current.Server.MapPath
(FolderPathName).ToString();
if(Directory.Exists(CreatePath))
{
Directory.Delete(CreatePath,true);
}
}
catch
{
throw;
}
}
}
/**////
/// ɾ³ýÒ»¸öÎļþ
///
///
public void DeleteFile(string FilePathName)
{
try
{
FileInfo DeleFile = new FileInfo(System.Web.HttpContext.Current.Server.MapPath
(FilePathName).ToString());
DeleFile.Delete();
}
catch
{
}
}
public void CreateFile(string FilePathName)
{
try
{
//´´½¨Îļþ¼Ð
string[] strPath= FilePathName.Split('/');
CreateFolder(FilePathName.Replace("/" + strPath[strPath.Length-1].ToString(),"")); //´´½¨Îļþ
¼Ð
FileInfo CreateFile =new FileInfo(System.Web.HttpContext.Current.Server.MapPath
(FilePathName).ToString()); //´´½¨Îļþ
if(!CreateFile.Exists)
{
FileStream FS=CreateFile.Create();
FS.Close();
}
}
catch
{
}
}
/**////
/// ɾ³ýÕû¸öÎļþ¼Ð¼°Æä×ÖÎļþ¼ÐºÍÎļþ
///
///
public void DeleParentFolder(string FolderPathName)
{
try
{
DirectoryInfo DelFolder = new DirectoryInfo(System.Web.HttpContext.Current.Server.MapPath
(FolderPathName).ToString());
if(DelFolder.Exists)
{
DelFolder.Delete();
}


Ïà¹ØÎĵµ£º

Ò»¸ö¼òµ¥µÄASP.NET +ACCESS µÇ¼

Ê×Ò³£º
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head ......

OrcaleÓëAsp.netµÄ¶Ë¿Ú³åÍ»¡¾Ä§ÀÖÊÓÆµ www.mldn.cn¡¿


Ò³ÃæµØÖ·ÊÇ:http://www.mldn.cn/articleview/2007-2-6/article_view_1400.htm
Web·þÎñµÄinetinfo.exeÓëOracleµÄApache.exe½ø³ÌËùÕ¼ÓõĶ˿ڶ¼°üÀ¨80¶Ë¿Ú¡£
Èç¹ûÓû§ÊÇÔÚ°²×°ÁËOracleÖ®ºó£¬ÔÙʹÓÃ.NET´´½¨ASP.NETÓ¦ÓóÌÐò³öÏÖÏÂÃæÇé¿öµÄ´íÎó£º
VS.NET¼ì²âµ½web·þÎñÆ÷ÔËÐеÄÊÇASP.NET 1.0°æ£¬Òª´´½¨»ò´ò¿ªµÄÓ¦ÓóÌÐò¿ÉÒ ......

ASP.NETÅäÖÃOracleµÄÏà¹ØËµÃ÷

²        Oracle9iµÄ°²×°£¬Çë²ÎÕÕ¹Ù·½µÄ°²×°ËµÃ÷¡£
²        Oracle9i°²×°³É¹¦ÒÔºó£¬Ê¹ÓùÜÀíÔ±£¨Óû§Ãû£ºsys¡¢ÃÜÂ룺sys£©µÄÉí·ÝµÇ¼½øÈ¥£¬´´½¨Ò»¸öÓû§ddymis£¬ÃÜÂ룺ddymis,½ÇɫĬÈϸ³Óèdba¡£
²      ......

´úÂë±àд¹æ·¶ËµÃ÷Ê飨c#.netÓëasp.net£©

1   Ä¿µÄ
2   ·¶Î§
3   ×¢Ê͹淶
3.1   ¸ÅÊö
3.2   ×Ô½¨´úÂëÎļþ×¢ÊÍ
3.3   Ä£¿é£¨ÀࣩעÊÍ
3.4   ÀàÊôÐÔ×¢ÊÍ
3.5   ·½·¨×¢ÊÍ
3.6   ´úÂë¼ä×¢ÊÍ
4   ......

asp.net³£ÓÐС·½·¨ÕûÀí

  =================================<1>Ò³Ãæ¿ØÖÆ  ======================================
 <script type ="text/javascript"  src="../js/Calendar.js"charset ="gb2312"></script>
  <input ID="Text1" type="text" runat="server" onfocus="calendar()"/>
<!- ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ