Validating date in textbox in asp net

19-Dec-2018 10:26

U gave the name like check My Date but in the javascript u r giving the function name like check Date by using this code i am not rectifying my problem. Hi, Date validation in textbox has always been a genuine need. My code is: function check Date(sender,args) Inquiries for the Day Date: Number of Inquiries: Comments: My Code Behind is: protected void Page_Load(object sender, Event Args e) { if (! example i chose 2/28/2012 and 2/29/2012 number of days is 1 right .. Although we could do it using validator control in, use of javascript is always appreciated. And yes, using both would sometimes lead you to race conditions where choosing a date from the calendar might be an invalid date and the Range Validators would immediately come to the focus. But how can we achieve needs like coparing the date from another texbox live Effectivefrom Date in one Text Box and Effective To Date in another Text Box whose values are driven from Ajax Calendar control dynamically. Http Exception: The value ’23/6/2011′ of the Maximum Value property of ‘validdateofbirth’ cannot be converted to type ‘Date’. I have two textboxes with Calendarextenders in each one, so when i choose a date from Calendarextnder1 it will show in the textbox1 and when i choose at Calendar2 it will show in textbox2 ..In the above code u r giving the Calendar Extender property On Client Date Selection Changed for date validation. Add(“onkeypress”, “return numerals Only(event)”); txt Created Date. I can set Range validator since my from or To date changes dynamically. I achieved this through Text Change i want to know how to disable the dates which is populated in Ajax Calendar based on my from and To date at run time on script,since we can write script in Ajax Calendar Extenders On Client Showing Event… It is getting error for using validator The value ’23/6/2011′ of the Maximum Value property of ‘validdateofbirth’ cannot be converted to type ‘Date’. my question is how to get the number of days in another textbox.For example, you can specify that the user's entry is a date after January 1, 1950 or that it is an integer value greater than or equal to zero.

Now you can ask questions directly to me on my new site ASPForums. control to the page and linking it to the required control.