本文整理汇总了C#中BAL.clsMasters.fnDeleteRecord方法的典型用法代码示例。如果您正苦于以下问题:C# clsMasters.fnDeleteRecord方法的具体用法?C# clsMasters.fnDeleteRecord怎么用?C# clsMasters.fnDeleteRecord使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类BAL.clsMasters
的用法示例。
在下文中一共展示了clsMasters.fnDeleteRecord方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: btnDelete_Click
protected void btnDelete_Click(object sender, EventArgs e)
{
try
{
_objMasters = new clsMasters();
_objMasters.ScreenInd = Masters.AgentCommission;
_objMasters.RefID = Convert.ToInt32(lblID.Text.Trim());
if (_objMasters.fnDeleteRecord() == true)
{
lblmessage.ForeColor = Color.Green;
lblmessage.ForeColor = Color.Green;
lblmessage.Text = "Record deleted successfully.";
txtRechargeAmount.Text = string.Empty;
fnLoadPage1();
ddlProvider.SelectedIndex = 0;
txtRechargeAmount.Text = string.Empty;
ddloperators.SelectedIndex = 0;
}
else
{
lblmessage.ForeColor = Color.Red;
lblmessage.ForeColor = Color.Red;
lblmessage.Text = "Record deletion failed.";
}
}
catch (Exception ex)
{
//LogError("Masters_frmOperatorNameaspx", "btnDelete_Click", DateTime.Now, ex.Message.ToString());
Response.Redirect("../Error.aspx", false);
//Logger.Log(Logger.LogType.Log_In_DB, ex,true);
//Logger.Log(ex, Session["APRUserName"].ToString());
}
finally
{
_objMasters = null;
}
}