Solved

Showing British 'pound' signs in ASP.NET

Posted on 2004-04-14
3
1,210 Views
Last Modified: 2008-02-26
I'm in the UK so I want to preface currency amounts with the pound (£) sign. In Visual Studio 2003 I hardcode the £ sign into statements like 'All values are in pounds sterling (£)' but when the page is displayed they don't appear. This is weird because they show up OK in Visual Studio, and also when currency values are displayed in a datalist. Any ideas?
0
Comment
Question by:crescendo
  • 2
3 Comments
 
LVL 4

Accepted Solution

by:
john-at-7fff earned 125 total points
ID: 10827970
You should be able to show the pound sign in a web page with:

£

(ampersand followed by "pound" followed by a semi-colon.)
0
 
LVL 9

Author Comment

by:crescendo
ID: 10828014
That seems to do the trick! I tried &gbp; but (obviously) it didn't work.

Thanks
0
 
LVL 4

Expert Comment

by:john-at-7fff
ID: 10828646
Glad to help. By the way, I think older browsers (much older) may know a numeric version instead of the alpha sequence. The numeric code is: £

See, for instance, here:

http://super.net.pk/htmlref/characters.html

0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

I recently decide that I needed a way to make my pages scream on the net.   While searching around how I can accomplish this I stumbled across a great article that stated "minimize the server requests." I got to thinking, hey, I use more than one…
I have helped a lot of people on EE with their coding sources and have enjoyed near about every minute of it. Sometimes it can get a little tedious but it is always a challenge and the one thing that I always say is:  The Exchange of information …
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

757 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

19 Experts available now in Live!

Get 1:1 Help Now