Articles in this section
Category / Section

How to refresh the page after UploadBox save action?

1 min read

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)
Please sign in to leave a comment
Access denied
Access denied