Click here to Skip to main content
15,891,828 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
XML
I was trying to integrate Payumoney Payment gateway in one of a E Commerce site developed in MVC4. To redirect to the gateway for payment i have to submit :

<pre lang="text"><pre lang="HTML"><form id="PostForm" name="PostForm" action="https://test.payu.in/_payment" method="POST"><input type="hidden" name="lastname" value=""><input type="hidden" name="address2" value=""><input type="hidden" name="udf5" value=""><input type="hidden" name="curl" value=""><input type="hidden" language='javascript'>var vPostForm = document.PostForm;vPostForm.submit();</script>

In ASP.Net, this is the code

Page.Controls.Add(new LiteralControl(strForm));

How to achieve this in MVC?

Thanks, Prasant
Posted
Updated 10-Mar-18 0:18am

1 solution

I was trying to integrate Payumoney Payment gateway in one of a E Commerce site developed in MVC. To redirect to the gateway for payment I have to submit :

and in submit action this code i have.In asp.net c# its working fine but in mvc what i have to put for below code,i am getting error here while using mvc

Page.Controls.Add(new LiteralControl(strForm));

how to use this code in mvc
 
Share this answer
 
v3
Comments
Patrice T 10-Mar-18 6:33am    
open your own question.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900