if ur xaml is not blank and has controls
close VS , open VS and build the whole solution.
the error wil vanish :)
// Parses the string stored in the file, // and stores it in a DateTime. DateTime dtout = DateTime.Parse(date, InvC); // Creates a CultureInfo set to "fr-FR". CultureInfo frc = new CultureInfo("fr-FR"); // Displays the date formatted for the "fr-FR" culture. Console.WriteLine("\nThe date read from the file and formatted for the culture \"fr-FR\" is:\n{0}" , dtout.ToString("d", frc)); // Creates a CultureInfo set to "ja-JP". CultureInfo jpn= new CultureInfo("ja-JP"); // Displays the date formatted for the "ja-JP" culture. Console.WriteLine("\nThe date read from the file and formatted for the culture \"ja-JP\" is:\n{0}" , dtout.ToString("d", jpn));
The date read from the file and formatted for the culture "fr-FR" is: 24/07/2001 The date read from the file and formatted for the culture "ja-JP" is: 2001/07/24
CDate(Fields!StartDate.Value) may not always work.
Format(Fields!StartDate.Value,"dd-MM-yyyy") - this works.
if StartDate.Value is string then First(Fields!StartDate.Value) works.
HTH,
Anju