David Bellerose
David Bellerose
RRailway
Created by David Bellerose on 7/10/2024 in #✋|help
Variables syntax
When I create variables for my app, do I have to surround the key and value with back ticks ``, as shown in this doc? https://docs.railway.app/reference/variables#template-syntax
29 replies
RRailway
Created by David Bellerose on 6/5/2024 in #✋|help
How can I use my own custom domain for an application
11 replies
RRailway
Created by David Bellerose on 11/3/2023 in #✋|help
Display Number as Currency
I have a .NET C# app with fields formatted as currency, both in the model and the view. model
[DisplayFormat(DataFormatString = "{0:C0}", ApplyFormatInEditMode = true)]
[DisplayFormat(DataFormatString = "{0:C0}", ApplyFormatInEditMode = true)]
view
@item.Payment.ToString("C")
@item.Payment.ToString("C")
It works locally but not on railway, it displays ¤. It works if I use $@Model.Amount.ToString("#,###,###.##") in the view but then it will display .2 instead of .20, and I have to put in the $ character at the beginning. Any help solving this would be much appreciated. here is the link to the app https://mortgagecalculator-asp-net.up.railway.app/Home/App
22 replies