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

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(Asp.Net)µÄÅäÖÃÓ밲ȫÐÔ

Ç°ÑÔ
FCKeditorÊÇʹÓ÷dz£¹ã·ºµÄHTML±à¼­Æ÷£¬±¾ÎÄ´Ó ASP.NET µÄʹÓó¡¾°¶Ô FCKeditor Óë FCKeditor.NET µÄÅäÖᢹ¦ÄÜÀ©Õ¹£¨Èç×Ô¶¨ÒåÎļþÉÏ´«×ÓĿ¼¡¢×Ô¶¨ÒåÎļþÃû¡¢ÉÏ´«Í¼Æ¬µÄºóÆÚ´¦ÀíµÈ£©¡¢ÒÔ¼°°²È«ÐÔ½øÐгõ²½µÄ²ûÊö¡£
Ï£ÍûÄÜ°ïÖúÓÐͬÑùÐèÇóµÄͬÈʽÚÊ¡Ò»µãʱ¼ä£»Ò²Ï£Íû¸÷λÄÜÖ¸ÕýÆäÖеIJ»×㡣лл¡£
Ò»¡¢×Ô¶¨Òå FCKedit ......

Asp.net³£Óú¯Êý±í

Abs(number) È¡µÃÊýÖµµÄ¾ø¶ÔÖµ¡£
Asc(String) È¡µÃ×Ö·û´®±í´ïʽµÄµÚÒ»¸ö×Ö·ûASCII Âë¡£
Atn(number) È¡µÃÒ»¸ö½Ç¶ÈµÄ·´ÕýÇÐÖµ¡£
CallByName (object, procname, usecalltype,[args()]) Ö´ÐÐÒ»¸ö¶ÔÏóµÄ·½·¨¡¢É趨»ò´«»Ø¶ÔÏóµÄÊôÐÔ¡£
CBool(expression) ת»»±í´ïʽΪBoolean ÐÍ̬¡£
CByte(expression) ת»»±í´ïʽΪB ......

Asp.net ÖÐsession´æ´¢µÄÈýÖÖģʽµÄ¾ßÌåÔËÓÃ

ÔÚAsp.netÖÐSessionµÄ´æ´¢·½Ê½²»ÏóaspÄÇÑùµ¥Ò»£¬Ò»¹²ÌṩÁËÈýÖÖ´æ´¢·½Ê½£¬ÓÉÓÚ×î½üÒ»¸ö2000¶àÈËʹÓõÄwebÈí¼þ³öÏÖÁ˹ÊÕÏ£¬Óû§Ã¿
ÌìÔçÉÏÔÚijһʱ¿Ì³öÏÖÄÑÒԵǽÏÖÏ󣬽Ó×ÅSession¶ªÖµ³öÏÖ£¬Ö»ÓÐÖØÆôIIS,»ò»úÆ÷.Õâʱ³ÌÐò»Ö¸´Õý³£ÁË.ÕûÌ춼²»»á³öÏÖͬÑùµÄÎÊÌâ
£¬µ«ÊǵڶþÌìÒÀ¾É!ÕâÖÖÏÖÏó³ÖÐøÁ˺ü¸Ì죬ÎÒ¼ì²éÁËÒ»ÏÂÈÕÖ¾Îļþ ......

asp.net дϵͳÈÕÖ¾

ÔÚ×¢²á±í System->CurrentControlSet->Services->Eventlog ´¦Ñ¡ÔñÌí¼ÓϵͳÖÐ AspNet Õâ¸öÕË»§×¢ÒâÊÇÔÚÓÒ¼üµÄ °²È«->ȨÏÞ->Ìí¼Ó
дÈÕÖ¾
 public static void Log(string sourceName, string message)
    {
        EventLog eventLog = null;
......

asp.net»ñÈ¡´«ÖµgetºÍpostÇëÇó


//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·½Ê½µ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ