Quantcast
Channel: AjaxControlToolkit Work Item Rss Feed
Viewing all articles
Browse latest Browse all 4356

Edited Unassigned: AJAXFileUpload Ampersand error [27476]

$
0
0
Hi there,

I've been trying to test out the AJAXFileupload I have on an admin page for a site I'm building but having problems with the & character if it exists in a filename.

In the UploadComplete function I cannot get any characters that are after the & character to show at all from the e.Filename argument.

For example if I upload a filename called 123456&78910.jpg the e.Filename is returning 123456 and that's it. I was trying all sorts of replacement routines earlier thinking it was just that character stopping but when I have outputted e.Filename to a session variable and then checked the variable it's just stopping at the & and not proceeding.

e.g.

```
Protected Sub AjaxFileUpload1_UploadComplete(sender As Object, e As AjaxControlToolkit.AjaxFileUploadEventArgs) Handles AjaxFileUpload1.UploadComplete

Session("outputFilename") = e.Filename

End Function
```

If I response.write Session("outputFilename") on another part of the page then it's showing as above, cutting off as soon as it hits the &.

Regards

Viewing all articles
Browse latest Browse all 4356

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>