maskededitextender not validate properly in network

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rhtdmrai
    New Member
    • Oct 2010
    • 9

    #1

    maskededitextender not validate properly in network

    C#.NET 3.5
    My date format is as below


    FOrmation Date :
    Code:
    <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
    Last edited by PsychoCoder; Jun 30 '12, 05:56 PM. Reason: Code tags added
Working...