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

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 ÎļþÉÏ´«´óСÏÞÖÆ½â¾ö·½°¸ÐÞ¸ÄIIS7/7.5ÅäÖÃ

IIS 7 ĬÈÏÎļþÉÏ´«´óСʱ30M
ÒªÍ»ÆÆÕâ¸öÏÞÖÆ£º
1. ÐÞ¸ÄIISµÄapplicationhost.config
    ´ò¿ª %windir%\system32\inetsrv\config\applicationhost.config
     ÕÒµ½£º <requestFiltering>½Úµã£¬
  Õâ¸ö½ÚµãĬÈÏûÓÐ <requestLimits maxAllowedContentLength="ÉÏ´« ......

Asp.Net XML²Ù×÷»ùÀà

using System;
using System.Data;
using System.Configuration;
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.IO;
using System.Xml;
using System.Text; ......

asp.net treeview ²Ëµ¥Ê÷ Á´½Ó Õ¹¿ª ÕÛµþ

»­Ã棺
<asp:HiddenField ID="hfdXuHao" runat="server" />
<asp:TreeView ID="tvMenu" runat="server" CssClass="tvStyle" EnableClientScript="false"
                        & ......

¡¾asp.net¡¿´úÂëÖмâÀ¨ºÅºÍ°Ù·ÖºÅµÄº¬Òå

1¡¢<%=%> ÀïÃæ·ÅµÄ±äÁ¿Ãû£¬È磺
<div>
<h1>Hello World</h1>
<p>Welcome to Beginning ASP.NET 3.5 on <%=
DateTime.Now.ToString() %></p>
</div>
Êä³ö½á¹ûΪ£º
Hello World
Welcome to Beginning ASP.NET 3.5 on 2009-11-10 15:53:08
2¡¢ <%#%> ÕâÀïÊÇÊ ......

asp/asp.netÁ¬½Ósql anywhereÊý¾Ý¿â


<%
set conn= server.createobject("ADODB.connection")
conn.open "driver={sybase driver 10};"
"srvr=SYBASE;"
"UID=sa;"
"pwd=sybase;"
sql="select no from tab_st ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ