Javascript Confirmation with ASP.NET Validations

It was difficult for me to find out how to use submit confirmation while using ASP.NET validations in Web Form. This following one is the Java Script Function to be used.

   function ConfirmSubmit() {

        if (Page_IsValid) {

            return confirm('Do you want add this User?');

        return Page_IsValid;

Use it this way with your Submit Button.

onclientclick="return ConfirmSubmit();"

A Rahim Khan

    • bolya
    • June 2nd, 2012

    hey i want to ask you about inserting and deleting in database in C# in my project if you reply i want to send my project to you and show me how insert or delete please reply its very important for me for university project .thanx

    • You can download this Project. this is a simple windows application done in visual studio 2008, attach the database, have a look at this projects, this will help hopefully.

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: