• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 697
  • Last Modified:

How to display confirm modal dialog box in the middle of a process in ASP.NET MVC

I read a csv file into a datable and loop through that datable. If a particular row inside that datatable contains invalid data, then I want to show a pop-up confirm message box telling "Are you sure you want to proceed?" If yes, then remaining looping in datatable will continue. Otherwise, I want to exit from the loop. How to accomplish this in asp.net mvc?

1 Solution
You won't be able to do it quite as you describe.  You'll have to check the csv file for errors first and if it contains any then return a view that prompts for confirmation to continue.

You can't interrupt the server processing with a client prompt.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

Tackle projects and never again get stuck behind a technical roadblock.
Join Now