protected void btnSubmit_Click(object sender, EventArgs e) { try { BECommon objBECommon = new BECommon(); BCommon objBCommon = new BCommon(); objBECommon.TransID = txtTransactionID.Text; objBECommon.GotoMeetingID = txtGotoMeeting.Text; objBCommon.BUpdateGotoMeeting(objBECommon); if (objBECommon.IntstatusFlag == 0) { lblSuccess.Text = "GoTOMeeting ID updated successfully."; } if (objBECommon.IntstatusFlag == 1) { lblSuccess.Text = "Transaction ID doesn't exists"; } } catch (Exception) { lblSuccess.Text = "Transaction ID doesn't exists"; } }
protected void btnSubmit_Click(object sender, EventArgs e) { try { BECommon objBECommon = new BECommon(); BCommon objBCommon = new BCommon(); objBECommon.TransID = txtTransactionID.Text; objBECommon.GotoMeetingID = txtGotoMeeting.Text; objBECommon.intTypeID = Convert.ToInt32(ddlSessionType.SelectedValue.ToString()); lblTransid.Text = txtTransactionID.Text; lblGotoMeetingID.Text = txtGotoMeeting.Text; lblSessionType.Text = ddlSessionType.SelectedItem.Text.ToString(); objBCommon.BUpdateGotoMeeting(objBECommon); if (objBECommon.IntstatusFlag == 0) { trMessage.Visible = true; lblInfo.Text = Resources.ResMessages.Proctor_Add_Success_AddMeeting; lblInfo.ForeColor = System.Drawing.Color.FromName(Resources.AppConfigurations.Color_Success); ImgInfo.ImageUrl = Resources.AppConfigurations.Image_Success; tdInfo.Attributes.Add("style", Resources.AppConfigurations.Color_Table_Success); btnSubmit.Visible = false; txtTransactionID.Visible = false; txtGotoMeeting.Visible = false; ddlSessionType.Visible = false; lblTransid.Visible = true; lblGotoMeetingID.Visible = true; lblSessionType.Visible = true; } if (objBECommon.IntstatusFlag == 1) { trMessage.Visible = true; lblInfo.Text = Resources.ResMessages.Proctor_Add_Error_AddMeeting; lblInfo.ForeColor = System.Drawing.Color.FromName(Resources.AppConfigurations.Color_Error); ImgInfo.ImageUrl = Resources.AppConfigurations.Image_Error; tdInfo.Attributes.Add("style", Resources.AppConfigurations.Color_Table_Error); } } catch (Exception) { trMessage.Visible = true; lblInfo.Text = Resources.ResMessages.Proctor_Add_Error_AddMeeting; lblInfo.ForeColor = System.Drawing.Color.FromName(Resources.AppConfigurations.Color_Error); ImgInfo.ImageUrl = Resources.AppConfigurations.Image_Error; tdInfo.Attributes.Add("style", Resources.AppConfigurations.Color_Table_Error); } }