I recently tried to use asp.net POST method and came up with some issues
I'm asking this when i tried to use post method it does not allow me to change action of form and allowed to use only one server side form per page.
what i did was create my own form control and use it on page
Response.Clear();
StringBuilder sb = new StringBuilder();
sb.Append("<html>");
sb.AppendFormat(@"<body onload='document.forms[""form""].submit()'>");
sb.AppendFormat("<form name='form' action='{0}' method='post'>", "https://test.com.au/Login/Account/Login.aspx");
sb.AppendFormat("<input type='hidden' name='AP' value='{0}'>", "99");
// Other params go here
sb.Append("</form>");
sb.Append("</body>");
sb.Append("</html>");
Response.Write(sb.ToString());
Response.End();
after navigating to the destination URL i tried to use the browser back button and it's not working. Simply i can not navigate to back?
is this a issue with asp.net or am i missing something?
Actually i'm working on a payment getaway and it requires the parameters to be pass in POST method