C# windows窗体应用程序c使用post方法提交窗体&提交后获取值
我想使用post方法向提交一个包含4个参数的表单 我的代码:C# windows窗体应用程序c使用post方法提交窗体&提交后获取值,c#,json,C#,Json,我想使用post方法向提交一个包含4个参数的表单 我的代码: using (var client = new WebClient()) { var postData = new System.Collections.Specialized.NameValueCollection(); postData.Add("a", a); postData.Add("b",b); postData
using (var client = new WebClient())
{
var postData = new System.Collections.Specialized.NameValueCollection();
postData.Add("a", a);
postData.Add("b",b);
postData.Add("c",c);
postData.Add("d",d);
byte[] response = client.UploadValues("http://ghjjhelper.com/checking.php", "POST",postData);
var responsebody = Encoding.UTF8.GetString(response);
tb1.Text= responsebody;
}
提交后返回json:
{"response":[{"FName":"Jim","LName":"Jackson","ID":"123","mark":"60"}]};
提交后如何从该json中获取上述4个值
谢谢 你的意思是我如何在C中阅读JSON??我说的对吗,你的提交有效,你收到了回复中所示的数据?请选择其中任何一个:@DanielC,是的!使用post方法提交表单后读取json