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

flexÉÏ´«Îļþ(flex+asp.net)

·Ï»°²»Ëµ£¬Ö±½Ó´úÂ벿·Ö´úÂëÕª³­×ÔÍøÉÏ£¬ÔÚ´ËÏëÔ­×÷Õß±íʾ¸Ðл
1¡¢·þÎñ¶Ë uploadFile.ashx
<%@ WebHandler Language="VB" Class="UploadFile" %>
Imports System
Imports System.Web
Imports System.Web.HttpServerUtility
Imports System.IO
Imports System.Web.HttpRequest
Public Class UploadFile : Implements IHttpHandler
   
    Private m_UploadPath As String = "~\Files\"
   
    Public Sub ProcessRequest(ByVal context As HttpContext) Implements IHttpHandler.ProcessRequest
        context.Response.ContentType = "text/plain"
    
        Dim responses As String = ""
        Dim files As HttpFileCollection = context.Request.Files
        If files.Count = 0 Then
            'Response.Write("ÇëÎðÖ±½Ó·ÃÎʱ¾Îļþ")
            context.Response.End()
        Else
            ' ֻȡµÚ 1 ¸öÎļþ
            Dim file As HttpPostedFile = files.Item(0)
            If (file IsNot Nothing AndAlso file.ContentLength > 0) Then
                Dim path_1 As String = context.Server.MapPath(m_UploadPath)
                Dim today As DateTime = DateTime.Today
                Dim dirname As String = String.Format("/Files/{0}/{1}/{2}/", today.Year, today.Month, today.Day)
         &n


Ïà¹ØÎĵµ£º

¹ØÓÚasp.net mvc·Óɱí

µ±Ð´´½¨Ò»¸öasp.net mvcÓ¦ÓóÌÐò£¬»á×Ô¶¯²úÉúÒ»¸ö·ÓÉÅäÖá£
Global.asax.cs:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Routing;
namespace mvcApp
{
// Note: For instructions on enabling IIS6 or IIS7 classic m ......

ASP.NETα¾²Ì¬

ʹÓû·¾³£ºWindows XP Professional
¿ª·¢Æ½Ì¨£ºNET2.0,VS2005
ÒѾ­¹ý²âÊÔ,ʵÏÖÁËα¾²Ì¬¼¼ÊõµÄʵÏÖ,¿ÉÒÔʵÏÖÖîÈçShow.aspx?MyID=1³É¹¦×ª»»Îª1.htmlµÄת»»,ÏÖÔÚ½«³É¹ûÓë´ó¼Ò·ÖÏíһϣº
      ÒýÈ룺ÎÒÃÇΪʲô²»Ö±½ÓʹÓÃShow.aspx?MyID=1ÕâÖÖ·ÃÎÊ·½Ê½¶ø·ÇҪʹÓÃ1.htmlÕâÑùµÄ·ÃÎÊ·½Ê½ÄØ,Ò²ÐíºÜ¶àÈ ......

asp.net ajax ÖÐ Sys Ϊ¶¨Òå´íÎó½â¾ö·½°¸

ÍøÒ³ÖгöÏÖ“'sys' 䶨Òå
”»ò“'Sys' is undefined”µÄ´íÎó¡£
´ËʱÎÒÃÇÒª×öµÄÊÇÔÚ web.config
ÖÐ <system.web> Ò»½ÚÏÂÃæÌí¼ÓÀàËÆ
ÈçÏÂÄÚÈÝ£º
    <httpHandlers>
      <add
verb="GET,HEAD" path="ScriptResource.a ......

ʹÓÃASP.NET Global.asax Îļþ

       Global.asax Îļþ£¬ÓÐʱºò½Ð×ö ASP.NET Ó¦ÓóÌÐòÎļþ£¬ÌṩÁËÒ»ÖÖÔÚÒ»¸öÖÐÐÄλÖÃÏìÓ¦Ó¦ÓóÌÐò¼¶»òÄ£¿é¼¶Ê¼þµÄ·½·¨¡£Äã¿ÉÒÔʹÓÃÕâ¸öÎļþʵÏÖÓ¦ÓóÌÐò°²È«ÐÔÒÔ¼°ÆäËüһЩÈÎÎñ¡£ÏÂÃæÈÃÎÒÃÇÏêϸ¿´Ò»ÏÂÈçºÎÔÚÓ¦ÓóÌÐò¿ª·¢¹¤×÷ÖÐʹÓÃÕâ¸öÎļþ¡£
¸ÅÊö
Global.asax λÓÚÓ¦ÓóÌÐò¸ùĿ¼Ï¡£ ......

asp.net¸ù¾ÝµÇ½Ãû·ÖÅäȨÏÞ

using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Text;
using System.Collections.Generic;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using Sy ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ