Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > ASP.NET 1.1
|
ASP.NET 1.1 As of 10/6/2005, this forum is locked as part of the reorganization described here: http://p2p.wrox.com/topic.asp?TOPIC_ID=35394. No posts have been deleted. Open ongoing discussions from the last week have been moved to either ASP.NET 1.0 and 1.1 Beginners http://p2p.wrox.com/asp-net-1-0-1-1-basics-60/ or ASP.NET 1.0 and 1.1 Professional. http://p2p.wrox.com/forum.asp?FORUM_ID=50. See my sticky post inside for more.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.1 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 14th, 2004, 05:13 PM
Authorized User
 
Join Date: Jun 2003
Posts: 29
Thanks: 0
Thanked 0 Times in 0 Posts
Default Formatting with Repeater Control

Hi,

I'm new to using the Repeater control, and for the most part I've got it working. However, what has stumped me now is figuring out how to format my data within the item template.

Code:
<itemtemplate>
<tr><td><div align="center"><%# Container.DataItem( "cost_date" ) %></div></td>
How do I format that as different date formats? I found that for my Container.DataItem( "cost" ) I can simply put a FormatCurrency() around the it to format as currency, haven't found such for a date though. Ideally I'd like to know how to format these Container.DataItem's any way I might like (number of decial places, multiple datetime formats, ect.)

Thanks,

Pat





Similar Threads
Thread Thread Starter Forum Replies Last Post
Help me with repeater control? forlife ASP.NET 2.0 Basics 1 July 14th, 2007 12:09 PM
conditional formatting on databound repeater thenoseknows ASP.NET 1.0 and 1.1 Professional 1 April 25th, 2007 04:58 PM
Repeater control. rupen ASP.NET 1.0 and 1.1 Basics 1 October 14th, 2005 08:34 AM
Repeater Control abdul_owiusa General .NET 0 September 19th, 2005 10:00 AM
Repeater Control Dmitriy Pro VB 6 0 July 27th, 2004 11:13 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.