我们可以在一个cshtml页面中使用2个上传控件吗? [英] Can we use 2 upload controls in one cshtml page

查看:73
本文介绍了我们可以在一个cshtml页面中使用2个上传控件吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我有一个页面,我可以有一个标题附件和一个网格,我可以附加到每一行。



有没有办法检查。





谢谢和问候,
Mathi。

Hi,

I have a page where I can have a header attachment and also a web grid where I can attach to each rows.

Is there a way to check that.


Thanks & Regards,
Mathi.

推荐答案

是的,你可以..

为每次上传使用不同的html.beginform

例如:



yes you can..
use different html.beginform for each upload
eg:

@using (Html.BeginForm("Action", "Controller", FormMethod.Post))
{
**upload1
}

@using (Html.BeginForm("Action", "Controller", FormMethod.Post))
{
**upload2
}


这篇关于我们可以在一个cshtml页面中使用2个上传控件吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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