473,395 Members | 2,436 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

maskededitextender not validate properly in network

C#.NET 3.5
My date format is as below


FOrmation Date :
Expand|Select|Wrap|Line Numbers
  1. <asp:TextBox ID="txtFormationDate" runat="server" type="text" MaxLength="20" ></asp:TextBox>
  2.  
  3. <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>
  4. <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>
  5.  
  6. Dissolved Date :
  7.  
  8. <asp:TextBox ID="txtDissolvedDate" runat="server" MaxLength="20" ></asp:TextBox>
  9.  
  10. <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>
  11. <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>
  12.  
  13. //Compare these date 
  14.  
  15. <asp:CompareValidator ID="CMP_FD_DD" runat="server" CultureInvariantValues="true" 
  16. ErrorMessage="Dissolved date must be greater than Formation date" ControlToCompare="txtFormationDate"
  17. 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
Jun 30 '12 #1
0 1997

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: aevans1108 | last post by:
Greetings All If this is the wrong place to post this question, please give me a push in the right direction. Thanks. I know there has to be a simpler way to do this, but this is as simple a...
2
by: Steffen Balslev | last post by:
I tried to find a way to validate user credentials using C#, searching google and lots of other news and kb sites left me without a solution. You can use a SSPI but it's that easy to implement so...
4
by: Rajeev | last post by:
Hi I have developed a windows service using C#. I am checking a folder path using "DirectoryInfo" class which is in local network. It always returns false, even folder exists on local network. ...
4
by: somaskarthic | last post by:
Hi Can anyone send javascript code to validate the network mac address(eg. 02:41:6d:22:12:f1) It accepts value from 00:00:00:00:00:00 to ff:ff:ff:ff:ff:ff. On keypress event of textbox , i...
1
by: mickeybaez | last post by:
Hi, I am trying to get the maskededitextender in asp.net to work. It seems like it does not let me type in the box. I have the scriptmanager and also have the maskededitextender configured to point...
4
by: =?Utf-8?B?TWFydGlu?= | last post by:
In Device Manager under Network Adapters, nearly all (about 20) items have a yellow warning symbol. The first item, Microsoft 6to4 Adapter says driver is up-to-date BUT says "This device is not...
0
by: =?Utf-8?B?QWJoaQ==?= | last post by:
Hi All, i have 3 textboxes for area Code,phone number and Extention and each have MaskedEditExtender associated with it. i want that when the length of first text box reaches it's maxlength ,...
1
by: =?Utf-8?B?ZWdzZGFy?= | last post by:
Hello, I'm trying to save data from textboxes that are connected to a calendarextender and masketeditextender in my SQL db and it is doing it, the problem is with the date and the money fields in...
0
by: Bobby Edward | last post by:
I am using the ajax maskededitextender to provide a phone number format template, like this: (000)000-0000 x0000 Is there any way that I can automatically strip out the parens, dash, etc......
6
RedSon
by: RedSon | last post by:
Hi all, I am working on my site (http://loweparkercorp.com/transportest.html) but it doesn't validate properly...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.