开发者

Question about Html.BeginForm in ASP.NET MVC

开发者 https://www.devze.com 2023-03-16 06:08 出处:网络
I have an HTML post method: form method=\"post\" action=\"https:/开发者_运维百科/secure.wp3.rbsworldpay.com/wcc/purchase\" id=\"frmWorldPay\"

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

精彩评论

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