473,326 Members | 2,168 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,326 software developers and data experts.

IsValid always returns true on server-side under FireFox 0.9

The code is in a server control:

If Me.Page.IsValid Then
ExecuteSomething
End If

ExecuteSomething is always called and the validators always return True for
IsValid, even though their properties would indicate that they are invalid
(RequiredField validator, InitialValue = "", CurrentValue = "", IsValid =
True). Any idea why this is happening? It's driving me crazy...

Thanks,
Jeremy
Nov 18 '05 #1
2 1363
Jeremy,

As per the documentation for the IsValid property, call the Page.Validate
method before using the property.

HTH,
Nicole
"Jeremy" <th***********@hotmail.com> wrote in message
news:Sc****************@twister.tampabay.rr.com...
The code is in a server control:

If Me.Page.IsValid Then
ExecuteSomething
End If

ExecuteSomething is always called and the validators always return True
for
IsValid, even though their properties would indicate that they are invalid
(RequiredField validator, InitialValue = "", CurrentValue = "", IsValid =
True). Any idea why this is happening? It's driving me crazy...

Thanks,
Jeremy

Nov 18 '05 #2
> As per the documentation for the IsValid property, call the Page.Validate
method before using the property.


*doh*

Thanks!

Nov 18 '05 #3

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

Similar topics

31
by: John Roth | last post by:
I'm adding a thread for comments on Gerrit Holl's pre-pep, which can be found here: http://tinyurl.com/2578q Frankly, I like the idea. It's about time that all of the file and directory stuff...
2
by: Paul Tomlinson | last post by:
The keyword new is required on 'B.IsValid' because it hides inherited member 'A.IsValid' All I have a couple of classes which resemble (sort of!) this: public class A { public bool bIsValid =...
0
by: Mike P | last post by:
I have a form with a Serial No and Pin text box which are validated with required field validators. Once they are validated my code goes to a btn_Click event and if Page.IsValid then checks to see...
1
by: Jon Davis | last post by:
This is always returning True, even when fields are empty. Why? private bool ValidatePageOne() { bool ret = true; foreach (Control ctrl in PageOnePanel.Controls) { if...
3
by: Jon Davis | last post by:
This is always returning True, even when fields are empty. Why? private bool ValidatePageOne() { bool ret = true; foreach (Control ctrl in PageOnePanel.Controls) { if...
3
by: Simon Harvey | last post by:
Hi All Is there anyway to check the IsValid property in a user control? I've made a user control that holds a number of validators. There are also event handlers in the control that handle...
6
by: louise raisbeck | last post by:
Hi, I have a text box with corresponding comparevalidator as so.. <tr><td align="right">End Date :</td> <td><asp:TextBox id="dtEndDate" runat="server" onTextChanged="set_Duration"...
0
by: Arti | last post by:
Hi, I am using ASP.NET 2.0 ; Windows XP SP3 machine. In my web page i have made use of twocustom validator controls. Say, cv1 and cv2 Programatically - cv1_ServerValidate(object source,...
12
by: pyramid | last post by:
I am new to C++, and one of the homework we have pertains to Functions. The problem is: Write a function called isValid that determines whether any 3 values can represent the sides of a...
1
by: Andrew Jocelyn | last post by:
Hi I have couple of dropdown controls each with a requiredfieldvalidator. I clear the dropdownlist in the button click event. When the page is rendered the dropdown validator already flags it's...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
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...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.