阅读背景:

提交按钮映射到没有相关视图的Controller操作。根据情况返回不同的视图

来源:互联网 

In MVC4, a controller named UserController contains an action ForgotPassword and a respective view is also created. This view contains one textbox and one submit button. On the submit of this button the email id should be verified, if not found in record, it should show a error message on the same view, else navigate to different view. I have used Begin Form for mapping the submit button to a new action VerifyEmailId in UserController. However I am stuck on passing the view based on the validity of the email id. Note that this action VerifyEmailId does not have any related view.In MVC4, a controller named UserController cont




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: