Redirect with POST parameters in MVC 4 for Payment Gateway Integration
问题 I am trying to do a payment gateway integration using mvc4 in razor. In that i need to call a page with prefilled post form. Using the below method, I am forming the post method form: private static string PreparePOSTForm(string url, System.Collections.Hashtable data) // post form { //Set a name for the form string formID = "PostForm"; //Build the form using the specified data to be posted. StringBuilder strForm = new StringBuilder(); strForm.Append("<form id=\"" + formID + "\" name=\"" +