Form validating after button click vb

Rated 4.16/5 based on 947 customer reviews

I have click event handler for the button control too.

After validations, i want that event handler to fire. Its working for the Button control when it is created in Design time.

This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. By joining today you can post your own programming questions, respond to other developers questions, and eliminate the ads that are displayed to guests. Hello, I am creating few dynamic textboxes and a Button control.

form validating after button click vb-87

form validating after button click vb-69

Then you can smile a big smile, do a little dance and have a glass of water :) Hi, Do you have to click twice on the button or can you click anywhere on the page and then click the button.There are 2 code paths for validation failure, and in each case we provide the user with an appropriate error message.The error provider simply takes a control and a message in the Set Error method and does the rest of the work for you!In this case, we simply clear any error messages in the error provider.The Name textbox works very similarly but we don’t have quite as elaborate validation logic.

Leave a Reply