开发者

Can I have form tag inside View in MVC?

Can we put form tag inside view in MVC. I need to keep report controller inside the form tag which is inside the view. It work开发者_运维百科s fine. I am new to MVC, can anybody tell is it the correct way to work with.


Yes, you can put form tags in views. Forms are standard html tags, so it's not a problem. You can also put form tags with runat="server" if you want to render some server controls that require it.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜