Click here to Skip to main content
16,008,175 members
Home / Discussions / Database
   

Database

 
GeneralError: 17805, Severity: 20, State: 3 Pin
Sabyasachi Bose7-Feb-05 0:43
Sabyasachi Bose7-Feb-05 0:43 
QuestionHow do i store an array of 500 in an db Pin
rikkemus6-Feb-05 22:23
rikkemus6-Feb-05 22:23 
AnswerRe: How do i store an array of 500 in an db Pin
Yulianto.6-Feb-05 22:31
Yulianto.6-Feb-05 22:31 
GeneralRe: How do i store an array of 500 in an db Pin
Colin Angus Mackay7-Feb-05 1:25
Colin Angus Mackay7-Feb-05 1:25 
Generalfirebird data engine Vs MSDE data engine Pin
ppp0016-Feb-05 22:09
ppp0016-Feb-05 22:09 
GeneralRe: firebird data engine Vs MSDE data engine Pin
Rob Graham7-Feb-05 3:12
Rob Graham7-Feb-05 3:12 
Generalmoney datatype Pin
jetset326-Feb-05 20:59
jetset326-Feb-05 20:59 
GeneralRe: money datatype Pin
Luis Alonso Ramos7-Feb-05 19:54
Luis Alonso Ramos7-Feb-05 19:54 
Is your website hosted in the same machne where you edit the database?

If not, your machine probably is configured (in Control Panel, Regional settings) to format the currency values like British (pounds). And probably the ASP.NET server is configured for an english-US culture.

Do something like this in your ASP.NET code:
CultureInfo ci = new CultureInfo("en-br");  // Check the "en-br" so it's for Britain, maybe "en-UK"
decimal dMyMoney = 12.99m;
string strMoneyInPounds = dMyMoney.ToString("c", ci);
I'm not exactly sure of the syntax, but that should format your decimal value as currency (the "c" parameter) using the English (UK variant) culture.

-- LuisR



Luis Alonso Ramos
Intelectix - Chihuahua, Mexico

Not much here: My CP Blog!

GeneralRe: money datatype Pin
jetset329-Feb-05 5:04
jetset329-Feb-05 5:04 
General.net compact framework / sql Pin
kofler6-Feb-05 4:40
kofler6-Feb-05 4:40 
Generalget byte[] from a database Pin
Sasuko6-Feb-05 1:45
Sasuko6-Feb-05 1:45 
GeneralRe: get byte[] from a database Pin
Sasuko6-Feb-05 2:45
Sasuko6-Feb-05 2:45 
GeneralRe: get byte[] from a database Pin
David Salter6-Feb-05 7:22
David Salter6-Feb-05 7:22 
GeneralRe: get byte[] from a database Pin
Sasuko_8-Feb-05 20:56
sussSasuko_8-Feb-05 20:56 
QuestionHow do you do with .mdb? Pin
Anonymous5-Feb-05 1:32
Anonymous5-Feb-05 1:32 
AnswerRe: How do you do with .mdb? Pin
Yulianto.6-Feb-05 18:11
Yulianto.6-Feb-05 18:11 
QuestionASP .NET, MS SQL Server 2000 with Window XP SP2 <- does not work??? Pin
Thang T.4-Feb-05 22:46
Thang T.4-Feb-05 22:46 
AnswerRe: ASP .NET, MS SQL Server 2000 with Window XP SP2 <- does not work??? Pin
Hesham Amin4-Feb-05 23:05
Hesham Amin4-Feb-05 23:05 
GeneralRe: ASP .NET, MS SQL Server 2000 with Window XP SP2 <- does not work??? Pin
Thang T.5-Feb-05 0:32
Thang T.5-Feb-05 0:32 
GeneralSQL Server fills event log Pin
Hesham Amin4-Feb-05 20:00
Hesham Amin4-Feb-05 20:00 
GeneralRe: SQL Server fills event log Pin
Hesham Amin4-Feb-05 23:48
Hesham Amin4-Feb-05 23:48 
GeneralDifficult JOIN Pin
Luis Alonso Ramos4-Feb-05 15:24
Luis Alonso Ramos4-Feb-05 15:24 
GeneralRe: Difficult JOIN Pin
Yulianto.4-Feb-05 16:05
Yulianto.4-Feb-05 16:05 
GeneralRe: Difficult JOIN Pin
Luis Alonso Ramos4-Feb-05 19:18
Luis Alonso Ramos4-Feb-05 19:18 
GeneralRe: Difficult JOIN Pin
Mike Dimmick5-Feb-05 1:52
Mike Dimmick5-Feb-05 1:52 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.