asp.netʵÏÖÎļþÏÂÔØ(wapÊÖ»úÏÂÔØ)
Õâ¸öÎÊÌâÀ§ÈÅÁËÎÒÁ½Ì죬ÊÖ»úÏÂÔØ
protected void Page_Load(object sender, EventArgs e)
{
string filename = Server.UrlDecode(Request["upload"]);
string filePath = Server.MapPath("upload/" + filename);//·¾¶
FileDownload(filePath);
}
/// <summary>
/// ÎļþÏÂÔØ
/// </summary>
/// <param name="FullFileName"> </param>
private void FileDownload(string FullFileName)
{
try
{
FileInfo DownloadFile = new FileInfo(FullFileName);
if (DownloadFile.Exists)
{
Response.Clear();
Response.ClearHeaders();
Response.Buffer = false;
//Response.ContentType = "application/octet-stream";//֪ͨä¯ÀÀÆ÷ÏÂÔØÎļþ¶ø²»ÊÇ´ò¿ª
Response.AppendHeader("Content-Disposition", "attachment;filename=" + HttpUtility.UrlEncode(DownloadFile.FullName, System.Text.Encoding.UTF8));
Response.AppendHeader("Content-Length", DownloadFile.Length.ToString());
&nb
Ïà¹ØÎĵµ£º
ǰÑÔ
FCKeditorÊÇʹÓ÷dz£¹ã·ºµÄHTML±à¼Æ÷£¬±¾ÎÄ´Ó ASP.NET µÄʹÓó¡¾°¶Ô FCKeditor Óë FCKeditor.NET µÄÅäÖᢹ¦ÄÜÀ©Õ¹£¨Èç×Ô¶¨ÒåÎļþÉÏ´«×ÓĿ¼¡¢×Ô¶¨ÒåÎļþÃû¡¢ÉÏ´«Í¼Æ¬µÄºóÆÚ´¦ÀíµÈ£©¡¢ÒÔ¼°°²È«ÐÔ½øÐгõ²½µÄ²ûÊö¡£
Ï£ÍûÄܰïÖúÓÐͬÑùÐèÇóµÄͬÈʽÚʡһµãʱ¼ä£»Ò²Ï£Íû¸÷λÄÜÖ¸ÕýÆäÖеIJ»×㡣лл¡£
Ò»¡¢×Ô¶¨Òå FCKedit ......
1.Init£¨³õʼ»¯½×¶Î£©
2.LoadViewState£¨ÔØÈëÊÓͼ״̬£©
3.LoadPostData£¨´¦Àí»Ø·¢Êý¾Ý£©
public virtual bool LoadPostData(string postDataKey, NameValueCollection postCollection)
ÅжÏÊÓÍ ......
ÖÚËùÖÜÖª£¬WEBÉϵĴòÓ¡ÊDZȽÏÀ§Äѵ쬳£¼ûµÄWEBÉÏ´òÓ¡µÄ·½·¨´ó¸ÅÓÐÈýÖÖ£º
¡¡¡¡1¡¢Ö±½ÓÀûÓÃIEµÄ´òÓ¡¹¦ÄÜ¡£Ò»°ãÀ´Ëµ£¬ÕâÖÖ·½·¨¿ÉÒÔ×öЩÀ©Õ¹£¬¶ø²»Êǵ¥µ¥µÄµ÷ÓÃjavascript:print()ÕâÑù¼òµ¥£¬±ÈÈ磬¿ÉÒÔʹÓÃÈçÏ´úÂ룺
£¼OBJECT
id=WebBrowser classid=CLSID:8856F961-340A-11D0-A96B-00C04FD705A2 height=0 width=0£¾
£¼/ ......
//postÇëÇó
string name = Request["name"].toString();
string name =Request.Form.Get("name").toString();
//getÇëÇó
string name = Request.QueryString["name"].toString();
µ«ÎÒ·¢ÏÖ ÎÞÂÛÊÇ·ñÊÇpostÓëget´«Öµ
¶¼¿ÉÓÃstring name = Request["name"].toString();
±íµ¥Ìá½»ÖÐgetºÍpost·½Ê½µ ......