Geeks With Blogs
Gaurav Taneja Great dreams... never even get out of the box. It takes an uncommon amount of guts to put your dreams on the line, to hold them up and say, "How good or how bad am I?" That's where courage comes in.

Javascript

<script language="javascript" type="text/javascript">
 function ConfirmDelete()
    {
        if(confirm("Do you really want to Delete the Abused Record?")==true)
        {  
            return true;
        }    
        document.getElementById('<%=lblMsg.ClientID%>').innerHTML="";
        return false;       
    }
   
    function ClearMessageLabel()
{
      var msg=document.getElementById('<%=lblMsg.ClientID%>');
     
      if(msg!=null)
      {
        msg.innerHTML="";
      }
}

   </script>

Cs code

btnDelete.Attributes.Add("onClick", "javascript:return ConfirmDelete('" + CommonFunction.GetErrorMessage("ERR1046") + "');");

Posted on Wednesday, April 16, 2008 11:15 PM Javascript | Back to top


Comments on this post: Delete confirmation

No comments posted yet.
Your comment:
 (will show your gravatar)


Copyright © Gaurav Taneja | Powered by: GeeksWithBlogs.net