473,385 Members | 1,542 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

validation not fireing on button press!

I have a button on the form which has causes validation set to true... when
I click on it not one of my validating events fires on the form... every
single control with it just skips over it and the button executes its
procedure without validation... now when i go to a control then tab off it
the validating event does fire... what in the world is going on here? im
lost... it never acted like this before.... this is VS2008 with .NET 3.5
Jun 27 '08 #1
5 956
Smokey,

I never saw it acting in another way.

Cor

"Smokey Grindel" <no****@nospam.comschreef in bericht
news:eo**************@TK2MSFTNGP03.phx.gbl...
>I have a button on the form which has causes validation set to true... when
I click on it not one of my validating events fires on the form... every
single control with it just skips over it and the button executes its
procedure without validation... now when i go to a control then tab off it
the validating event does fire... what in the world is going on here? im
lost... it never acted like this before.... this is VS2008 with .NET 3.5
Jun 27 '08 #2
what do you mean? you never saw it act like i described or thast the way you
think it should work? I always put controls on a form and told the button
click to cause validation and it always fired the validate methods... we've
been doing it that way for years now and never had a problem

"Cor Ligthert[MVP]" <no************@planet.nlwrote in message
news:16**********************************@microsof t.com...
Smokey,

I never saw it acting in another way.

Cor

"Smokey Grindel" <no****@nospam.comschreef in bericht
news:eo**************@TK2MSFTNGP03.phx.gbl...
>>I have a button on the form which has causes validation set to true...
when I click on it not one of my validating events fires on the form...
every single control with it just skips over it and the button executes
its procedure without validation... now when i go to a control then tab
off it the validating event does fire... what in the world is going on
here? im lost... it never acted like this before.... this is VS2008 with
.NET 3.5

Jun 27 '08 #3
oops i forgot to say that the buttons validate isnt whats running...
probably made no sense without that... was typing without thinking... if i
click the button its validating event doesnt fire and in that event i call
the validate method on the other controls

"Smokey Grindel" <no****@nospam.comwrote in message
news:uw**************@TK2MSFTNGP05.phx.gbl...
what do you mean? you never saw it act like i described or thast the way
you think it should work? I always put controls on a form and told the
button click to cause validation and it always fired the validate
methods... we've been doing it that way for years now and never had a
problem

"Cor Ligthert[MVP]" <no************@planet.nlwrote in message
news:16**********************************@microsof t.com...
>Smokey,

I never saw it acting in another way.

Cor

"Smokey Grindel" <no****@nospam.comschreef in bericht
news:eo**************@TK2MSFTNGP03.phx.gbl...
>>>I have a button on the form which has causes validation set to true...
when I click on it not one of my validating events fires on the form...
every single control with it just skips over it and the button executes
its procedure without validation... now when i go to a control then tab
off it the validating event does fire... what in the world is going on
here? im lost... it never acted like this before.... this is VS2008 with
.NET 3.5


Jun 27 '08 #4
and there lies my problem... i put it in the wrong event ment to put
validatechildren in the click not the validating event... whoops...

"Smokey Grindel" <no****@nospam.comwrote in message
news:uf**************@TK2MSFTNGP04.phx.gbl...
oops i forgot to say that the buttons validate isnt whats running...
probably made no sense without that... was typing without thinking... if i
click the button its validating event doesnt fire and in that event i call
the validate method on the other controls

"Smokey Grindel" <no****@nospam.comwrote in message
news:uw**************@TK2MSFTNGP05.phx.gbl...
>what do you mean? you never saw it act like i described or thast the way
you think it should work? I always put controls on a form and told the
button click to cause validation and it always fired the validate
methods... we've been doing it that way for years now and never had a
problem

"Cor Ligthert[MVP]" <no************@planet.nlwrote in message
news:16**********************************@microso ft.com...
>>Smokey,

I never saw it acting in another way.

Cor

"Smokey Grindel" <no****@nospam.comschreef in bericht
news:eo**************@TK2MSFTNGP03.phx.gbl...
I have a button on the form which has causes validation set to true...
when I click on it not one of my validating events fires on the form...
every single control with it just skips over it and the button executes
its procedure without validation... now when i go to a control then tab
off it the validating event does fire... what in the world is going on
here? im lost... it never acted like this before.... this is VS2008 with
.NET 3.5




Jun 27 '08 #5
Yea,

That changes a lot

:-)

Cor

"Smokey Grindel" <no****@nospam.comschreef in bericht
news:uf**************@TK2MSFTNGP04.phx.gbl...
oops i forgot to say that the buttons validate isnt whats running...
probably made no sense without that... was typing without thinking... if i
click the button its validating event doesnt fire and in that event i call
the validate method on the other controls

"Smokey Grindel" <no****@nospam.comwrote in message
news:uw**************@TK2MSFTNGP05.phx.gbl...
>what do you mean? you never saw it act like i described or thast the way
you think it should work? I always put controls on a form and told the
button click to cause validation and it always fired the validate
methods... we've been doing it that way for years now and never had a
problem

"Cor Ligthert[MVP]" <no************@planet.nlwrote in message
news:16**********************************@microso ft.com...
>>Smokey,

I never saw it acting in another way.

Cor

"Smokey Grindel" <no****@nospam.comschreef in bericht
news:eo**************@TK2MSFTNGP03.phx.gbl...
I have a button on the form which has causes validation set to true...
when I click on it not one of my validating events fires on the form...
every single control with it just skips over it and the button executes
its procedure without validation... now when i go to a control then tab
off it the validating event does fire... what in the world is going on
here? im lost... it never acted like this before.... this is VS2008 with
.NET 3.5



Jun 27 '08 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Bilal | last post by:
Hi, I have a field that requires validation when you press a button as follows: <form name="form_affiche" enctype = "multipart/form-data" method="get"> ..... <td width="80"><input type="Button"...
3
by: raj | last post by:
hi, i have one textbox and one save button, i have added attribute at page load event btnSave.Attributes.Add("onclick","return ValidateForm();"); in validationform() ,I have written like this...
5
by: Micky | last post by:
VB v7.1.3088 NET v1.1.4322 SP1 My mate has a strange problem regarding the ESC key and validation. When he hits the Cancel button on his form, the form does not validate. This is correct...
2
by: stevieb | last post by:
Apologies if this is not the proper forum section. I've embedded a third party Storefront (my account) with Iframes.....and it works fine except that when I go to checkout ...my browser requires I...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.