RedirectToAction是不是重定向 [英] RedirectToAction is not redirecting

查看:172
本文介绍了RedirectToAction是不是重定向的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

应该不是这个工作?

如果我有一个破发点最近的} 它停在那里,但它不会继续执行联系动作和张贴后的页面,它只是没有来源$ C ​​$ C空白页

If I had a break point on the last } it stops there but it never gets to the Contact Action, and the page after being posted it's just a blank page with no source code

我缺少什么

感谢您。

推荐答案

您联系(ContactModel模式)不应该是无效的,而是应

Your Contact(ContactModel model) should not be "void", instead it should be

public ActionResult Contact(ContactModel model)
{
    //.... some code

    return RedirectToAction("Contact");
}

这篇关于RedirectToAction是不是重定向的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆