Hi,

In my application on Submit button, I want to do the following in same sequence;

1. Check Duplicate in DB
2. If Exists send message to user
3. If user says Yes then insert into db
4. If user says no don't do anything

On submit button I can check duplicates in DB in code behind file, if exists how can I send a message to user and take his input, I tried

Response.Write("<Script Language=Javascript> confirm("duplicate!!") </Script>");

but it doesn't work.

Can anyone tell me how can I acheive the above.

thanks,