protected void btnDelete_Click(object sender, System.EventArgs e)
 {
     try
     {
         Bip.Components.DocSourceEnt entity = new Bip.Components.DocSourceEnt();
         entity.Load((int)ViewState["id"]);
         entity.Delete();
         entity.Dispose();
         Response.Redirect((String)ViewState["UrlReferrer"]);
     }
     catch (Exception ex)
     {
         ProcessException(ex);
     }
 }
Ejemplo n.º 2
0
		protected void btnDelete_Click(object sender, System.EventArgs e)
		{
			try
			{
				Bip.Components.DocSourceEnt entity = new Bip.Components.DocSourceEnt();	
				entity.Load( (int)ViewState["id"] );
				entity.Delete();
				entity.Dispose();
				Response.Redirect((String) ViewState["UrlReferrer"]);
			}
			catch(Exception ex)
			{
				ProcessException(ex);
			}
		}