I have a form that allows submitting into a database. If the user somehow unknowingly submits information that may cause a duplicate row, i would like to dynamically create a modal confirmation dialog box asking whether they would like to overwrite the existing record. I&#039;ve searched for a good while now using google and I&#039;ve seen examples showing:<BR><BR>cntrl.attributes.add("onClick", "return confirm(&#039;Are you sure&#039;);")<BR><BR>and other examples but I just can&#039;t tie it together with what I want to do. Would someone be able to show me a barebones example in c# without all the fancy stuff? Thanks in advance.<BR><BR>Arrowhead