- protected void btnSaveClose_Click(object sender, EventArgs e)
- {
- string no = tbxBranchNo.Text;
- string name = tbxBranchName.Text;
- string trueValue = "Ext.getCmp(" + isCheck.ClientID + ").setValue(1);";
- string falseValue = "Ext.getCmp(" + isCheck.ClientID + ").setValue(0);";
- //ExtAspNet.PageContext.RegisterStartupScript("if(confirm('分行已存在,是否继续添加?')){document.getElementById('isCheck').value=1;}else{document.getElementById('isCheck').value=0;}");
- //我想等这段js执行完再往下,但是设断点后看到是异步执行的。要怎么设置 ExtAspNet.PageContext.RegisterStartupScript("check()");
-
- if (isCheck.Value == "1")
- {
- SaveData(Convert.ToInt32(ApprovalState.save));
- ExtAspNet.Alert.Show("添加成功!", String.Empty, ExtAspNet.ActiveWindow.GetHidePostBackReference());
- }
-
- #region old
- //bool result = SaveData(Convert.ToInt32(ApprovalState.save));
- //if (result)
- // ExtAspNet.Alert.Show("添加成功!", String.Empty, ExtAspNet.ActiveWindow.GetHidePostBackReference());
- //else
- // ExtAspNet.Alert.Show("添加失败!", String.Empty, ExtAspNet.ActiveWindow.GetHidePostBackReference());
- #endregion
- }
复制代码
|