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

Client script argument properties in CustomValidator ???

I have a CustomValidator control, to which I've assigned a Javascript
function name in the ClientValidationFunction property of the control.

Example client function (Jscript):

<script>
function myFunction(source, arguments) {
if (arguments.Value != myValue) arguments.IsValid = false;
}
</script>

My question is, what are all the properties of "source" and "arguments" in
arguments being passed to this function? Documentation is nil on this. I
would like to obtain the name of the field being passed to this function
(the field being validated).

Thanks,
Jon
Nov 18 '05 #1
1 2417
Hi Jon,

It looks like these are the same objects that are passed to the server-side
validation:

source As Object, args As ServerValidateEventArgs

http://devcenter.infragistics.com/Ar...ArticleID=2183

<script>
function clientvalidate(source, args){
var dropdown =
document.getElementById(source.controltovalidate);
if (dropdown.selectedindex == 0){
args.IsValid = false;
} else {
args.IsValid = true;
}
}
</script>
http://www.codenotes.com/articles/ar...?articleID=795

"Jon Davis" <jo*@REMOVE.ME.PLEASE.jondavis.net> wrote in message
news:OD**************@tk2msftngp13.phx.gbl...
I have a CustomValidator control, to which I've assigned a Javascript
function name in the ClientValidationFunction property of the control.

Example client function (Jscript):

<script>
function myFunction(source, arguments) {
if (arguments.Value != myValue) arguments.IsValid = false;
}
</script>

My question is, what are all the properties of "source" and "arguments" in
arguments being passed to this function? Documentation is nil on this. I
would like to obtain the name of the field being passed to this function
(the field being validated).

Thanks,
Jon


Nov 18 '05 #2

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

Similar topics

1
by: Cathryn Lindner | last post by:
I have a web form that has a checkbox on it and a textbox associated with it. I want the textbox to be displayed when the checkbox is checked and I want this to happen on the client-side instead of...
3
by: Earl Teigrob | last post by:
I wanted my "Terms and Conditions" Checkbox control to participate in my ASP.NET validation just like all the the other controls on the page. After some time of searching the web for an example of...
5
by: Gary Vidal | last post by:
I have a client side Javascript which checks an OrderQuantityField against a hidden Textbox of the Minimum Order Quantity. I dont want to do validation on a postback. I would like to be able to...
0
by: John Bonds | last post by:
I'm having some problems with implementing client-side validation in a user control. Here' my code for the usercontrol: <%@ Control Language="vb" AutoEventWireup="false"...
2
by: Andre | last post by:
I've set up a CustomValidator control which has both a client side and server side function associated with it. My server side function never seems to be called as long as I have the...
1
by: avp | last post by:
Hi, We have an ASP.NET 2.0 (C#) application that has a web form with a CheckBoxList control and a CustomValidator control. The CustomValidator control is used to validate that at least one...
1
by: Damon | last post by:
I'd like to be able to modify the error message of an ASP.NET 2.0 customValidator on the fly, depending on what part of the validation failed. Now, the client validation function takes two...
4
by: darrel | last post by:
Our intranet server died a few months ago and we migrated everything over to a new one. When we did that, any app (asp.net 1.1) of ours that depended on client-side navigation just broke. ...
0
by: urig | last post by:
Hi, I have a pages that contains: 1. A UserControl (that is composed of several DropDownLists). 2. A CustomValidator to validate the UserControl. I have successfully setup the CustomValidator...
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
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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,...

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.