I have jQuery similar to this on a view:
<script>
$(function() {
$("#yourID").makeAsyncUploader({
upload_url: "/Images/AsyncUpload",
flash_url: '/Scripts/swfupload.swf',
button_image_url: '/Scripts/blankButton.png'
});
});
</script>
I need to change the upload_url to receive a parameter so that it goes to a Url like:
/Images/AsyncUpload/23
... where 23 is the value of Model.ProjectId.
Is there a way to inject the value I need into the jQuery? I tried ...
upload_url: "/Images/AsyncUpload/<%= Model.ProjectId %>",
... but intellisense was having none of it.