Articles in this section

How to refresh the page after UploadBox save action?

You can use ClientSideOnComplete () event to refresh or redirect any action after the completion of uploading files. You can provide redirected page name in ViewPage and its corresponding controller name in Controller. Refer the following code example.

CSHTML

@{Html.Syncfusion().UploadBox("upload").AllowMultipleFiles(true).ClientSideOnComplete("oncomplete").AsyncUpload(a =>a.SaveAction("Save", "Tools")).Render();}
<script type="text/javascript">
function oncomplete(sender, args) 
{
window.location.href = '/Controller/View/';
}
</script>

 

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Access denied
Access denied