Click here to Skip to main content
15,886,035 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi Friends,

My requirement is, In our cshtml page we have one upload file process,For that we are using Html.Beginform for a specific action to the controller.In our controller after upload process we use RedirectToAction to the same view .But when we come back to the view,It is reloading so that the previous filled controls datas are blank.Here how could we regain the current state of the view since it can't use Ajaxbeginform(filepath would be empty)

Thanks,
Soumya
Posted
Updated 6-Aug-13 1:54am
v2

1 solution

To regain the current state of the view you should make an Ajax call to save the form details to server for avoiding page refresh.If you are submitting a form,means you are interacting with server
which will cause page to be refreshed each time you send request to server.So to avoid page refresh make ajax call.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900