PC Review


Reply
Thread Tools Rate Thread

Ajax Control Tookit - Masked Edit - UK Style Dates

 
 
Bob
Guest
Posts: n/a
 
      31st Aug 2008
I am having enormous problems with this. I can get the input validation
running, after a lot of fiddling around but when I try to assign to the
textbox in code the problems start.


I can assign a string OK

StartDateText.Text = "31/08/2008 18:06:21";

Or

string startingDate = string.Format(@"{0:d}/{1:d}/{2:d}
{3:d}:{4:d}:{5:d}", tempDateTime.Day, tempDateTime.Month,
tempDateTime.Year, tempDateTime.Hour, tempDateTime.Minute,
tempDateTime.Second);
StartDateText.Text = startingDate;

These display OK.

StartDateText.Text = DateTime.Now.ToString("dd/MM/yyyy HH:mm:ss");

gives garbage.

But any of these examples causes the control to go haywire when an invalid
date is entered and then corrected. The invalid date is reported OK but then
the corrected date is still reported invalid.

Can this extender really only be used one way or with US dates?

Bob







--
Bob
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ASP.NET AJAX Control Tookit - cascading drop down robert@orisoft.co.uk Microsoft ASP .NET 0 15th Nov 2006 11:50 PM
Masked Edit Control =?Utf-8?B?bWV0cmlkZXZraw==?= Microsoft ASP .NET 1 3rd Dec 2004 06:37 AM
Masked Edit Control Gary Fehr Microsoft Dot NET 0 24th Jun 2004 02:09 AM
Re: Masked Edit Control in vb.net Brian Microsoft VB .NET 0 12th Sep 2003 02:50 AM
Re: Masked Edit Control in vb.net One Handed Man [ OHM ] Microsoft VB .NET 4 11th Sep 2003 11:13 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:59 AM.