Hi,
In model pop-up I have two 4 colomns in the grid and along with that i have edit linkbutton and delete linkbutton in the grid and also related text boxes. when i click edit i need to fill the textboxs under the grid. i am enabling the edit link button and delete link button. but when i click edit linkbutton second time the pop-up background is becoming black. please help me.
private void DisableGridViewChildControls(bool enable)
{
if (FinancialContactGridView.Rows.Count > 0)
{
foreach (GridViewRow gvrw in FinancialContactGridView.Rows)
{
LinkButton lnkEdit = (LinkButton)gvrw.FindControl("edit");
if (lnkEdit != null)
lnkEdit.Enabled = enable;
LinkButton lnkDelete = (LinkButton)gvrw.FindControl("CancelLinkButton");
if (lnkDelete != null)
{
if (enable)
lnkDelete.Attributes.Add("OnClientClick", "return confirm('Are you sure you want to terminate the contact?');");
else
{
lnkDelete.Attributes.Remove("OnClientClick");
lnkDelete.OnClientClick = null;
}
lnkDelete.Enabled = enable;
}