how can i show an popup coming from a controller after my task has finished? something like to notice the user it has been finished?
2 Answers
I resolved this as following:
step 1- create a partial view name "_Empty.cshtml"
then, in that view you can send message to end user based on your controller condition.
and in the controller write this two lines:
ViewData["AlertMessage"] = AlertMessage.NoClient; return PartialView("_Empty");
here the user not select any client, so i redirect user to empty partial view and tell user that please select client then proceed to another opration.