Solved

Format Price in Dreamweaver 8 asp.net vb

Posted on 2008-10-28
2
225 Views
Last Modified: 2012-05-05
Need to format a price. Trying:

<%# spItemList.FieldValue("ItemPrice", Container)).ToString("{c:0}")  %>
<%# spItemList.FieldValue("ItemPrice", Container)).ToString("c:0")  %>
<%# Int32.Parse(spItemList.FieldValue("ItemPrice", Container)).ToString("c:0")  %>
<%# Int32.Parse(spItemList.FieldValue("ItemPrice", Container)).ToString("c0")  %>
<%# Int32.Parse(spItemList.FieldValue("ItemPrice", Container)).ToString("c")  %>

Last three get this error message:

Exception Details: System.FormatException: Input string was not in a correct format.

Any ideas? Thanks.
0
Comment
Question by:LazarusBlack
  • 2
2 Comments
 

Author Comment

by:LazarusBlack
Comment Utility
anybody?
0
 

Accepted Solution

by:
LazarusBlack earned 0 total points
Comment Utility
got it myself. it was

<%# Decimal.Parse(spItemList.FieldValue("ItemPrice", Container)).ToString("C")  %>
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now