C# ÎļþÏÂÔØÓöµ½ÁËAjax
ÎļþÏÂÔØ°´Å¥Ê¼þΪC# code:
string filePath = "D:\\1.jpg";//·¾¶
FileInfo fileInfo = new FileInfo(filePath);
Response.Clear();
Response.ClearContent();
Response.ClearHeaders();
Response.AddHeader("Content-Disposition", "attachment;filename=" + fileInfo.FullName);
Response.AddHeader("Content-Transfer-Encoding", "binary");
Response.Charset = "gb2312";
Response.ContentType = "text/xml";
//Response.Charset = "utf-8";
//Response.ContentEncoding = System.Text.Encoding.GetEncoding("GB2312");
Response.WriteFile(fileInfo.FullName);
Response.Flush(); Response.End();
ǰ̨ÀïÎÒÒ²·ÅÁËC# code:
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
¿ÉÊÇËÀ»î¶¼³ömsxml3.dll: ϵͳ´íÎó: -1072896748¡£
¿ì·èÁË£¬´óÏÀ°ï°ïæ°É
ºÍ ajax ÓÐʲô¹ØÏµ£¿
ûÓÐAJAXÒ»Çж¼OK£¬¼ÓÁËAJAX¾ÍÕâÑùÁË
ajax ¼ÓÔÚÄÄÁË£¿
¼ÓÔÚÇ°Ì¨Ò³ÃæÁ˰¡~C# code
Code highlighting produced by Actipro CodeHighlighter (freeware)
http://www.CodeHighlighter.com
Ïà¹ØÎÊ´ð£º
c# ÓÐûÓÐÓÃÓÚC/SµÄ htmlÎı¾±à¼Æ÷
¾ÍÏñweb½çÃæµÄÎı¾ÄÚÈÝ±à¼Æ÷
up
C/S»¹Òª±àÒëÆ÷¸ÉÂï°¡
ÓÖ²»ÓÿØÖÆÑùʽ
Ã²ËÆÃ»ÓÐ°É Èç¹ûÓÐÁË֪ͨÏÂÎÒ ÎÒÒ²Òªliujintaohfbb@163.comÎÒµÄÓÊÏä ......
Óиöwinform³ÌÐò,ʹÓÃc#+mysql,ÐèÒªÔÚÒ»¸ö´°ÌåÉèÖÃmysql×Ô¶¯É¾³ý¹¦ÄÜ,°üÀ¨×Ô¶¯É¾³ý¶àÉÙÌì֮ǰµÄÊý¾ÝÒÔ¼°ÊÇ·ñ¿ªÆô×Ô¶¯É¾³ý¹¦ÄÜ,ÎÒ³ÌÐòÍ˳öºó,»¹Ôõô¿ØÖÆMysql×Ô¼ºÉ¾³ý°¡?ÊDz»ÊÇÒªÓÃmysqlµÄeventÀ´ÊµÏÖ?c#¿ÉÒÔµ÷ÓÃmysq ......
C#Á¬½ÓoracleÊý¾Ý¿â£¬²éѯ³öÀ´µÄ±íµÄÖÐÎÄÊý¾ÝÊÇÂÒÂë
×¢²á±íÀïµÄ×Ö·û¼¯ÒѾ¸Ä¹ýÁË£¬ÓÃPBÖ±½Ó²é£¬ÖÐÎÄÏÔʾÕý³£
Çë¸ßÊÖÓèÒÔ½â¾ö
ûÈ˻شðÂð£¿
oracle ×Ö·û¼¯ÂÒÂë½â¾ö
Äã¼Ç¼ÄÇÖÐÎĵÄÄǸö×ֶΣ¬ÓÃÊ ......
SQLÓï¾ä£ºSELECT [2009-10].*, urlinfo.[url], urlinfo.[title], urlinfo.[createdate] from ([2009-10] INNER JOIN [urlinfo] ON ([2009-10].urlid)=(urlinfo.urlid))
ÔÚAccessÀïÃæµ¥¶ÀÖ´ÐÐûÓÐÎÊÌâ¡£µ«ÊÇÓÃÔÚ³Ì ......