asp.net(C#) Êý¾Ý¿â±¸·Ý»¹Ô Ô´Âë
Backup.aspx
protected void Button1_Click(object sender, EventArgs e)
{
string path = Server.MapPath("") + @"\Backup";
if (!Directory.Exists(path))
{
Directory.CreateDirectory(path);
}
try
{
path = Convert.ToString(Hst.DBUtility.DbHelperSQL.GetSingle("p_DataBaseBack"));
LabelMessage.Text = "±¸·Ý³É¹¦; Îļþ´æ·Å·¾¶ÔÚ£º" + path;
}
catch
{
LabelMessage.Text = "±¸·Ýʧ°Ü!ÇëÁªÏµ¹ÜÀíÔ±";
}
}
DataBack.aspx
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Data.SqlClient;
using Hst.DBUtility;
public partial class SysManager_DataBack : System.Web.UI.Page
{
const string FilePath = "E:\\Backup\\";
int a = 1;
Hst.SysManage.FileControl fc = new Hst.SysManage.FileControl();
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
 
Ïà¹ØÎĵµ£º
̸̸ASP.NETÖеēµØÖ·¾ö¶¨ÄÚÈÝ”ÎÊÌâ
ʲôÊǵØÖ·¾ö¶¨ÄÚÈÝ£¿
ÄãÔÚÍøÉϹ䣬¿´µ½Ò»¸öÓÐȤµÄÒ³Ã棬ÓÚÊÇÄã°ÑµØÖ·À¸ÀïµÄÄÚÈݸ´ÖÆÏÂÀ´£¬·¢¸øÕýÔÚ¸úÄãÁÄÌìµÄÍøÓÑ£º“¿´¿´Õâ¸öÒ³Ã棬ÓÐȤ¼«ÁË”£¬ÄãµÄÅóÓÑ´ò¿ªÄã·¢µÄÁ´½Ó£¬¿´µ½µÄÄÚÈÝÓ¦¸ÃºÍÄãÕýÔÚ¿´µÄÒ»Ñù¡£Ò²¼´£¬Ò³ÃæµÄÖ÷ÒªÄÚÈÝÓ¦µ±È¡¾öÓÚµØÖ·À¸ÖеĵØÖ·¡£µ«Ô ......
ÔÚÒÔÇ°µÄASPʱºò£¬µ±ÇëÇóÒ»¸ö*.aspÒ³ÃæÎļþµÄʱºò£¬Õâ¸öHTTPÇëÇóÊ×ÏȻᱻһ¸öÃûΪinetinfo.exe½ø³ÌËù½Ø»ñ£¬Õâ¸ö½ø³Ìʵ¼ÊÉϾÍÊÇwww·þÎñ¡£½Ø»ñÖ®ºóËü»á½«Õâ¸öÇëÇóת½»¸øasp.dll½ø³Ì£¬Õâ¸ö½ø³Ì¾Í»á½âÊÍÕâ¸öaspÒ³Ã棬Ȼºó½«½âÊͺóµÄÊý¾ÝÁ÷·µ»Ø¸ø¿Í»§¶Ëä¯ÀÀÆ÷¡£ÆäʵASP.DLLÊÇÒ»¸öÒÀ¸½ÔÚIISµÄISAPIÎļþ£¬Ëü¸ºÔðÁ˶ÔÖîÈçASPÎļþ£¬A ......
ϵͳÀà
¡¡¡¡TypeÀ࣬ObjectÀ࣬StringÀ࣬ ArrayÀ࣬ConsoleÀ࣬ ExceptionÀ࣬GCÀ࣬ MarshalByRefObjectÀ࣬ MathÀà¡£
¡¡¡¡DateTime½á¹¹£¬Guid ½á¹¹£¬
¡¡¡¡ICloneable½Ó¿Ú£¬IComparable½Ó¿Ú£¬IConvertible½Ó¿Ú£¬ IDisposableÀ࣬
¡¡¡¡¼¯ºÏÀà
¡¡¡¡ICollection½Ó¿Ú£¬IComparer½Ó¿Ú£¬IDictionary½Ó¿Ú¡£IDictionaryEnume ......
±¾ÆªÎÄÕ½éÉÜÁËÔÚASP.Net 2.0ÈçºÎ×ö´°ÌåÉí·ÝÑéÖ¤£¬²¢ÇÒ½²½âÁËIISºÍASP.Net2.0´°ÌåÉí·ÝÑéÖ¤»úÖÆÊÇÈçºÎ½áºÏÔÚÒ»ÆðµÄ¡£ÎÒÃÇ»¹»áÏêϸ½²½âÒ»ÏÂ2.0ÖйØÓÚ´°ÌåÉí·ÝÑéÖ¤µÄÒ»¸öÀࣺFormsAuthenticationModule¡£
l ×ÛÊö
µ±Ä³Ò»¸öÓû§Ê¹ÓÃÓû§Ãû³É¹¦µÇ½Íøվʱ£¬FormsAuthenticatio ......
×î½üÕýÔÚѧϰ ASP.NET£¨C#£© ,¸Ð¾õÈÏʶÉÏÈ¥Á˾Ͳ»ÊÇÄÇôÄÑÒÔÀí½âÁË¡£ÎÒÊÇASP ³öÉí£¬ÓеÄʱºòѧASP.NET ×ÜÊÇ»ìÏýµÄһЩµØ·½¡£ºÇºÇ£¬²»¹ýÀí½âÉÏÈ¥Á˾ͺúܶàÁË¡£ÎÒÏ£ÍûºÃÅóÓÑÃÇÌáÌáºÃµÄ½¨Òé¡£°ï°ïСµÜ£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡1 ......