后台代码:
private void AjaxRequest()
{
string ID = Request["ID"].ToString();
string VL = Request["VL"].ToString();
string[] IndexID = ID.Split(',');
string[] IndexValue = VL.Split(',');
bool test = true;
for (int i = 1; i < IndexID.Length; i++)
{
if (!new FCD_Lesson().Updata_LessonTaxis(Convert.ToInt32(IndexValue[i - 1].ToString()), Convert.ToInt32(IndexID[i - 1].ToString())))
{
test = false;
break;
}
}
if(test)
Response.Write("1");
else
Response.Write("0");
Response.Flush();
Response.End();
}
本文作者:flashlm 来源:http://www.cnblogs.com/flashlm/
CIO之家 www.ciozj.com 微信公众号:imciow