protected void lnkStatus_Click(object sender, EventArgs e) { try { dvMsg.Visible = false; LinkButton lnk = (LinkButton)sender; GridViewRow grd = (GridViewRow)lnk.NamingContainer; LinkButton lnkStatus = grd.FindControl("lnkStatuss") as LinkButton; TMSTelephoneBillDetails.UpdateBillStatus_MonthandYearWise(Convert.ToInt64(Session["UserId"]), Convert.ToString(lnk.CommandArgument), ddlYear1.SelectedValue); BindTelephoneBill(); } catch (Exception ex) { } }