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

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#£¬sql2000 ¿ª·¢c/sÏµĹ¤×÷Á÷£¿

±¾ÈËc#ÐÂÊÖ ¿ÉÊÇÒªÇóÒªÓÃc# £¬sql2000¿ª·¢c/sµÄ¹¤×÷Á÷£¬Ò»Í·ÎíË®£¬Çë´ó¼Ò°ïæ°ï棬¸øµã˼·£¬ËµµÄÔ¼¾ßÌåÔ½ºÃ£¬ÎÒÒ²ºÃÍùÄǸö·½ÃæÈ¥Ñ§Ï°
http://www.hxzi.com/view/61402.html
B/S°æµÄ£¬»ù±¾Ë¼ÏëÓ¦¸Ã²î²»¶àµÄ¡£¡£ ......

C#Á¬½ÓoracleÊý¾Ý¿â£¬²éѯ³öÀ´µÄÖÐÎÄÊý¾ÝÊÇÂÒÂë

C#Á¬½ÓoracleÊý¾Ý¿â£¬²éѯ³öÀ´µÄ±íµÄÖÐÎÄÊý¾ÝÊÇÂÒÂë
×¢²á±íÀïµÄ×Ö·û¼¯ÒѾ­¸Ä¹ýÁË£¬ÓÃPBÖ±½Ó²é£¬ÖÐÎÄÏÔʾÕý³£
Çë¸ßÊÖÓèÒÔ½â¾ö


ûÈ˻شðÂð£¿

oracle ×Ö·û¼¯ÂÒÂë½â¾ö

Äã¼Ç¼ÄÇÖÐÎĵÄÄǸö×ֶΣ¬ÓÃÊ ......

C#Á¬½ÓoracleÎÊÌâÇó¾È!¼±~~~~~

C#µ÷Óô洢¹ý³ÌÌáʾ·Ç·¨±äÁ¿Ãû¡£

´æ´¢¹ý³Ì´úÂëÈçÏ£º

create or replace procedure login_in(
p_loginid in varchar2,
p_password in varchar2,
p_admin out varchar2,
p_nam out varchar ......

asp.net£¨C#£©ÈçºÎɾ³ý×Ö·û´®ÖеĿÕ×Ö·û£¿

SqlData da = new SqlData();
        SqlDataReader read = da.ExceRead("select * from tb_Admin where AdminName='" + this.txtName.Text + "'");
  ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ