int result = DbHelperSQL.ExecuteSql(sql); if (result == 1){ Response.ContentType = "text/plain";Response.Write("{success:true}");}{ elseResponse.ContentType = "text/plain";Response.Write("{success:false}"); }

来源:学生作业帮助网 编辑:作业帮 时间:2024/06/04 02:40:07
int result = DbHelperSQL.ExecuteSql(sql); if (result == 1){ Response.ContentType =
x)+Q(J-.)QUpIH)H- sHM.-I .(.ѴVLSЀU0ԬVJ-.+Ns+I+ ,HTZQ_d W^YT]\Z\lURTZi][SJYi@@)$)r4X)A?UBU#[fF'Sf>զtה>i{g+<}9wXٳK__|g<]$|P)OgCv ˞vDk_\g OT2;

int result = DbHelperSQL.ExecuteSql(sql); if (result == 1){ Response.ContentType = "text/plain";Response.Write("{success:true}");}{ elseResponse.ContentType = "text/plain";Response.Write("{success:false}"); }
int result = DbHelperSQL.ExecuteSql(sql);
if (result == 1)
{ Response.ContentType = "text/plain";
Response.Write("{success:true}");
}
{ else
Response.ContentType = "text/plain";
Response.Write("{success:false}"); }

int result = DbHelperSQL.ExecuteSql(sql); if (result == 1){ Response.ContentType = "text/plain";Response.Write("{success:true}");}{ elseResponse.ContentType = "text/plain";Response.Write("{success:false}"); }
else错了,应该放到 { 前面
查询结果如果等于1,返回success:true.否则返回success:false