asp.net from提交,name名重复的取值方法

发布日期:2014-04-24 13:55:09
            if (Request["xh"] != null)
            {
                string[] arrXh = Request.Form.GetValues("xh");
                string msg = string.Empty;
                for (int i = 0; i < arrXh.Length; i++)
                {
                    msg += arrXh[i].Trim();
                }
                return Json(new { result = -1, msg = msg});
            }