Best way to create and post a form in codebehind in C#
问题 I'm using webforms and I need to create and POST an http form to a payment gateway for one of my clients. I'm using a user control that is displayed in a masterpage, however they already have an existing <form> on the page, so I'm pretty sure I cannot add another. What is the best practice method to create and post a form in C# from the code behind? Currently I have the following: var nvc = new System.Collections.Specialized.NameValueCollection { {"EWAY_ACCESSCODE", ewayResponse.AccessCode},