Results 1 to 8 of 8

Thread: [RESOLVED] Ignore RequiredFieldValidator???

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2010
    Posts
    313

    Resolved [RESOLVED] Ignore RequiredFieldValidator???

    hi,
    i have disturbing Problem,

    My Page to contain 3 textbox with RequiredFieldValidator, too in page button and textbox user write code in textbox and click on button for search using code.

    The problem is that it must do I Fill the required textbox before search.

  2. #2
    Frenzied Member avrail's Avatar
    Join Date
    Mar 2006
    Location
    Egypt, Cairo
    Posts
    1,221

    Re: Ignore RequiredFieldValidator???

    hay,
    from its name it is a Required so you can not leave it blank,
    you need to do it in code behind, or you can use javascript
    You Don't Have to Rate Me.
    I'm Not a Civilized Man I'm the Civilization it self
    White or Black, Living or Dieing and 0 or 1 that's MY life
    iam an Object in Object Oriented Life
    my blog : http://refateid.blogspot.com/
    twitter :@avrail
    010011000111010101110110001000000100110101111001001000000101000001100011

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2010
    Posts
    313

    Re: Ignore RequiredFieldValidator???

    I want to make the property Enable in RequiredFieldValidator = False , and after search statment make it True. but no any code work Before full RequiredFieldValidator

    Is there a solution?

  4. #4
    Frenzied Member avrail's Avatar
    Join Date
    Mar 2006
    Location
    Egypt, Cairo
    Posts
    1,221

    Re: Ignore RequiredFieldValidator???

    if you gonna do such a thing, then you will do it through the code it self
    so, there is no need for the RequiredFieldValidator ,
    and as i told you from its name it is Required
    You Don't Have to Rate Me.
    I'm Not a Civilized Man I'm the Civilization it self
    White or Black, Living or Dieing and 0 or 1 that's MY life
    iam an Object in Object Oriented Life
    my blog : http://refateid.blogspot.com/
    twitter :@avrail
    010011000111010101110110001000000100110101111001001000000101000001100011

  5. #5
    PowerPoster gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    Re: Ignore RequiredFieldValidator???

    Hello,

    Are you talking about this property:

    http://msdn.microsoft.com/en-us/libr...r.enabled.aspx

    If so, then set this value to False as the default, so that it isn't enabled to start with. Then, after you do your search, and you post back to the server, set the value to True in your Code Behind.

    Gary

  6. #6
    Frenzied Member axion_sa's Avatar
    Join Date
    Jan 2002
    Location
    Joburg, RSA
    Posts
    1,724

    Re: Ignore RequiredFieldValidator???


  7. #7

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2010
    Posts
    313

    Re: Ignore RequiredFieldValidator???

    I can not find a solution to the problem so far.
    Problem, the page that I do filling the data the user can also search in self page.

    when click user on button search, must fill registration form in page because textbox in registration form Required by RequiredFieldValidator.
    i want button search pass from RequiredFieldValidator ????????

  8. #8
    PowerPoster gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    Re: [RESOLVED] Ignore RequiredFieldValidator???

    Hello,

    I think it would help if you show the ASPX markup/code that you are using, as well as a full description of what you want to happen on the page in question, and when.

    Gary

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width