Advertisement

11.27.2007 at 04:57AM PST, ID: 22984772
[x]
Attachment Details

format price in repeater

Asked by ANAT2403 in .Net Editors & IDEs, C# Programming Language, Programming for ASP.NET

Tags: format, price, repeater

In ASP.NET 2.0 with C# I have a repeater that shows a price and I want to show it without any digit after the decimal point.
this is how I show it  inside the repeater:
<%# Eval("Price")%>
I thought of writing it like:
<%# Eval("Price","{0:N0}")%>
but it doesn't work.
How shall I write it?
Anat


Start Free Trial
[+][-]11.27.2007 at 05:06AM PST, ID: 20357481

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11.27.2007 at 05:12AM PST, ID: 20357531

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11.27.2007 at 06:09AM PST, ID: 20357919

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]12.30.2007 at 04:21AM PST, ID: 20550546

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: .Net Editors & IDEs, C# Programming Language, Programming for ASP.NET
Tags: format, price, repeater
Sign Up Now!
Solution Provided By: ANAT2403
Participating Experts: 3
Solution Grade: B
 
 
[+][-]12.30.2007 at 04:25AM PST, ID: 20550555

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628