Solved

CauseValidation property of a ASP.NET Page

Posted on 2014-12-09
1
100 Views
Last Modified: 2014-12-10
My question is---- when you set a asp.net button's CauseValidation property is set to true,
 the Page.Validate() method is called automatically on the server side. You do not need to specifically code
Validate(); to call it. The CauseValidation property causes the Validate() method to be called implicitly.

I am correct?
0
Comment
Question by:metro156
1 Comment
 
LVL 29

Accepted Solution

by:
Paul Jackson earned 500 total points
ID: 40491520
That is correct, however the default setting for a button is CausesValidation = true so you don't need to specifically set it when setting it to true unless you are using validation groups.
The CausesValidation property is generally specified (and set to false) for a Cancel or Reset button.
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Foreword (July, 2015) Since I first wrote this article, years ago, a great many more people have begun using the internet.  They are coming online from every part of the globe, learning, reading, shopping and spending money at an ever-increasing ra…
New Relic: Our company recently started researching several products to figure out what were the best ways for us to increase our web page speed and to quickly identify performance problems that we may be having. One of the products we evaluated wa…
This video teaches viewers how to create their own website using cPanel and Wordpress. Tutorial walks users through how to set up their own domain name from tools like Domain Registrar, Hosting Account, and Wordpress. More specifically, the order in…
Use Wufoo, an online form creation tool, to make powerful forms. Learn how to selectively show certain fields based on user input using rules to gather relevant information and data from your forms. The rules feature provides you with an opportunity…

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question