ValidationGroup

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • KUTTAN
    New Member
    • Mar 2007
    • 33

    ValidationGroup

    I have 2 divisions in a .aspx file





    Left division for sing up and

    Right division for login



    In log in division I have placed a user control l (i.e. a Login.ascx control)

    I have two image buttons

    one in Left division and

    one in the .ascx file.





    But when I fill sign up details and press its button

    I have used validation controls and validation summary.

    I have made separation between the 2 sections to validate

    By using

    ValidationGroup ="SignUp"



    Or

    ValidationGroup ="Login1"

    On its correct place



    But when I press image button to sign up(BtnSignUp)

    It automatically validate log in in put boxes(BtnLogIn)





    What can I do solve this?
  • shweta123
    Recognized Expert Contributor
    • Nov 2006
    • 692

    #2
    Hi,

    Please check the following things if you are using validationGroup property for doing validation :

    1) Set validationgroup property equal to "Login1" for all the validation controls that is going to be used for controls in a Login group.

    2) Set validationgroup property equal to "SignUp" for all validation controls that is going to be used for the controls in a Signup group.

    3) For BtnSignUp button set causesvalidatio n="true" and validationgroup ="SignUp".

    4) For BtnLogIn button set causesvalidatio n="true" and validationgroup ="Login1".






    Originally posted by KUTTAN
    I have 2 divisions in a .aspx file





    Left division for sing up and

    Right division for login



    In log in division I have placed a user control l (i.e. a Login.ascx control)

    I have two image buttons

    one in Left division and

    one in the .ascx file.





    But when I fill sign up details and press its button

    I have used validation controls and validation summary.

    I have made separation between the 2 sections to validate

    By using

    ValidationGroup ="SignUp"



    Or

    ValidationGroup ="Login1"

    On its correct place



    But when I press image button to sign up(BtnSignUp)

    It automatically validate log in in put boxes(BtnLogIn)





    What can I do solve this?

    Comment

    Working...