TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Amit Rai
NA
5
0
maskededitextender not validate properly in network
Jun 30 2012 6:17 AM
C#.NET 3.5
My date format is as below
FOrmation Date :
<asp:TextBox ID="txtFormationDate" runat="server" type="text" MaxLength="20" ></asp:TextBox>
<asp:MaskedEditExtender ID="MaskedEditExtender1" runat="server" TargetControlID="txtFormationDate" Mask="99/99/9999" CultureName="en-CA" MessageValidatorTip="true" MaskType="Date" InputDirection="LeftToRight" ErrorTooltipEnabled="True"></asp:MaskedEditExtender>
<asp:MaskedEditValidator ID="MaskedEditValidator1" ControlExtender="MaskedEditExtender1" EmptyValueMessage="Date is required" InvalidValueMessage="Date is invalid" runat="server" EmptyValueBlurredText="*" InvalidValueBlurredMessage="*" SetFocusOnError="true" ErrorMessage="*" ControlToValidate="txtFormationDate"></asp:MaskedEditValidator>
Dissolved Date :
<asp:TextBox ID="txtDissolvedDate" runat="server" MaxLength="20" ></asp:TextBox>
<asp:MaskedEditExtender ID="MaskedEditExtender2" CultureName="en-CA" runat="server" TargetControlID="txtDissolvedDate" Mask="99/99/9999" MessageValidatorTip="true" MaskType="Date" InputDirection="RightToLeft" ErrorTooltipEnabled="True"></asp:MaskedEditExtender>
<asp:MaskedEditValidator ID="MaskedEditValidator2" ControlExtender="MaskedEditExtender1" EmptyValueMessage="Date is required" InvalidValueMessage="Date is invalid" runat="server" EmptyValueBlurredText="*" InvalidValueBlurredMessage="*" SetFocusOnError="true" ErrorMessage="*" ControlToValidate="txtDissolvedDate"></asp:MaskedEditValidator>
//Compare these date
<asp:CompareValidator ID="CMP_FD_DD" runat="server" CultureInvariantValues="true"
ErrorMessage="Dissolved date must be greater than Formation date" ControlToCompare="txtFormationDate"
ControlToValidate="txtDissolvedDate" Operator="GreaterThanEqual" Type="Date" SetFocusOnError="true" ValidationGroup="BranchGP"></asp:CompareValidator>
when I enter the date as 15/04/2011 (Formation date) & 17/03/2012 (Dissolve date)
It works Fine on my own desktop But when I run it on Network by publishing website
then it shows ERROR msg 'Dissolved date must be greater than Formation date'.
Plz help me.
still awaiting for your positive n quick reply
Reply
Answers (
0
)
Gridview requirement in web form
How To Upload Open Office File