本文整理汇总了C#中GridViewDeletedEventArgs类的典型用法代码示例。如果您正苦于以下问题:C# GridViewDeletedEventArgs类的具体用法?C# GridViewDeletedEventArgs怎么用?C# GridViewDeletedEventArgs使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
GridViewDeletedEventArgs类属于命名空间,在下文中一共展示了GridViewDeletedEventArgs类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: grid_RowDeleted
protected void grid_RowDeleted(object sender, GridViewDeletedEventArgs e)
{
using (MooDB db = new MooDB())
{
Logger.Warning(db, string.Format("删除帖子#{0}的项#{1}", ViewState["postID"], e.Keys[0]));
}
}
示例2: GridViewCiudades_RowDeleted
protected void GridViewCiudades_RowDeleted(object sender, GridViewDeletedEventArgs e)
{
if (e.Exception == null)
{
lblError.Visible = true;
lblError.Text = "Ciudad Eliminada";
lblError.ForeColor = Color.Green;
}
else if (e.Exception.InnerException.GetType() == typeof(Controller.InsufficientPrivilegeException))
{
lblError.Visible = true;
lblError.Text = "No Tiene Los Permisos Suficientes Para Eliminar La Ciudad";
lblError.ForeColor = Color.Red;
e.ExceptionHandled = true;
}
else if (e.Exception.InnerException.GetType() == typeof(Controller.ClienteConExpedientes))
{
lblError.Visible = true;
lblError.Text = "No Se Puede Eliminar La Ciudad Seleccionada Ya Que Existen Clientes / Abogados Asociados A La Misma";
lblError.ForeColor = Color.Red;
e.ExceptionHandled = true;
}
else
{
lblError.Visible = true;
lblError.Text = "Se Ha Producido Un Error Inesperado";
lblError.ForeColor = Color.Red;
e.ExceptionHandled = true;
}
}
示例3: GridViewConsultas_RowDeleted
protected void GridViewConsultas_RowDeleted(object sender, GridViewDeletedEventArgs e)
{
if (e.Exception == null)
{
lblError.Text = "Consulta Eliminada";
lblError.ForeColor = Color.Green;
}
else if (e.Exception.InnerException.GetType() == typeof(Controller.InsufficientPrivilegeException))
{
lblError.Text = "No Tiene Los Permisos Suficientes Para Eliminar La Consulta";
lblError.ForeColor = Color.Red;
e.ExceptionHandled = true;
}
else if (e.Exception.InnerException.GetType() == typeof(Controller.ClienteConExpedientes))
{
lblError.Text = "No Se Puede Eliminar La Consulta Seleccionado Ya Que Posee Expedientes Iniciados";
lblError.ForeColor = Color.Red;
e.ExceptionHandled = true;
}
else
{
lblError.Text = "Se Ha Producido Un Error Inesperado";
lblError.ForeColor = Color.Red;
e.ExceptionHandled = true;
}
}
示例4: gridHistoricData_RowDeleted
protected void gridHistoricData_RowDeleted(object sender, GridViewDeletedEventArgs e)
{
if (e.Exception != null) {
showException(e.Exception, labelException, "deleting the asset class prices");
e.ExceptionHandled = true;
}
}
示例5: GridView1_RowDeleted
protected void GridView1_RowDeleted(object sender, GridViewDeletedEventArgs e)
{
// If we just deleted the last row in the GridView, decrement the PageIndex
if (GridView1.Rows.Count == 1)
// we just deleted the last row
GridView1.PageIndex = Math.Max(0, GridView1.PageIndex - 1);
}
示例6: GridView1_RowDeleted
protected void GridView1_RowDeleted(object sender, GridViewDeletedEventArgs e)
{
if (e.Exception != null)
{
ErrorLabel.Text = "First delete all the sections and faculty of department";
}
}
示例7: gridBenchmarkData_RowDeleted
protected void gridBenchmarkData_RowDeleted(object sender, GridViewDeletedEventArgs e)
{
if (e.Exception != null) {
showException(e.Exception, labelException, "deleting the benchmark prices");
e.ExceptionHandled = true;
}
}
示例8: grid_RowDeleted
protected void grid_RowDeleted(object sender, GridViewDeletedEventArgs e)
{
using (MooDB db = new MooDB())
{
Logger.Warning(db, "删除邮件#" + e.Keys[0]);
}
}
示例9: gridStrategy_RowDeleted
protected void gridStrategy_RowDeleted(object sender, GridViewDeletedEventArgs e)
{
if (e.Exception != null) {
showException(e.Exception, labelException, "deleting the strategy");
e.ExceptionHandled = true;
}
}
示例10: Categories_RowDeleted
protected void Categories_RowDeleted(object sender, GridViewDeletedEventArgs e)
{
// Delete the brochure file if there were no problems deleting the record
if (e.Exception == null)
{
DeleteRememberedBrochurePath();
}
}
示例11: gridContent_RowDeleted
protected void gridContent_RowDeleted(object sender, GridViewDeletedEventArgs e)
{
if (e.Exception != null)
{
showException(e.Exception, labelException, "deleting the Text Content");
e.ExceptionHandled = true;
}
}
示例12: gv_Ad_Member_RowDeleted
// 資料刪除處理
protected void gv_Ad_Member_RowDeleted(object sender, GridViewDeletedEventArgs e)
{
int mpage = gv_Ad_Member.PageCount - 1;
gv_Ad_Member.DataBind();
if (gv_Ad_Member.PageIndex + 1 > gv_Ad_Member.PageCount)
gv_Ad_Member.PageIndex = mpage - 1;
}
示例13: GridView1_RowDeleted
protected void GridView1_RowDeleted(object sender, GridViewDeletedEventArgs e)
{
if (e.Exception != null)
{
this.Label1.Text = e.Exception.Message;
e.ExceptionHandled = true;
}
}
示例14: GridView1_RowDeleted
protected void GridView1_RowDeleted(object sender, GridViewDeletedEventArgs e)
{
if (e.Exception != null)
{
LabelError.Visible = true;
e.ExceptionHandled = true;
}
}
示例15: gvProducts_RowDeleted
protected void gvProducts_RowDeleted(object sender, GridViewDeletedEventArgs e)
{
if (e.Exception != null)
{
lblError.Text = "A database error has occurred.<br /><br />" +
e.Exception.ToString();
}
}