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
Ïà¹ØÎĵµ£º
×Ô¼º¶¯ÊÖдiPhone wapä¯ÀÀÆ÷Ö®½çÃæ¼Ü¹¹Æª(ÊÖ°ÑÊÖ½ÌÄãiphone¿ª·¢ – ½ø½×ƪ)
×÷ÕߣºËï¶«·ç 2009-12-28£¨×ªÔØÇë×¢Ã÷³ö´¦£©
ÔÚ±ÊÕßµÄÉÏÆªÎÄÕ¡¶×Ô¼º¶¯ÊÖдiPhone wapä¯ÀÀÆ÷Ö®BSD SocketÒýÇæÆª¡·ÖÐÒѾ³É¹¦½âÎö³öÀ´ÁËwmlÒ³ÃæÖеÄtag£¬Èç¹û¶ÁÕß×ÐϸµÄ»°¿ÉÄܻῴµ½ÀïÃæÖÐÎĵÄtagÏÔʾΪÂÒÂ룬ÕâÊÇÒòΪÔÚiPhoneÉÏĬÈϵÄÖÐÎı ......
1.Init£¨³õʼ»¯½×¶Î£©
2.LoadViewState£¨ÔØÈëÊÓͼ״̬£©
3.LoadPostData£¨´¦Àí»Ø·¢Êý¾Ý£©
public virtual bool LoadPostData(string postDataKey, NameValueCollection postCollection)
ÅжÏÊÓÍ ......
ÔÚasp.net 1.1ÖÐ, ¶þ¼¶ÓòÃûFormsÑé֤ģʽϹ²ÏíµÇ½״̬µÄ·½·¨Çë²Î¿¼ÏÂÃæÎÄÕÂ:
http://www.cnblogs.com/caomao/archive/2005/07/05/186606.html
¶øÔÚasp.net 2.0ÖÐʵÏÖ·½·¨¸üΪ¼òµ¥£¬Ö»ÐèÐÞ¸Äweb.configÎļþ¼´¿É£¬Ð޸ķ½·¨ÈçÏÂ:
<authentication mode="Forms">
<forms name ......
ÔÚ×¢²á±í System->CurrentControlSet->Services->Eventlog ´¦Ñ¡ÔñÌí¼ÓϵͳÖÐ AspNet Õâ¸öÕË»§×¢ÒâÊÇÔÚÓÒ¼üµÄ °²È«->ȨÏÞ->Ìí¼Ó
дÈÕÖ¾
public static void Log(string sourceName, string message)
{
EventLog eventLog = null;
......