I have a page in which I have placed couple of ASP.NET standard validators which work on text boxes and ask user to enter a value if its empty such as "enter name", there is also a custom validator which checks the RadUpload control for valid extentions, I have used this JavaScript function to cause extention validation.
function ValidateUpDetails(source, arguments) {
arguments.IsValid = getRadUpload(
'<%# upDetails.ClientID %>').validateExtensions();
}
and called this on ClientValidationFunction of custom validator. Now I have a requirement in which I would like to click on a button and that button takes text from email text box and checks the database for records containing that email address, Even if user does not fill other textboxes and only fill email textbox and click on check button it should bring the results via Ajax call and populate the Grid. I have designed all the functionality and it also works but the problem is on Ajax call the validators also work which I don't want and a javascript error also pop up saying 'null' is null or not an object and this error is because of the custom validation function shown above.
I am using AjaxManager and configured it to work on button click and selected the grid and sqldatasource as items for updating, in sqldatasource I decalared a variable @email for which I defined my email textbox as source control.
Is there anyway to make an ajax call without activating validators ? I hope I explained it properly, I am fairly new with ASP.NET and RadControls, I am/was a PHP programmer so all this stuff is new for me.
Thanks.