all groups > asp.net webcontrols > april 2004 >
You're in the

asp.net webcontrols

group:

MySQL and ASP.NET question


Re: MySQL and ASP.NET question Robert Phillips
4/28/2004 8:29:06 AM
asp.net webcontrols:
DateTime.Parse?

[quoted text, click to view]

MySQL and ASP.NET question Mvk
4/28/2004 2:00:30 PM
Hello;

I have a mysql database with a table column 'OrderUntil'. I declared this
column type: Time.
I get the value in my HTML code by using:
DataBinder.Eval(Container.DataItem, "OrderUntil");

Now I want to pass the resulting value to a function: GetHoursComboIndex as
follows:

GetHoursComboIndex((DateTime)(DataBinder.Eval(Container.DataItem,
"OrderUntil")))

The problem is: the DataBinder.Eval(Container.DataItem, "OrderUntil") value
cannot be casted to a DateTime value.
Any idea how I map the Time type OrderUntil column to a C# DateTime type ?
(or another type).

Regards
MVK

AddThis Social Bookmark Button