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

ASP.NetÖеļ¸ÖÖÎļþÏÂÔØ·½·¨

//TransmitFileʵÏÖÏÂÔØ
    protected void Button1_Click(object sender, EventArgs e)
    {
        /*
         ΢ÈíΪResponse¶ÔÏóÌṩÁËÒ»¸öÐµķ½·¨TransmitFileÀ´½â¾öʹÓÃResponse.BinaryWrite
         ÏÂÔØ³¬¹ý400mbµÄÎļþʱµ¼ÖÂAspnet_wp.exe½ø³Ì»ØÊÕ¶øÎÞ·¨³É¹¦ÏÂÔØµÄÎÊÌâ¡£
         ´úÂëÈçÏ£º
         */
        Response.ContentType = "application/x-zip-compressed";
        Response.AddHeader("Content-Disposition", "attachment;filename=z.zip");
        string filename = Server.MapPath("DownLoad/z.zip");
        Response.TransmitFile(filename);
    }
    //WriteFileʵÏÖÏÂÔØ
    protected void Button2_Click(object sender, EventArgs e)
    {
        /*
         using System.IO;
        
         */
        string fileName = "asd.txt";//¿Í»§¶Ë±£´æµÄÎļþÃû
        string filePath = Server.MapPath("DownLoad/aaa.txt");//·¾¶
        FileInfo fileInfo = new FileInfo(filePath);
        Response.Clear();
        Response.ClearContent();
        Response.ClearHeaders();
        Response.AddHeader("Content-Disposition", "attachment;filename=" + fileName);
        Response.AddHeader("Content-Length", fileInfo.Lengt


Ïà¹ØÎĵµ£º

ÕûÀíһϱðÈËÓйØASP.NETµÄºÃ²©ÎÄ£¬Ã»Ê¿´¿´

1¡¢ASP.NETÖеÄAJAXÓ¦Óÿª·¢×ܽá
http://blog.csdn.net/zhoufoxcn/archive/2009/12/07/4954645.aspx
2¡¢ÓÃ×Ô¶¨ÒåIHttpModuleʵÏÖURLÖØÐ´
http://blog.csdn.net/zhoufoxcn/archive/2009/07/14/4346356.aspx
3¡¢°ÑC#Öз½·¨ÖØÔØËµÍ¸
http://blog.csdn.net/zhoufoxcn/archive/2008/09/09/2902078.aspx
4¡¢.net ʵÏÖ URLÖØ ......

´¦ÀíÓзµ»ØÖµµÄºÍreturnµÄasp.netд·¨

 SqlConnection   conPortal   =   new   SqlConnection(CommunityGlobals.ConnectionString);  
                          SqlCommand   cmdAdd   =   new   SqlCommand(   "Community_Disc ......

ASP.NET CookieµÄʹÓûã×Ü

£±¡¢½â¾öCookie¸üÐÂÖͺóµÄÎÊÌâ
¡¡¡¡ÏÈдÈëÒ»¸ö¹ýÆÚµÄCookie£¬ÔÙÌí¼ÓÒ»¸öеÄCookie¾Í£Ï£ËÁË¡£Ê¾Àý´úÂëÈçÏÂËùʾ£º
protected void btnSearch_Click(object sender, EventArgs e)
{
//Éú³ÉÌõ¼þ±í´ïʽ
string where = bll.GetWhereSql(Int32.Parse(ddlCate.SelectedValue),
......

¡¾ASP.NETרÌâ¡¿(10)——EXT JS ʹÓÃ×ܽá

֮ǰд¹ýһϵÁеÄExtJSµÄʹÓý̳̣¬µ«ÊÇ»ù±¾±È½ÏÁãÉ¢£¬±¾ÎÄÖ÷Òª¶ÔÆä½øÐйéÄÉ×ܽᡣϣÍû¶ÔÓÚ³õѧ»òÕ߸´Ï°extjsµÄͬÃËÃÇÓÐËù°ïÖú¡£
ÁбíÇåµ¥ÈçÏÂËùʾ£º
1¡¢ExtJSµÄʹÓ÷½·¨»ã×Ü(1)——ÅäÖúͱí¸ñ¿Ø¼þʹÓà £º
http://blog.csdn.net/rocket5725/archive/2009/09/09/4535323.aspx
2¡¢ExtJSµÄʹÓ÷½·¨»ã×Ü(2)&mdash ......

ASP.netÒ³ÃæÊµÏÖMSSQLÊý¾Ý¿âµÄ´´½¨ºÍ²Ù×÷£¬Êǿⴴ½¨£¡

///   <summary>  
        ///   ´´½¨Êý¾Ý¿â¡£  
        ///   </summary>
        ///   <param name="srvName">±íÊ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ