473,395 Members | 1,539 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,395 software developers and data experts.

Validation Message display/non-display

112 100+
hi..


I have a text box with a custom validator, compare field validator. I have a problem with the error message display.

my compare field validator works normally....ie; when I enter a wrong value it gives me the error message and when I correct it the error message disappears.but this does not happen with my custom validator......I do not undersatnd the reason..I tried to run an example downloaded from some site and that example works as required..I tried to implement a similar logic but still the error message does not disappear.......I am struggling to find the reason for this behaviour...can somebody please guide me...thank you
Apr 27 '10 #1
3 2461
user1980
112 100+
i figured the reason why my validator was behaving that way..

my validator was validating one text box..ie; controltovalidate is textbox1 and when I enter text in textbox2, the error message still appears because it is not the controltovalidate and it is not validating the text in textbox2 but at the end..my serverside validation checks for the condtion and the args.Isvalid becomes true and thus the page becomes valid...

now I have to come up with a logic where the controltovalidate still remains textbox1 but the textbox 2 is also validated on clientside....


can someone tell me how to call one clientside function fron another client side function..is it possible??
Apr 28 '10 #2
Frinavale
9,735 Expert Mod 8TB
Calling a JavaScript function from within another JavaScript function is pretty easy....it's done the same way as you would do it in C#

You just call the method :)

-Frinny
Apr 28 '10 #3
user1980
112 100+
yeah.. but did not know how to call the javascript with source and arguments...
but anyways I found another logic which is working for me..
I am trying to call a required field valdiator from my custom validator clientside validation function. I am still testing it..once I get the required results I will post the code..thank you
Apr 28 '10 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: EviL KerneL | last post by:
Hi - I am trying to figure out a way to enforce the validation included for this form based on whether the user chooses "email" or "phone" as the contact choice. Right now it is set to enforce...
8
by: John Dalberg | last post by:
I have an aspx page that was developed initially in Dreamweaver as a regular html file. I have added a few textboxes and required validators. The problem is that the client side validation is not...
3
by: Shapper | last post by:
Hello, Could someone point me a good validation control for ASP.Net? Thank You, Miguel
2
by: msnews.microsoft.com | last post by:
Hi All, I m facing a problem. As u know asp.net vallidators did not work in non-microsoft browsers. So for that i m using Server Side Solution. But i don't understand how can i show the...
8
by: Joe | last post by:
Hi, I have a form with three text fields and a Submit button. The two text fields have ReqiredFieldValidator and third text field has RegularExpressionValidator. The page validation works fine...
1
by: billa1972 | last post by:
Hi, I am trying to hook into Yellow Freight's rating webservice. Below is the wsdl. When i try and create a proxy file with wsdl.exe i get the following errors, see below. Also, when i...
9
by: julie.siebel | last post by:
Hello all! As embarrassing as it is to admit this, I've been designing db driven websites using javascript and vbscript for about 6-7 years now, and I am *horrible* at form validation. To be...
27
by: Chris | last post by:
Hi, I have a form for uploading documents and inserting the data into a mysql db. I would like to validate the form. I have tried a couple of Javascript form validation functions, but it...
1
by: Sankalp | last post by:
Hi I am writing a large program where I am using three text boxes. I am performing validation controls on these text boxes however there are some conditions Names of textboxes 1. x 2. y 3. z...
3
by: javaBookWorm | last post by:
import java.applet.Applet; import java.awt.*; // Contains all of the classes for creating user interfaces and for painting graphics and images. import java.awt.event.*;//The root event class for...
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:
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.