Mr A
Mr A

Reputation: 6768

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?

Upvotes: 1

Views: 223

Answers (1)

SLaks
SLaks

Reputation: 887451

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.

Upvotes: 4

Related Questions