1

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?

1
  • Upvoting because SLaks answer is good. Commented Jun 30, 2011 at 13:40

1 Answer 1

4

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.

Sign up to request clarification or add additional context in comments.

2 Comments

ok I was thinking to write html.beginform for both the post form , but if the markup will be same , then there is no point
yeh i tried adding an alert to my second post=method.. the script is not even triggering that post

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.