开发者

Question about Html.BeginForm in ASP.NET MVC

I have an HTML post method:

form method="post" action="https:/开发者_运维百科/secure.wp3.rbsworldpay.com/wcc/purchase" id="frmWorldPay"

How to write the above post method in the <% using (Html.BeginForm()) {%> syntax in ASP.NET MVC?


You can't.

The BeginForm() method is designed to create <form> tags for MVC actions; it won't work with arbitrary URLs.

It won't help you anyway; it would just create exactly the same <form> tag as you already have.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜