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)
 
Ïà¹ØÎĵµ£º
IIS 7 ĬÈÏÎļþÉÏ´«´óСʱ30M
ҪͻÆÆÕâ¸öÏÞÖÆ£º
1. ÐÞ¸ÄIISµÄapplicationhost.config
´ò¿ª %windir%\system32\inetsrv\config\applicationhost.config
ÕÒµ½£º <requestFiltering>½Úµã£¬
Õâ¸ö½ÚµãĬÈÏûÓÐ <requestLimits maxAllowedContentLength="ÉÏ´« ......
̸̸ASP.NETÖеēµØÖ·¾ö¶¨ÄÚÈÝ”ÎÊÌâ
ʲôÊǵØÖ·¾ö¶¨ÄÚÈÝ£¿
ÄãÔÚÍøÉϹ䣬¿´µ½Ò»¸öÓÐȤµÄÒ³Ã棬ÓÚÊÇÄã°ÑµØÖ·À¸ÀïµÄÄÚÈݸ´ÖÆÏÂÀ´£¬·¢¸øÕýÔÚ¸úÄãÁÄÌìµÄÍøÓÑ£º“¿´¿´Õâ¸öÒ³Ã棬ÓÐȤ¼«ÁË”£¬ÄãµÄÅóÓÑ´ò¿ªÄã·¢µÄÁ´½Ó£¬¿´µ½µÄÄÚÈÝÓ¦¸ÃºÍÄãÕýÔÚ¿´µÄÒ»Ñù¡£Ò²¼´£¬Ò³ÃæµÄÖ÷ÒªÄÚÈÝÓ¦µ±È¡¾öÓÚµØÖ·À¸ÖеĵØÖ·¡£µ«Ô ......
ÔÚ2003ϵͳÏÂ,°´ÕÕÔÚIIS6ÖÐÍøÕ¾ÓÒ¼üÊôÐÔ£Ö÷Ŀ¼£ÅäÖãÔÚͨÅä·ûÓ¦ÓóÌÐòÓ³É䣲åÈëÉèÖÃÌí¼ÓͳÅä·û,¿ÉÖ´ÐÐÎļþÑ¡ÔñC:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll¡¡×¢Òâ“È·ÈÏÎļþÊÇ·ñ´æÔÚ”Õâ¸öÑ¡ÏҪѡÉÏ
2 Õ¾µãÖÐÒýÈëUrlRewrting.dll
3 Web.configÅäÖÃÐÞ¸ÄÈçÏ£º
<RewriterConfig& ......
ÒÔblogϵͳΪÀý£¬Ò»¸ö¼òµ¥µÄblogϵͳģÐÍ°üÀ¨£º
1.·¢±íһƪеÄblog
2.ÏÔʾһƪblog
3.ÐÞ¸Äһƪblog
4.ɾ³ýһƪblog
ASP.net MVC»áÊÇÕâÑùµÄURL¹æ»®£º
*. http://www.gaotianpu.com/blog/create,´´½¨
get·½·¨¸øÓû§Õ¹Ê¾Ò»¸öhtml±íµ¥,¹©Óû§Ìá½»Êý¾Ý
post·½·¨½ÓÊÜÓû§Ìá½»µÄÊý¾Ý£¬²åÈëµ½db
*. http://www.gaotianpu. ......
×î½üÕýÔÚѧϰ ASP.NET£¨C#£© ,¸Ð¾õÈÏʶÉÏÈ¥Á˾Ͳ»ÊÇÄÇôÄÑÒÔÀí½âÁË¡£ÎÒÊÇASP ³öÉí£¬ÓеÄʱºòѧASP.NET ×ÜÊÇ»ìÏýµÄһЩµØ·½¡£ºÇºÇ£¬²»¹ýÀí½âÉÏÈ¥Á˾ͺúܶàÁË¡£ÎÒÏ£ÍûºÃÅóÓÑÃÇÌáÌáºÃµÄ½¨Òé¡£°ï°ïСµÜ£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡1 ......