Пример #1
0
 protected void gvAddresses_RowCommand(object sender, GridViewCommandEventArgs e)
 {
     if (e.CommandName == "EditMethod")
     {
         AddAddresses1.Popup(Convert.ToInt32(e.CommandArgument.ToString()));
     }
     if (e.CommandName == "Delete")
     {
         String strRetValue = (new SettingsDAL()).DeleteAddressBook_DAL(Convert.ToInt32(e.CommandArgument));
         if (strRetValue != "Deleted")
         {
             lblErr.Text = strRetValue;
         }
         else
         {
             lblErr.Text = "Record deleted successfully ";
             BindGrid();
         }
     }
 }
Пример #2
0
 protected void lbAddAddresses_Click(object sender, EventArgs e)
 {
     lblErr.Text = "";
     AddAddresses1.Popup(0);
 }