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?