Ritu Singh
Problem:
in my aspx:
in my aspx.cs:
I am having an issue that on upload the file, it does not break into the UploadComplete function in my aspx.cs
Solution:
Ok, so it not clear how you installed the toolkit (NuGet, or a zip download).
A simple drag + drop of the ajaxfileupload control should wire up the page correctly.
However, you also need a script manager on the page (and you need that script manager for just about any control from the toolkit).
So, the process with an empty page looks like this:
As you can see, the above automatic adds the assembly reference to the page.
And as noted, the page did have a script manager dropped into the page (drop in the script manager right after the form tag).
So, our page markup now looks like this:
At this point, we could (should) try using the property sheet to add the upload file event.
So, select the control, and now display the property sheet.
So, then this:
So, in most cases, let vs write and create the event stub for you.
The above created this event stub, and let's add some code to save the file.
However, before ANY of the above?
We have to add to the web.config in the config section, add this:
(you probably have a handler’s section in web.config, so use that).
As you can see, this is why I again suggest you use NuGet to install the toolkit.
The above should result in the control now working for you.
The end result is a really nice upload control. It allows un-limited size and has a drag + drop hot spot. So, say this:
Suggested blogs:
>Create a test case for add user functionality in a movie app - Python
>Avoid code duplication between django Q expression and Python
>How can I iterate over enum Flag alias?
>How to train a deep learning in case validation with Pytorch result NaN or high loss?s
>Fixing QVariant output issue in Python
>Removing ASCII formatted characters from my CAN messages in Python