I have create user wizard control and i put validation control for all field but when i close user control that validators dint clear in firefox or but clear in IE
May i know solution for this>?
View Complete Post
I have a modal popup containing a text box and a required field validator.
If I click on the OK button with no value specified, it closes the popup after briefly showing the required field validator's error text.
I've seen some posts about how to get validators working with modal popups by not setting the OKButton property, but the trouble is I need to have both the validator and a button click (this is where I save the data)
Can anyone help?
I want to ask how I can be sure that one of two textboxes contains data when click the button ,,,,
am using RequiredFieldValidator as bellow
<asp:TextBox ID=TextBox1 runat=server Width=150px></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="Required!" ControlToValidate="TextBox1">
<asp:TextBox ID=TextBox2 runat=server Width=150px></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="Required!" ControlToValidate="TextBox2">
and for button
<asp:Button ID=Button1 runat=server Text="SendMail" CausesValidation=true Width=70px OnClick="Button1_Click" />
Can i run all validators when page is loaded. I need to show * in all input text fields that are necessary. I have require field validators for that fields, can i run it by default when page is loaded?
One of our custom SharePoint Designer workflow activities, which have always worked fine in SharePoint 2007, fails to validate.
This appears to happen when a Workflow Activity that contains a StringBuilder field also contains a lookup variable.
<FieldBind Field="CustomCode" Text="this code" Id="1" DesignerType="StringBuilder" />
For example when we store the following in this StringBuilder field
"Today's date = [%Current Item:Transaction Date%]"
This field returns 'null' in the ActivityValidator. As a result we cannot validate its contents.
Hi, I want to have TextBox validators like in this case: http://msdn.microsoft.com/en-us/library/ms972948.gridview_fig45l(l=en-us).gif
I transfer the code to my necessities but the error message, displayed at the textbox, is the same as in the summary.
In the msdn - example there is only a asterisk at the respective textbox where the validation fails and the full error message is displayed in the summary.
How can I handle this? It seems to me that the validation summary only repeat the single error messages of the validators. When I set the single validators vissibility to "hidden"(which I would also use, because I thought they are still displayed in the validation summary -_- ), they are not displayed in the summary too.
I have the following problem:
Here is the server side code :
foreach (RequiredFieldValidator valcontrol in Page.Validators)
WebControl assControl = (WebControl)Page.FindControl(valcontrol.ControlToValidate);
assControl.BackColor = System.Drawing.Color.Gray;
assControl.BackColor = System.Drawing.Color.Violet;
}in the client side code I have three Requiredfieldvalidators.I will write the code for one of them in order to give you an idea:<asp:RequiredFieldValidator
ControlToValidate="txtagrilevel" />When i run the page,I get the following error pointed on the line: assControl.BackColor = System.Drawing.Color.Violet;
The error message is :Object reference not set to an instance of an object.
I would appre
what i want to do is to set up different validation summary for different type of validators. for example, for required field validators, if user leaves some required field blank, it shows that "You have to fill in mandantory information, indicated with a star"
and if some format is wrong, it shows that "format is invalid"
right now, i set all requied field validators' text to be a star, and leave error message to be blank. so that the validation summart will only display the header message. that is what i need. what i dont know is how to separate regular expression into another summary.
i think the validation group property requires multiple buttons. however, i only want one submit button, and this is where i got stuck.
any help is appreciated! Thanks in advance.
Are RequiredFieldValidators and RegularExpressionValidator also checked automatically server side?
Hii created 2 user controls and called them in two different tab panels.each user control has few requiredfield validators.aspx has one updatepanel and that updatepanel holds tabcontainer.each tabpanel of above tabcontainer holds one user control and a button, so there are 2 tab panels to hold 2 user controls and 2 buttons.<up> <tc> <tp1> <uc1/> <bt1/> </tp1> <tp2> <uc2> <bt2/> </tp2> </tc></up>suppose i dont enter required fields in uc2 and navigated to tp1 n filled all the required fields of uc1 and clicked on bt1.here bt1 click event is not firing as requiredfield validators of uc2 are not passed.how do i make this work?requiredfield validators shud fire for that respective tab usercontrol only not for all the usercontrols.any other approach u know?plz guide me, i got stuck up here.
How to disabled validators?
My problem is that, I have Page1.aspx and Page2.aspx.
On both the page, I have asp:RequiredFieldValidator with ModalPopUp.
Suppose, when I hit the Submit button on Page1 then Validators call's up.
Same time, when I go to the Page2, and hit Submit button then nothing is going to happens. This is because of still the Validators on Page1 need required value on the back ground.
So my plan is to disabled the validators of that specific page on Close button (it may be client or Sever side) of that page.
How to do it? Or any other alternate is there?
I am using a Textbox with CalendarExtender(AJAX) for displaying date.Now I have set two Validations over this control.
One COMPAREVALIDATOR for comparing date (input date should not be greater than present date)
Other REQUIREDFIELDVALIDATOR so that user doesnot enter empty text.
I have placed them on right side of my datetime control. First COMPAREVALIDATOR and then REQUIREDFIELDVALIDATOR.
The problem I am facing is that when User enters/empties the datetime control(forcefully by deleting) the REQUIREDFIELDVALIDATOR becomes visible at its place but at a distance from the CONTROL which doesn't look good (the space occupied by COMPAREVALIDATOR is still intact though its not visible)
How can I manage my two validators so that they are visible at same place(whenever they are called) just next to CONTROL , rather than at the place I kept them.