problem regarding uploadify using jquery plugin using ASP.NET

problem regarding uploadify using jquery plugin using ASP.NET

i have implemented as per the uploadify implementation there are two problems which i am facing though i am new bie in implentation of ajax and jquery in ASP.NET so please help if any help is possible

the problem definition :

the there are three files in my project apart from the jquery plugins and jquery files :

upload.aspx   and   triggerupload.aspx

and along with that i hav an asynchronous generic event handler which handles an event : upload.ashx

Upload.aspx :
  1. <head runat="server">
        <title></title>
         <link rel="Stylesheet" type="text/css" href="CSS/uploadify.css" />
         <script type="text/javascript" src="scripts/jquery-1.3.2.min.js"></script>
        <script type="text/javascript" src="scripts/jquery.uploadify.js"></script>
    </head>
    <body>
    <form id="form1" runat="server">
        <div style = "padding:40px">
            <asp:FileUpload ID="FileUpload1" runat="server" />
        </div>
    </form>
    </body>
    </html>
    <script type = "text/javascript">
    $(window).load(
        function() {
        $("#<%=FileUpload1.ClientID %>").fileUpload({
            'uploader': 'scripts/uploader.swf',
            'cancelImg': 'images/cancel.png',
            'buttonText': 'Browse Files',
            'script': 'Upload.ashx',
            'folder': 'uploads',
            'fileDesc': 'Image Files',
            'fileExt': '*.jpg;*.jpeg;*.gif;*.png',
            'multi': true,
            'auto': true
        });
       }
    );
    </script>






























triggerupload.aspx :

  1. <head runat="server">
        <title></title>
     <link rel="Stylesheet" type="text/css" href="CSS/uploadify.css" />
     <script type="text/javascript" src="scripts/jquery-1.3.2.min.js"></script>
     <script type="text/javascript" src="scripts/jquery.uploadify.js"></script>
    </head>
    <body>
            <form id="form1" runat="server">
                <a href="javascript:$('#<%=FileUpload1.ClientID%>').fileUploadStart()">Start Upload</a>&nbsp;
               |&nbsp;<a href="javascript:$('#<%=FileUpload1.ClientID%>').fileUploadClearQueue()">Clear</a>
                <div style = "padding:40px">
                    <asp:FileUpload ID="FileUpload1" runat="server" />
                </div>
            </form>
    </body>
    </html>
    <script type = "text/javascript">
    $(window).load(
        function() {
            $("#<%=FileUpload1.ClientID%>").fileUpload({
            'uploader': 'scripts/uploader.swf',
            'cancelImg': 'images/cancel.png',
            'buttonText': 'Browse Files',
            'script': 'Upload.ashx',
            'folder': 'uploads',
            'fileDesc': 'Image Files',
            'fileExt': '*.jpg;*.jpeg;*.gif;*.png',
            'multi': true,
            'auto': false
        });
       }
    );
    </script>
































and  upload.ashx  :


  1. Public Class UploadVB : Implements IHttpHandler
       
        Public Sub ProcessRequest(ByVal context As HttpContext) Implements IHttpHandler.ProcessRequest
            Dim postedFile As HttpPostedFile = context.Request.Files("Filedata")

            Dim savepath As String = ""
            Dim tempPath As String = ""
            tempPath = System.Configuration.ConfigurationManager.AppSettings("FolderPath")
            savepath = context.Server.MapPath(tempPath)
            Dim filename As String = postedFile.FileName
            If Not Directory.Exists(savepath) Then
                Directory.CreateDirectory(savepath)
            End If

            postedFile.SaveAs((savepath & "\") + filename)
            context.Response.Write((tempPath & "/") + filename)
            context.Response.StatusCode = 200
        End Sub
     
        Public ReadOnly Property IsReusable() As Boolean Implements IHttpHandler.IsReusable
            Get
                Return False
            End Get
        End Property

    End Class


























the problem is

1 .  i am getting error  as :

Warning    1    Error updating JScript IntelliSense: C:\Documents and Settings\joydeep\Desktop\MultipleFilesUpload\scripts\jquery-1.3.2.min.js: Object doesn't support this property or method @ 18:9345    C:\Documents and Settings\joydeep\Desktop\MultipleFilesUpload\AutoUpload.aspx    1    1    C:\...\MultipleFilesUpload\

in both the aspx files and when i am trying to run the javscript jquery segments gives unhandled error mentioned as the error above...

2nd...


when i am running the page i am getting error in the page upload.ashx... as in line that object reference not set ... in the line

Dim filename As String = postedFile.FileName



please someone can help me in getting these problems .... what has been the problem in this section please someone help out cause i am not able to get the solution as per new bie.... thanks in advance :)