Solved

CauseValidation property of a ASP.NET Page

Posted on 2014-12-09
1
90 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Introduction HyperText Transfer Protocol (http://www.ietf.org/rfc/rfc2616.txt) or "HTTP" is the underpinning of internet communication.  As a teacher of web development I have heard many questions, mostly from my younger students who have come to t…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
This video teaches users how to migrate an existing Wordpress website to a new domain.
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…

746 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now