Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 4.5 > BOOK: Professional ASP.NET 4.5 : in C# and VB
BOOK: Professional ASP.NET 4.5 : in C# and VB
This is the forum to discuss the Wrox book Professional ASP.NET 4.5 in C# and VB by Jason N. Gaylord, Christian Wenz, Pranav Rastogi, Todd Miranda, Scott Hanselman; ISBN: 978-1-1183-1182-0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional ASP.NET 4.5 : in C# and VB section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old August 13th, 2013, 07:12 PM
Authorized User
Join Date: Jun 2013
Posts: 36
Thanks: 1
Thanked 4 Times in 4 Posts
Default When is it time to check Page.IsValid property?

I thought that I knew the answer to this question: after Page.Validate() method has run, which normally would be after controls' postback event handlers (MSDN)

Similar examples are in the book:
page 210, page 215, page 220
protected void Button1_Click(object sender, EventArgs e)
   if (Page.IsValid)
   {  Label1.Text = "Valid entry!"; }
However, at MCTS test I saw question that offered the following options:
PreInit, Init, PreLoad, Load
All 4 options seem to be wrong.
It is possible to use "Load", if I run Page.Validate()-method myself in Page_Load handler, but otherwise even that is too early.

Am I missing something? I have re-read the chapter 6 on validation and several MSDN pages, but I could find HOW any of these options can be a correct answer.

Similar Threads
Thread Thread Starter Forum Replies Last Post
Check if dropdown readonly property is "true" ismailc XSLT 2 January 21st, 2008 04:18 AM
How to set the multiline property at run time? harini19 VB How-To 3 January 9th, 2004 03:52 PM
page.isvalid... pls help life_s Ng ASP.NET 1.0 and 1.1 Basics 3 November 10th, 2003 11:45 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.