Quick Links
ASP.NET File Upload Progress - Cancel Request
This example demonstrates how to cancel data transmitting (large files uploading) from client-side.
Example code
<
%@ Register
TagPrefix
="fup"
Namespace
="OboutInc.FileUpload"
Assembly
="obout_FileUpload"
%
>
...
<
script
type
="text/JavaScript">
function
Cancel(){
<%= uploadProgress.ClientID %>
_obj.CancelRequest();
}
</
script
>
...
<
input
type=file
name
="myFile1"
>
<
br
/
>
<
input
type=file
name
="myFile2"
>
<
br
/
>
<
input
type=file
name
="myFile3"
>
<
br
/
>
<
br
/
>
<
ASP:LinkButton
runat
="server"
text
="Submit"
/
>
<
ASP:LinkButton
runat
="server"
text
="Cancel request"
onClientClick
="Cancel();"
/
>
<
br
/
>
<
br
/
>
<
fup:FileUploadProgress
OnClientProgressStopped
="function(){alert('Files uploaded to server');}"
ID
="uploadProgress"
InnerFiles
="true"
ShowUploadedFiles
="true"
runat
="server"
/
>
<
fup:StatusPanel
runat
="server"
>
<
asp:Label
runat
="server"
id
="ServerResponse"
Text
=" "
/
>
<
/
fup:StatusPanel
>
Submit
Cancel request
Uploaded 
% (
) Total
Uploaded
files
file
from
Uploading file
Last uploaded file
:
Elapsed time:
Estimated time:
Speed:
(Session lost)
rejected
uploaded
"
You did great work,it is a magic and thank you for that.
"
Fahad S Alenazi
King Faisal Specialist Hospital & Research Centre
obout.com
obout.com Home
File Upload Progress Home
File Upload Progress Home
Download
Site Map
Examples
- 11
Default settings
Show uploaded files names
Client-side events handling
Another style
Localization
Custom time format
Preserve space
Allowed file extensions and sizes
StatusPanel
control use
Add/delete file inputs
Cancel data transmitting
Customize
- 2
Custom style file
Custom localization file
Configuration
- 4
obout_FileUpload DLL
Web Configuration
- 3
UploadProgressModule
UploadProgressHandler
Optional settings
Knowledge Base
- 1
Knowledge Base
Documentation
- 5
Server side properties
Client side interface
- 3
OnClientProgressRefreshed
OnClientFileCleared
OnClientFileRejected
Upload large files
ChangeLog
Products
AJAX Page
Calendar
Color Picker
Date Picker
File Upload Progress
Flyout
Grid
HTML Editor
Image Zoom
Listbox
Multilevel Listbox
Scheduler
Show
Spell Checker
Splitter
Tab Strip
TreeView
Tree_DB
Window
Menu
Context Menu
Easy Menu
Slide Menu
Text Menu
Combobox
Combobox
AJAX Autosuggest
Multilevel Combobox
State Selector
Interface Controls
Button
Checkbox
Dropdown List
Multiline Textbox
Radio Button
Textbox
ASP.NET MVC
Interface Controls
Download
Download page
Install FAQ
Tech Support
Our clients
Testimonials
Support
Support
Purchase
Purchase page
Contact Sales
License info
Sales FAQ
Customer login
Print Invoice
Installation
Company
Legal
Clients
Testimonials
Contact