470,594 Members | 1,106 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,594 developers. It's quick & easy.

Custom Validator

I added a custom validator and added some code to its ServerValidate event
but when a data which is not accepted is entered, it gives the warning as it
should do, but doesn't stop the execution of Click event of my submit
button. RequiredFieldValidator for example, gives the error when the field
is empty and does not let the code continue execution. So do I miss
something in definition of CustomValidator?

Serdar KALAYCI

--

Nov 17 '05 #1
1 5208
Ok, I understand that I have to use client side validation with server side
validation. But I cannot access server side components in my client side
script (eg. TextBox1.Text) and because my validation relies on more than one
component, it's also impossible to get the values from parameters. What must
I do?

Serdar Kalayci
"Teemu Keiski" <jo****@aspalliance.com> wrote in message
news:u4**************@TK2MSFTNGP12.phx.gbl...
Hi,

take a look at this article:

ASP.NET Validation In Depth
http://msdn.microsoft.com/library/de...us/dnaspp/html
/aspplusvalid.asp
It will explain you all the details about validation, including
CustomValidator.

--
Teemu Keiski
MCP,Designer/Developer
Mansoft tietotekniikka Oy
http://www.mansoft.fi

ASP.NET Forums Moderator, www.asp.net
AspAlliance Columnist, www.aspalliance.com

Email:
jo****@aspalliance.com
"Serdar Kalaycý" <se***********@unisec.com.tr> kirjoitti viestissä
news:e9**************@tk2msftngp13.phx.gbl...
I added a custom validator and added some code to its ServerValidate event but when a data which is not accepted is entered, it gives the warning as
it
should do, but doesn't stop the execution of Click event of my submit
button. RequiredFieldValidator for example, gives the error when the

field is empty and does not let the code continue execution. So do I miss
something in definition of CustomValidator?

Serdar KALAYCI

--


Nov 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Mike P | last post: by
2 posts views Thread by Evgueni | last post: by
5 posts views Thread by Mattyw | last post: by
9 posts views Thread by wardy1975 | last post: by
3 posts views Thread by Andy | last post: by
reply views Thread by tsw_mik | last post: by
4 posts views Thread by Rick | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.