asp.net怎么接收post方式传过来的json格式?
输入String propertyId = request.getParameterValues(propertyId);或String propertyId = request.getParameterValues(propertyId );
这两种方法都可以,只是适用的的方式不同。
post方法:
/// <summary> ///
使用post方法,调用短信接口
/// </summary>
/// <param name="PhoneNumber"></param>
/// <param name="SmsContent"></param>
/// <param name="PhoneNumberType"></param>
/// <param name="SmsUser"></param>
private void CallMsgCenterToSendMsgPost(string PhoneNumber,
string SmsContent, string PhoneNumberType, string SmsUser)
{
string formUrl =
ConfigurationSettings.AppSettings["formUrl"].ToString().Trim();//url
地址
string formData = "PhoneNumber=" + PhoneNumber +
"&SmsContent=" +SmsContent + "&PhoneNumberType=" + PhoneNumberType +
"&SmsUser=" + SmsUser + "";
CookieContainer cookieContainer = new CookieContainer()