ajax - How to make the following code from Get to Post in C#? -
private static stringbuilder buildpaymentmethodsxml(ilist<methods> listofpayments) { stringbuilder xmltoinsert = new stringbuilder(); xmltoinsert.append("<paymentmethods>"); foreach (methods paymentmethod in listofpayments) { xmltoinsert.append("<t>"); xmltoinsert.appendformat("<bonuses>{0}</bonuses>", paymentmethod.bonuses.tostring()); xmltoinsert.appendformat("<payment>{0}</payment>", paymentmethod.payment.tostring()); xmltoinsert.append("</paymentmethods>"); } xmltoinsert.append("</paymentmethods>"); return xmltoinsert; }
i want pass huge string url , cannot pass.currently have error 400 size of request headers long. please, advise :)
Comments
Post a Comment