Hi,
I have a aspx page. In that page I am using a control which contains a grid and buttons for Save and cancel.
When user clicks on the edit button beneath the control the control becomes editable.
The problem I m facing is ,whenever I click on the Edit button ,the ascx page is called twice and I get an exception (during debugging)” An entry with the same key already exists.” I get this error wherever I use Client id in javascript inside”<%=…%>”.And because of this error none of the functions are called and ultimately the functions are not working.
I m attaching Screen shot …
Please provide me with solution..
I need that urgently.
The Part of code i m getting error-------------The exception is thrown wherever i m using ("<%= ABC.ClientID %>");
function
{
NewRow()var validator_Required = document.getElementById("<%= CustomValidator1.ClientID %>");// ).value = flag;return false;