C
Calvin Lai
Hi all,
I have a repeater control trying to display some info including date
information to the client. I used the following:
<%# DataBinder.Eval(Container.DataItem, "Date", "DataTime.Parse({0},
oCulture)") %>
but it doesn't work as intended. (The oCulture is a culture info object).I
also tried:
<%# DateTime.Parse(DataBinder.Eval(Container.DataItem, "Date", "{0}"),
oCulture) %>;
However, it also gives me runtime compilation error.
Anyone has idea how to do this? I believe this shd be simple. Thanks for
all contributions.
Calvin
I have a repeater control trying to display some info including date
information to the client. I used the following:
<%# DataBinder.Eval(Container.DataItem, "Date", "DataTime.Parse({0},
oCulture)") %>
but it doesn't work as intended. (The oCulture is a culture info object).I
also tried:
<%# DateTime.Parse(DataBinder.Eval(Container.DataItem, "Date", "{0}"),
oCulture) %>;
However, it also gives me runtime compilation error.
Anyone has idea how to do this? I believe this shd be simple. Thanks for
all contributions.
Calvin