嗨,我正在使用MVC3和我在C#環境。我想在滿足else語句時彈出一個顯示。 的代碼如下所示:如何通過在C#中的else語句觸發彈出窗口
if (validate.Count < 1) {
db.TutorStudents.Add(tutorStudent);
db.SaveChanges();
return RedirectToAction("Index");
} else {
// need some form of popup message here that does not redirect the user
}
我一直在尋找,我發現JQuery的的解決方案,但他們在點擊結果工作權......相反,我想在彈出的工作else語句時到達了。任何解決方案都是受歡
預先感謝您
你的陳述究竟在哪裏? –