D
dana lees
Hello,
I am using a datagrid in which one of the columns is a TemplateColumn that
shows a date. I want to format this date to the appropriate date according
to the client's timezone.
For that, i have to call a javascript function which uses
"getTimezoneOffset" function to calculate the client's date and time.
This is the part of the code where i need to format the data:
<asp:TemplateColumn HeaderText="Received">
<ItemTemplate>
<asp:Label runat="server" Text='<%# DataBinder.Eval(Container,
Item.Received") %>'></asp:Label>
</ItemTemplate>
</asp:TemplateColumn>
Is it possible to call a javascript function when building the table?
Thanks,
Dana
I am using a datagrid in which one of the columns is a TemplateColumn that
shows a date. I want to format this date to the appropriate date according
to the client's timezone.
For that, i have to call a javascript function which uses
"getTimezoneOffset" function to calculate the client's date and time.
This is the part of the code where i need to format the data:
<asp:TemplateColumn HeaderText="Received">
<ItemTemplate>
<asp:Label runat="server" Text='<%# DataBinder.Eval(Container,
Item.Received") %>'></asp:Label>
</ItemTemplate>
</asp:TemplateColumn>
Is it possible to call a javascript function when building the table?
Thanks,
Dana