Click here to Skip to main content
15,921,250 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Hi, Pin
Abhinav S4-Feb-12 18:24
Abhinav S4-Feb-12 18:24 
QuestionSearch Pin
nabinaya1-Feb-12 18:41
nabinaya1-Feb-12 18:41 
AnswerRe: Search Pin
Abhinav S4-Feb-12 18:26
Abhinav S4-Feb-12 18:26 
QuestionSecurity scanner Pin
Priya Prk1-Feb-12 2:14
Priya Prk1-Feb-12 2:14 
AnswerRe: Security scanner Pin
Eddy Vluggen1-Feb-12 12:43
professionalEddy Vluggen1-Feb-12 12:43 
QuestionProblem creating admin page Pin
pimzy31-Jan-12 22:13
pimzy31-Jan-12 22:13 
AnswerRe: Problem creating admin page Pin
pimzy1-Feb-12 22:15
pimzy1-Feb-12 22:15 
QuestionProblem with custom validator in asp.net Pin
dayakar_dn31-Jan-12 18:05
dayakar_dn31-Jan-12 18:05 
Hi,

I am having one text box and two button named APPLY and START, and two custom validator, both i am validating in jquery.

in one custom control i have given controlTovalidate to Textbox...

for another custom control i haven't given any controltoValidate...mainly for validation on click of "Start" button...

As per my knowledge both should be get tiggered..

but in one secnario like when the first custom validator args.isValid is true.. that time.. second Custom validator is not getting triggered...

code of the first custom control

VB
if (!promoCd.match(regEx))
                // if promocode is not an integer of length 9 or 10 then return invalid
                {


                    $("#" + ClientId + "_" + "spnPromoNotEnt").hide();
                    $("#" + ClientId + "_" + "spnPromoNotReg").show();
                    args.IsValid = false;
                    validateResult = false;
                }

                else {
                    {
                        args.IsValid = true;
                        validateResult = true;
                        $("#" + ClientId + "_" + "spnPromoNotEnt").hide();
                        $("#" + ClientId + "_" + "spnPromoNotReg").hide();
                        $("#TopMessagePanel").hide();
            }        }



when else part of the first custom code execute.. then second custom control not getting triggered

second custom validator code

function ValidatePromoCode(source, args) {


        if (Response == null && validateResult == true) {

            if ($("#" + clientId + "_txtPromo").val().length > 0) {
                args.IsValid = false;
                            }
        }
        else if (validateResult != true) {
            $("#TopMessagePanel").hide();
        }
   }



thanks in advance
AnswerRe: Problem with custom validator in asp.net Pin
jkirkerx3-Feb-12 16:32
professionaljkirkerx3-Feb-12 16:32 
QuestionBest way to implement Rich Client Application Pin
eng_george131-Jan-12 6:23
professionaleng_george131-Jan-12 6:23 
AnswerRe: Best way to implement Rich Client Application Pin
Dean Oliver31-Jan-12 8:05
Dean Oliver31-Jan-12 8:05 
QuestionDropdown list to populate a gridview Pin
pmcm31-Jan-12 0:54
pmcm31-Jan-12 0:54 
AnswerRe: Dropdown list to populate a gridview Pin
pmcm31-Jan-12 1:13
pmcm31-Jan-12 1:13 
Questionasp.net toggle image Pin
disha desani30-Jan-12 21:54
disha desani30-Jan-12 21:54 
SuggestionRe: asp.net toggle image Pin
Rajeev Jayaram30-Jan-12 23:19
Rajeev Jayaram30-Jan-12 23:19 
GeneralRe: asp.net toggle image Pin
disha desani1-Feb-12 18:28
disha desani1-Feb-12 18:28 
AnswerRe: asp.net toggle image Pin
Sankalp Deep1-Feb-12 8:57
Sankalp Deep1-Feb-12 8:57 
GeneralRe: asp.net toggle image Pin
disha desani1-Feb-12 18:25
disha desani1-Feb-12 18:25 
GeneralRe: asp.net toggle image Pin
Satish_S2-Feb-12 2:19
Satish_S2-Feb-12 2:19 
GeneralRe: asp.net toggle image Pin
disha desani2-Feb-12 18:25
disha desani2-Feb-12 18:25 
GeneralRe: asp.net toggle image Pin
disha desani2-Feb-12 18:19
disha desani2-Feb-12 18:19 
GeneralRe: asp.net toggle image Pin
Satish_S5-Feb-12 20:37
Satish_S5-Feb-12 20:37 
QuestionSession expire Pin
Rectus30-Jan-12 7:05
Rectus30-Jan-12 7:05 
AnswerRe: Session expire Pin
Dean Oliver30-Jan-12 7:31
Dean Oliver30-Jan-12 7:31 
QuestionHow can we update row in database table if browser is closed Pin
Member 368287130-Jan-12 2:01
Member 368287130-Jan-12 2:01 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.