function ckdram()
{
var trueid=$("[name=RadioButtonList1][checked]").val();
alert(trueid);
var id=document.getElementById("TextBox1").value;
if(trueid=="")
{
alert("请选择您的答案!");
}
else
{
$.get("Askjquery.aspx", {id:id,trueid:trueid,t:Math.random()},
function(data)
{
if(data==1)
{
alert("提交成功!");
window.open("AskOnline.aspx?id="+id+"&trueid=0&istrue=1");
return false;
}
else
{
alert("提交失败!");
return false;
}
});
}
}
protected void Page_Load(object sender, EventArgs e)
{
int data;
string trueid = Request.QueryString["trueid"].ToString();
string id = Request.QueryString["id"].ToString();
try
{
Model.FrontDesk.actmodel model = new Model.FrontDesk.actmodel();
BLL.FrontDesk.actbll actbll = new BLL.FrontDesk.actbll();
model.Id = Int32.Parse(trueid);
if (actbll.updatesubjectanswerbyid(model) > 0)
{
data = 1;
}
else
{
data = 3;
}
}
catch (Exception ex)
{
ex.ToString();
data = 3;
}
Response.Write(data);
Response.End();
}