How to set default value in string.format if row["ONEYR" ] is null?
@String.Format("{0:0.00;(0.00)}", row["ONEYR"])
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Nitin SontakkeRank #264 · 9.6K reputationPosted Feb 25, 2018, 7:59 PM EST
Cynthia SathuragiriRank #937 · 2.2K reputationPosted Feb 25, 2018, 8:48 PM EST
SandyRank #2,015 · 718 reputationPosted Feb 26, 2018, 6:31 PM EST
Nitin SontakkeRank #264 · 9.6K reputationPosted Feb 26, 2018, 7:20 PM EST
Nitin SontakkeRank #264 · 9.6K reputationPosted Feb 26, 2018, 7:22 PM EST