Click here to Skip to main content
15,886,919 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
In My MVC application I have 2 Menus, In first menu I am calling class library dll asynchronously and displaying success message once it gets completed.

Now If User clicks on second menu before completing the first menu action is there any possibility to display the first async action result on browser while second action is getting executed

What I have tried:

I tried to display alert from MVC action itself but It's not getting displayed if user clicks on second menu otherwise its displaying the result
Posted
Comments
Afzaal Ahmad Zeeshan 7-Mar-19 14:34pm    
I do not understand, if that operation is asynchronous and the second operation requires a result from operation 1, then why are you not using a condition to test whether operation 1 has finished or not?

Once Ajax returns, you can set the condition to be true and allow the user to access second menu. You can even set it to be disabled before operation 1 finishes. Does this not help? Let me know.
Divyay208 7-Mar-19 15:16pm    
I should not block user to go other action ,the first action is asyncronous it may take long time to get complete, so meanwhile user going to another action(view) in this view I want show the status of the first action method in popup if it get completes

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