Wrox Programmer Forums
|
ASP.NET 2.0 Professional If you are an experienced ASP.NET programmer, this is the forum for your 2.0 questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Professional 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 July 13th, 2007, 01:19 PM
Authorized User
 
Join Date: Jul 2006
Posts: 21
Thanks: 0
Thanked 1 Time in 1 Post
Default Click event being cancelled!?

Hello,

I am working on a site with an input form that has required field
validators. If the user doesn't enter something in one of the
textboxes, the error message appears. When they enter something and:

1) goto another field on the form (the error message clears) then
click OK, the click event fires as expected
2) click OK without focusing on another field, only the error message
is cleared but the click event is never fired, hence forcing the user
to click OK one more time to submit

Any idea why this weird behaviour is happening? I tried it on a
simple page with just a couple of textboxes and it worked fine, so I
am not sure why this is acting differently?

Any comments would be much appreciated.

 
Old July 16th, 2007, 05:48 AM
Friend of Wrox
 
Join Date: May 2006
Posts: 106
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Set property CausesValidation to false

Bijgupt
 
Old July 16th, 2007, 03:49 PM
Authorized User
 
Join Date: Jul 2006
Posts: 21
Thanks: 0
Thanked 1 Time in 1 Post
Default

the property for the button? then when would validation occur?

 
Old July 16th, 2007, 05:18 PM
Authorized User
 
Join Date: Jul 2006
Posts: 21
Thanks: 0
Thanked 1 Time in 1 Post
Default

that didn't fix the problem anyway, the click event just does not seem to be firing






Similar Threads
Thread Thread Starter Forum Replies Last Post
CommandBarButton Click Event iprovalo Excel VBA 2 April 16th, 2008 02:52 AM
Double-click event Grafixx01 Access 6 May 7th, 2007 08:09 AM
DataGrid click event Clive Astley Beginning VB 6 0 July 4th, 2005 12:44 AM
Click Event dkr72 C# 3 December 8th, 2004 06:23 PM





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