amShekar

amShekar

  • NA
  • 39
  • 62k

MVC 4 post method waitng progress bar usin actiom method

Feb 7 2014 11:16 PM
Iam having strongly typed view one post method.
@using.beginform("Save","TestController")
{
.................
.................
<button type=submit>Save</button>
}
Public class TestController
{
[httppost]
public save(model testmodel)
{
calling wcf service to save the model data
retern view("Index");
}
}
In the above scenario some time it is taking time to save the data through the wcf service in this case i want to dispaly the waiting progress bar till the save action completes.
I have tried in some ways where i dont have strongly typed model and am calling the action method through ajax call there i could able to achieve this progress bar.
But how can we display the waiting progress bar on form submit method.
Is there any way to maintain a unique waiting progress bar window in <b>application level</b> that we can enable automatically whenever the application take some time.