Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Template GridView

Reply
Thread Tools

Template GridView

 
 
Paulo
Guest
Posts: n/a
 
      08-10-2007
Hi, I have a template wich shows a DateTime returned from the SQL server,
but where do I put a function wich returns only the date not the time?

<asp:Label ID="Label9" runat="server" Text='<%# Bind("DATA_CONTRATO")
%>'></asp:Label>

Can you help me ?


 
Reply With Quote
 
 
 
 
=?Utf-8?B?U2l2YSBN?=
Guest
Posts: n/a
 
      08-10-2007
<%# Bind ("DATA_CONTRATO", "{0:dd/MM/yyyy}") %>

"Paulo" wrote:

> Hi, I have a template wich shows a DateTime returned from the SQL server,
> but where do I put a function wich returns only the date not the time?
>
> <asp:Label ID="Label9" runat="server" Text='<%# Bind("DATA_CONTRATO")
> %>'></asp:Label>
>
> Can you help me ?
>
>
>

 
Reply With Quote
 
 
 
 
Paulo
Guest
Posts: n/a
 
      08-10-2007
Thanks a lot Siva, worked... but how do you know all the functions and these
tricks that .net can do?

Do you have any didatic sites/materials wich teachs these tricks and tips?

thanks!


"Siva M" <(E-Mail Removed)> escreveu na mensagem
news:(E-Mail Removed)...
> <%# Bind ("DATA_CONTRATO", "{0:dd/MM/yyyy}") %>
>
> "Paulo" wrote:
>
>> Hi, I have a template wich shows a DateTime returned from the SQL server,
>> but where do I put a function wich returns only the date not the time?
>>
>> <asp:Label ID="Label9" runat="server" Text='<%# Bind("DATA_CONTRATO")
>> %>'></asp:Label>
>>
>> Can you help me ?
>>
>>
>>



 
Reply With Quote
 
 
 
Reply

Thread Tools

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
r H2 deduce deduce template argument of a template class inheritingfrom a non template base? nguillot C++ 5 03-08-2009 05:56 PM
How to use the template member function of a template in the memberfunction of another template class? Peng Yu C++ 3 10-26-2008 03:51 PM
template template arguments: expected a class template, got `Component<T1, T2, T3> gary.bernstein@gmail.com C++ 1 06-08-2007 07:10 AM
Re: A Newbie Question about template template template tom_usenet C++ 0 07-24-2003 12:06 PM
Re: A Newbie Question about template template template Chris Theis C++ 2 07-24-2003 09:42 AM



Advertisments