Solved

CauseValidation property of a ASP.NET Page

Posted on 2014-12-09
1
101 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
,IIS, Asp.net login and LocalSQLServer 3 88
how to extract window origin in spring 2 78
Windows Tool to Build Android and iOS App 3 116
Partnership Agreement 2 16
Introduction (All good things must come to an end (http://en.wikipedia.org/wiki/All_Good_Things...))The original MySQL API (http://php.net/manual/en/book.mysql.php) has gone away, deprecated by PHP in Version 5.5, and removed from PHP in all current…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Use Wufoo, an online form creation tool, to make powerful forms. Learn how to choose which pages of your form are visible to your users based on their inputs. The page rules feature provides you with an opportunity to create if:then statements for y…
Learn how to set-up custom confirmation messages to users who complete your Wufoo form. Include inputs from fields in your form, webpage redirects, and more with Wufoo’s confirmation options.

733 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