Ask a Question related to ASP.NET General, Design and Development.
-
Serdar Kalaycý #1
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
--
Serdar Kalaycý Guest
-
validator qs.(1.5)
Hi, I have a field in the form for which I have to check that it should have some specific string e.g 1234. I tried using below it works if I... -
Adding Validator Control at runtime in a Custom Control
Hi Wim, How do we link the TextBox to this validator control class in runtime ? Could you please tell. Thanks _ Muds. Wim Hollebrandse... -
custom validator and ControlToValidate in a composite control...
The ControlToValidate property is wrecking my head. I have a custom composite server control defined as follows: internal abstract class... -
Validator and custom control question
Hello, I have a custom control that overrides the base class render method. From the Render method I got a call to the follwing method in the... -
Custom Range Validator how-to?
Would appreciate some help, as I am blanking on the best way to do this. I want to have a Range Validator for a textbox where the Minimum and... -
Serdar Kalaycý #2
Re: Custom Validator
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" <joteke@aspalliance.com> wrote in message
news:u4ZBKgIRDHA.2320@TK2MSFTNGP12.phx.gbl...[url]http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnaspp/html[/url]> Hi,
>
> take a look at this article:
>
> ASP.NET Validation In Depth
>
/aspplusvalid.aspevent>
> It will explain you all the details about validation, including
> CustomValidator.
>
> --
> Teemu Keiski
> MCP,Designer/Developer
> Mansoft tietotekniikka Oy
> [url]http://www.mansoft.fi[/url]
>
> ASP.NET Forums Moderator, [url]www.asp.net[/url]
> AspAlliance Columnist, [url]www.aspalliance.com[/url]
>
> Email:
> [email]joteke@aspalliance.com[/email]
>
>
> "Serdar Kalaycý" <serdarkalayci@unisec.com.tr> kirjoitti viestissä
> news:e9OiiQIRDHA.3796@tk2msftngp13.phx.gbl...> > I added a custom validator and added some code to its ServerValidateas> > but when a data which is not accepted is entered, it gives the warningfield> it> > should do, but doesn't stop the execution of Click event of my submit
> > button. RequiredFieldValidator for example, gives the error when the>> > is empty and does not let the code continue execution. So do I miss
> > something in definition of CustomValidator?
> >
> > Serdar KALAYCI
> >
> > --
> >
> >
> >
>
Serdar Kalaycý Guest



Reply With Quote

