asp.net ÖÐÈçºÎÔÚÏÂÔØµÄ¹ý³ÌÖиü¸ÄÏÂÔØÎļþµÄÃû³Æ
C# code:
FileInfo aFile = new FileInfo(name);
Response.Clear();
Response.ContentType = "application/octet-stream";
Response.AddHeader("Content-Disposition", "attachment;FileName=" + System.IO.Path.GetFileName(name));
Response.WriteFile(name);
Response.End();
ÎÒÓÐÒ»¸öÎļþÏÂÔØÒ³Ãæ£¬ÓÐÒÔÏÂÏÂÔØÎļþ
test.txt -------->ÕâÊÇÓû§ÔÚÏÂÔØÒ³Ãæ¿´µ½µÄ£¬µ«ÊÇÊÇʵ¼ÊÉÏÕâ¸öÁª½Óʵ¼ÊÖ¸Ïò·þÎñÆ÷ÖÐÁíÍâ¸öÎļþ(aa.txt)
ÏÖÔÚµÄÒѾʵÏÖÁËÎļþÏÂÔØ£¬µ«ÊÇ£¬ÏÂÔØÊ±µÄÎļþÃûÊÇ·þÎñÆ÷ÉÏÕæµÄÎļþÃûaa.txt£¬¶ø²»ÊÇÓû§¿´µ½µÄÎļþÃûtest.txt....
Íû¸ßÊÖλָµã
²»¶®¡£°ï¶¥~~
»Ø¸´ÄÚÈÝ »Ø¸´ÄÚÈÝÌ«¶ÌÁË£¡
Response.AddHeader("Content-Disposition", "attachment;FileName=test.txt");
Äã¸ÄÕâ¾ä¿´¿´
ÔÚÄãµÄ³ÌÐò
Response.AddHeader("Content-Disposition", "attachment;FileName=" + System.IO.Path.GetFileName(name));
ÖÐ,°ÑSystem.IO.Path.GetFileName(name)»»³ÉÄãÏëÒªµÄÎļþÃû¼´¿É(ÖØÐÂÉú³ÉÍøÕ¾ºó²ÅÓÐЧ¹û)
string path = Server.MapPath("~/") + "";
Response.AppendHeader("Content-Disposition", "attachment;filename=" + System
Ïà¹ØÎÊ´ð£º
select top 12 * from Product where [id] not in (select top 12 [id] from Product)
ÕâÑù¿ÉÒÔ·ÖÒ³£¬µ«ÊÇÎÒÔÚºóÃæÏë¼Ó¸öÌõ¼þ
select top 12 * from Product where [id] not in (select top 12 [id] from Prod ......
function CheckOpwd(){//ÑéÖ¤Óû§Ãû
var pwd=document.all.txtOpwd;
var div1=document.getElementById("divPwd");
if (pwd.value=="")
{
......
±¾ÈËĿǰÓöµ½Ò»¸öÄÑÌ⣬Çë¸÷λ¸ßÊÖ¡¢´óÏÀ°ï°ïæ¡£
ÎÒµ¥»÷Ò»¸ö°´Å¥Ê±Òª°ÑgridviewÖеÄÊý¾ÝÒ»¸öÒ»¸öµÄÈ¡³ö²¢°Ñ¶ÔÓ¦²ÎÊý´«µÝ¸øÇ°Ì¨µÄjs¡£
ÎÒÊÔÁ˼¸ÖÖºǫ́µ÷ǰ̨µÄ·½Ê½¶¼Ã»Óгɹ¦£¬ËùÒÔÇë´óÏÀÃǰï°ïСµÜ¡£
лл¡£
²» ......
ÎÒÅóÓѵÄÒ»¸öASP.NETÒýÓÃÁËajax¼¼Êõ£¬binĿ¼ÏÂÃæÒ²ÓÐajaxpro.dll£¬ÎªÊ²Ã´·þÎñÆ÷²»ÐèÒª°²×°ajax²å¼þÒ²¿ÉÒÔÔËÐÐÄØ£¬ÕÕÀí˵Ӧ¸ÃÒª°²×°ASPAJAXExtSetup.msi
ÓÐ ajaxpro.dll¾Í¿ÉÒÔÁË
²»Í¬µÄaajx×é¼þ
AjaxPro¾ÍÊÇ¿ò¼ ......