I have in my MVC view..
//Submit file
<% using (Html.BeginForm("MethodName","ControllerName", FormMethod.Post, new { enctype = "multipart/form-data"})) { %>
<input type="file" name="file" id="file"/>
<input type="text" id="file-name" name="Id"/>
<input type="submit" value="Submit" name="Submit"/>
<% } %>
//Save link.
<span class="Update" onclick="js.function()">Update</span>
Once I click on the Submit button, I go to controller and the method to run some code that submits the file to the database. After that is finished, I need to auto-click/force click the save link so that the js function is run after the submit .. how can I do that.