AJAX :: Asyncfileuploader Uploads Twice?

Oct 29, 2010

I'm hoping that somebody cleverer than I am can explain what's happening with my file uploading and how to improve it.My website is used by vets to submit photographs of tumours in horses for examination by another vet and so it's important that the pictures uploaded are high quality, and therefore the file size is large. Since they might be uploading details of several tumours at a time with several photos of each uploading times can be very long.

I accept that upload speeds are generally slower than download speeds and I have put notes on the page to advise the user to be patient while the images upload. However, I've noticed when using Google Chrome, which displays a percentage-complete in the status bar when files are being uploaded that what seems to happen is that when the user selects a picture from the asyncfileupload control it then slowly counts to 100% as the image is uploaded. But when they then click on the 'Save' button which is when code-behind uploads the file to the web server and writes an entry in the database it again counts to 100% at the same, slow speed.

It's as if the file is being uploaded twice. It's as if the file is being uploaded twice, but I've only coded it to happen once, when the 'Save' button is pressed. The first upload must be some part of the way the asyncfileupload control works. So am I using it incorrectly? Should I somehow be using the inbuilt, automated upload to get the image to my server rather than in the code-behind of the 'Save' button?

One other piece of information which may be relevant is that at the point the picture is uploaded by the asyncfileupload control there is no associated record in the database for it to be linked to. When the 'Save' button is clicked a record for that tumour is created first, then then the image(s) is uploaded and an associated record created with the image filename, so using the automated uploading of the asyncfileupload control may not be possible for me as at that point there is no record to link the filename to. If that's the case can I disable it somehow?

View 8 Replies


Similar Messages:

AJAX :: AsyncFileUploader Is Not Working In IE8?

Nov 26, 2010

Here is the code of my Ajax Toolkit AsyncFileUploader which I have added in my ASP.Net(C#) web application.

[Code]....

[Code]....

public void afuUpload_UploadedComplete(object sender, AsyncFileUploadEventArgs e)

View 4 Replies

AJAX :: How To Style Toolkit AsyncFileUploader Control

Nov 26, 2010

Ajax AsyncFileUploader is appreaing very bad in my ASP.Net(C#) web app.

Another very annoying thig is that; when its style is set to modren it does not show that grey image with the text "Select File" in any of the browser except IE 7.

While with "Tradition Style" the height of this control looks so squeezed in both IE 7 & IE 8 , And Is there any way so that we can change the style of that Browser button like the other buttons on out site and can we apply textbox skin on the uploader to it can shape like a textbox?

View 2 Replies

AJAX :: How To Get Image's Dimensions When The Image Is Being Uploaded By Ajax AsyncFileUploader

Nov 26, 2010

I need to know, how to add a validator in Ajax AsynFileUploader which will validate the image dimensions.

View 8 Replies

C# - Multiple File Uploads In .NET Page?

May 6, 2010

I need to do multiple file uploads in my ASP.NET page. I also have to display a progress bar with the status of the file transfer. It should display an all file progress status bar separately and a total in a separate progress bar until the file upload has finished.

View 4 Replies

Web Forms :: Can Save Uploads To Database

Jan 27, 2011

how i can upload files(word or pdf files) from upload control in asp.net C#,

and how can i save it to database?

instructor must add uploads to his page and students will be able to download this files,how i can do this?

View 7 Replies

Save Website Uploads In A Subdomain?

Nov 5, 2010

Currently whenever a user uploads a file through our website, it gets put in a folder such as:

www.domain.com/Uploads/Docs/filename.doc

However, I'd like to move this to a subdomain such as:

uploads.domain.com/Docs/filename.doc

This is mainly because I'd like to keep the files uploaded by the user, totally seperate from the web app.

However, currently I use an ASP.NET FileUpload control to upload the files, by doing something like:

myFileUpload.SaveAs(Server.MapPath("/Uploads/Docs/filename.doc"))

How would I change this line of code to be able to upload to the subdomain easily?

View 1 Replies

Web Forms :: How To Change Code To Allow More File Uploads

Aug 28, 2010

I have a page currently setup to upload 1 image at a time, it uploaded the image, then creates a thumbnail for that image in the same directory. Client needs / wants to be able to upload a few more images at the same time. So i would like to see if i can use the existing code that works, but setup to upload a few more images and process them all to create the thumbnails.

I currently have a page that allows them to upload 5 images at a time and that works fine, but its just simple uploading the images, nothing else is happening at that moment.

Here is the code i am working with:

[Code]....

View 5 Replies

C# - File Uploads Not Working When Deployed To Server?

Feb 16, 2010

I recently embarked on the endeavor of creating my own asynchronous file upload components for ASP.NET. I took lessons learned form Darren Johnstone's FileUpload project and created an HttpModule for extracting the files from the submitted data.

I got everything working as it should in testing with VS 2008 using the Development Server. I even went so far during my testing to ensure that the request was being intercepted by the module before the files began uploading. After I was satisfied with things, I deployed the project to our web server (Win 2008 w/ IIS 7). I was horrified to learn that the controls were not functioning when deployed.

After some remote debugging, I found that the HttpApplication.AuthenticateRequest event (my location for hooking in to the process) was not being invoked until the files were completely uploaded.

View 1 Replies

C# - Any Third Party Tool Available For Multiple File Uploads?

Aug 18, 2010

For ASP.NET any third party tool available for multiple file uploads which is free. also mention the pros and cons of that tool.

View 1 Replies

Scan Files During Uploads With Use Of FileUpload Server Control

Feb 11, 2011

In continuation to my previous research at this link : Security Risks or concerns with the use of FileUpload control of asp.net - how to Scan files during upload, also how to intimate user if file is virus affected and abort the operation. In addition to above, we have McAfee Antivirus installed on our servers. I heard that there is some APIS for this work for Symantac Antivirus but I am not sure about McAfee antivirus.

View 1 Replies

Session Is Different If Flash Uploads Photo To The Aspx Page?

Mar 17, 2011

I have a aspx called user-photo-upload.aspx and another aspx called get-photo.aspx. I set the Session["PhotoId"] in the page_load method of user-photo-upload.aspx.

If I visit the user-photo-upload.aspx through the browser normally, the session can be retrieved in get-photo.aspx. But if the flash uploads photo to the user-photo-upload.aspx page, I can't get the Session["PhotoId"] in get-photo.aspx.

I discover that the Session ID is different when visiting the page using browser normally or by flash. I don't know why flash uses another session.

View 1 Replies

Web Forms :: FileUpload Uploads Same File Again On Page Refresh?

May 7, 2015

I have fileupload control in my page below is code

protected void BtnUpload3Img_Click(object sender, EventArgs e)
{
    uploadImageError.Visible = true;
    if (fup3.HasFile && fup3.PostedFile.ContentLength < 102400)
    {
        string path = Server.MapPath("~/image/House/product/");
        string fileName = System.IO.Path.GetFileName(fup3.PostedFile.FileName)

[Code]......

when I select image and upload it and after that refresh page it again upload image that I upload with fileuoploadcontrol before...

I want when I upload image with fileuploadcontrol and refresh page it doesn't upload image again...

how I can do it?

View 1 Replies

Web Forms :: Processing Indicator For A Long Process With File Uploads?

Jan 20, 2011

On my current project I have to accept 2 Excel spreadsheets that will be uploaded by clients, process them and create a download package based on this information. This process includes extracting data from the sheets, updating our databases and building several PDF files for the download package. This takes between 15 seconds to 2 minutes to complete, depending on the complexity of the request. Naturally, I want to show some kind of processing indicator rather than just leaving the user hanging while the page loads.

Here's the problem: How to show this processing indicator.

I have to do a full postback to upload the files so this eliminates several nice AJAX indicator methods (sponsoring users rejected the AJAX toolkit async file upload, saying it was confusing to them). If I process on any of the page events during the postback, the page doesn't load until the lengthy process is completed so the browser/site looks 'hung'.

Basically, I need some ideas on how to display a 'building your download' graphic while the lengthy process is working that will also work with a full postback.

View 4 Replies

C# - Multipart File Uploads, Can The Data Be Written To Disk Rather Than Read Into Ram

Jul 31, 2010

I'm using ASP.NET for file uploads, and I'm hitting a bit of a snag in that data sent by the client as multipart form data is read straight into RAM.

Obviously, this means maximum file upload size is limited to the available RAM on the machine, and even then is much smaller as soon as you have multiple simultaneous uploads.

Is it possible to get ASP.NET to write the data to a temporary file on the hard drive as it is recieved rather than reading into RAM?

View 2 Replies

How To Get A Basic System That Uploads A File To The Server And Stores The Details In A Database

May 7, 2010

I need a basic system that uploads a file to the server and stores the details in a database, with the ability to add/ edit/ delete whats there.

Most of the solutions I've seen have been far to indepth. I'd like something very simple so I can pick it apart and modify it.

View 4 Replies

Web Forms :: Multiple File Uploads And Access The Control Inside An Iframe?

Feb 14, 2010

i'm developing a web application using asp.net 3.5 sp1, my issue is , i need to upload multiple files asynchronously.

for that i used the ajax control toolkit "async file upload", where i can only upload single file and cannot track the filenames after uploading, so i go for the "file uploaded ajax"

[URL]

when i started including the cascading dropdown in that page("mainpage.aspx") , an error occured in the page, ie; when i click add files of the "file upload ajax", the "file upload" control some times doesnot show, so i created another page("testpage.aspx") and included the "file upload" control in that page and created an iframe in the "mainpage.aspx" and call the "testpage.aspx", now it is working fine, but i was not able to track the filename, can i access the control inside that iframe from the "mainpage.aspx" ?

mainpage.aspx

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
<form id="form1" runat="server" enctype="multipart/form-data">
<ajaxToolkit:ToolkitScriptManager EnablePartialRendering="true" runat="server" ID="ScriptManager1" />
<div>

[Code]....

View 3 Replies

AJAX :: Getting Error When Try To Add Ajax Toolkit Dll File To Ajax Control Tab?

Dec 22, 2010

When iam try to add ajax control dll file to my ajax toolkit given in visualstudio express edition 2005, i am getting the following error.

"There are no components in 'C:ProgramFilesMicrosoft ASP.NETASP.NET 2.0 Ajax Extensionsv1.0.61025AJAXExtensionsToolbox.dll' that can be placed on the toolbox." what is the error in this?

View 2 Replies

AJAX :: Devloped A Web Application In Visual Studio 2010 Using Framework4.0 And Using Ajax Controls?

Mar 29, 2011

"getting following error at runtime on this line 'd:hgactServerAjaxControlToolkitExtenderBaseExtenderControlBase.cs'. "

View 3 Replies

JQuery :: Does Autocomplete Plugins Works With 2.0 Witout AJAX Toolkit Or Ajax Extender

Aug 10, 2010

I am tring to use Jquery autocomplete into my asp.net 2.0 application, I have all necessary file in place, I tried to worked on , but it seems like this is not working,can some one tell me that is asp.net 2.0 application without using AJAX toolkit works with Jquery autocomplete or it does not work?Note: this is plain asp.net 2.0 web application, it is not using AJAX.

View 6 Replies

AJAX :: JScript Runtime Error 12030 From Ajax Timer When Authorization Expires?

Nov 3, 2010

I have an ASP.NET form with several update panels. All works great.I use a timer and have it handle some periodic upates. That works correctly too. However, I appear to get an error when I leave the page open running in the debugger. Specifically the above JScript error 12030.I'm not clear how to find the source but I assume it is because my page has logged out. If I refresh I go back to my login page.So, does this sound like the cause? If so, how to I address this?

View 2 Replies

AJAX :: Passing Values From Ajax Popup (gridview) To Parent Page Textbox

Nov 30, 2010

I have a ajax Popup extender which contains a grid and when i select a row a value should pass into the textbox in the parent page. i created every thing but the value is posted in the textbox. The Grid is loaded perfectly and the popup shows but when i click the select command field inside the grid the popup disappers but the value is not loaded in the textbox. help me am struck up with this for a very long time.

//aspx

[Code]....
//CS[Code]....

View 3 Replies

AJAX :: Unable To Close/hide Ajax:popupExtender, When Used Inside A Gridview/Itemtemplate

Dec 15, 2010

I am fairly new to web development & stuck up using the ajax:popupExtender inside a gridview/Itemtemplate. So, would like to get help from experts in the forum

[Code].....

Currently I m developing a web page which holds a grivview. As one of the column needs a multiple column dropdown with soring facility, I am using ajax:popupExtender to achive that. Basically in the column i have a Panel1(label & image which mocks up has a dropdown), ajax:popupExtender, Panel1(gridview to have mutiple column). When user clicks on it the ajax:popupExtender is called & the targetpopupid which is a panel2 with gridview is called.

Here when user clicks on thePanel1, I am able to display Panel2 using ajax:popupExtender. Also, when user selects some row, I am able to close/hide the ajax:popupExtender in the code behind using cancel(). (this is done in selectItemIndexchange of panel2 grid view).

But my problem comes when user doesn't select any row & clicks back on the panel1, the ajax:popupExtender will remain open. but it should have been closed as i am trying to mock up dropdown dunctionality. how can I hide/close ajax:popupExtender when user clicks on panel1 2nd time.

Following are the different approaches I tried but nothing worked out.

1. wrote JS, & tried to add attributes of the Panel1's onclick event.
Failed: Error - Object is undefined. even though i passed a valid obj from code behind.

<script language="javascript">

View 5 Replies

AJAX :: Sys.extended.UI.PositioningMode.Absolute Is Null Or Not An Object ,callout Ajax Control

Apr 17, 2010

I'm using callout ajax control but i'm getting an error "sys.extended.UI.PositioningMode.Absolute"

View 2 Replies

AJAX :: Dropdown List In Javascript Using Ajax Service But Unable To Get Its Selected Value In Button?

Apr 6, 2010

I am using ASP.Net 3.5. I have fiiled dropdown list in javascript using ajax service but unable to get its selected value in button click event on server side.

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved