Control validating

basicly i don't have any postback in the page if the validator finds any error.

How can have the validator just disable certain control's postback and other part of page continue their functionality. M" Hi, I have a validation control in my page that upon any invalid data, it disables all buttons in the page.

Validation controls run a client-side script this makes them efficient because a network trip to the server is not necessary to validate data the client-side script is generated automatically at runtime.

control validating-70control validating-89control validating-25

So if we what only part of the validators to be enable when a certain button is clicked.

We can use this fuction to disable the other validators in the certain button's onmousedown event.

(This posting is provided "AS IS", with no warranties, and confers no rights.) Thanks Steven for help. I also tried to have 2 tags, so validators of each form doesn't validate the other. If there is anything I misunderstood, please feel free to let me know.

Also, it's easier to make this for server side Validation, just add the below code in the certain button's serverside click event: private void btn VLeft_Click(object sender, System. Page -------------------------------------------------------------------------- Please check out the preceding tech article and try out my code.

For example, if we have two validators named "rfv Left" and "rfv Right" ,when a button is clicked, we want only "rfv Left" to work, then we could use the following code: function Left Validator() Thus, we can disable the "rfv Right" 's client validation when the button is clicked(only rfv Left will take validation action).

Also, it's easier to make this for server side Validation, just add the below code in the certain button's serverside click event: private void btn VLeft_Click(object sender, System. Page -------------------------------------------------------------------------- Please check out the preceding tech article and try out my code. My name is Steven, and I'll be assisting you on this issue. NET web page which as serveral entry fields, validator controls and also buttons on it.

It contains a group of clientside APIS which control the clientside's validation operation.

Here is three important client APIS(quote from MSDN): Name Validator Validate(val): Takes a client-validator as input.

basicly i don't have any postback in the page if the validator finds any error. My name is Steven, and I'll be assisting you on this issue. NET web page which as serveral entry fields, validator controls and also buttons on it.

Tags: , ,