|
-
Sep 28th, 2010, 03:11 PM
#1
Thread Starter
Hyperactive Member
[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.
-
Sep 28th, 2010, 04:14 PM
#2
Frenzied Member
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 
-
Sep 28th, 2010, 11:28 PM
#3
Thread Starter
Hyperactive Member
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?
-
Sep 29th, 2010, 12:48 AM
#4
Frenzied Member
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 
-
Sep 29th, 2010, 01:17 AM
#5
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
-
Sep 29th, 2010, 11:04 AM
#6
Re: Ignore RequiredFieldValidator???
-
Sep 30th, 2010, 04:38 PM
#7
Thread Starter
Hyperactive Member
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 ????????
-
Oct 1st, 2010, 02:28 AM
#8
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|