一下是代码,vs2008开发,引用System.Windows.Forms
服务器上、客户机器程序运行都正常,但是button事件中以下判断进入else就卡死了,不跳提示框2个开发人员机器都正常,可以跳出提示框
if (Ctr_patientAge.Value != string.Empty)
{
int age = int.Parse(Ctr_patientAge.Value);
if (age > 16)
{
Response.Redirect("../Forms/form_all_flowmodel.aspx?appid=500&ep=" + Ctr_clientId.Value);
}
else
{
MessageBox.Show("注意:小于16岁的患者不可以开单!!","提醒", MessageBoxButtons.OK, MessageBoxIcon.Information, MessageBoxDefaultButton.Button1, MessageBoxOptions.DefaultDesktopOnly);
}
}
else
{
DialogResult dResult = MessageBox.Show("请咨询患者年龄,注意16岁之下不可以开单,继续开单请按“确定”,否则按“取消”","提醒",MessageBoxButtons.OKCancel,MessageBoxIcon.Information,MessageBoxDefaultButton.Button1,MessageBoxOptions.DefaultDesktopOnly );
if (dResult == DialogResult.OK)
{
Response.Redirect("../Forms/form_all_flowmodel.aspx?appid=500&ep=" + Ctr_clientId.Value);
}
}
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货