简体   繁体   English

使用c#在mvc3中上传图像后返回其他页面?

[英]Returning other page after upload image in mvc3 using c#?

我在一个视图中使用2个模型,一个模型在表单中显示,另一个模型也在使用表单但它显示在div标签中,因此在上传图像后弹出窗口正在关闭但我需要显示弹出的数据?

Simply returning another page can be accomplished by returning a RedirectResult from your action method: 只需返回另一个页面就可以通过从action方法返回RedirectResult来完成:

return Redirect("url");

If that's not what you're looking for, then you'll need to be a bit more specific with your question, as it's not entirely clear what you are trying to do. 如果那不是你想要的,那么你需要对你的问题更具体一些,因为你要做的事情并不完全清楚。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM