I have a problem with Razor and String.Format. I have a parameter as follow:
@{
string aktenHeader = Html.Raw(Model.Node.Aktenzeichen + string.Format("{0}" + Model.Node.Aktenkurzbezeichung, (Model.Node.Aktenzeichen != null && Model.Node.Aktenkurzbezeichung != null ? " ./. " : ""))).ToString();
}
and I got the exception : Input string was not in a correct format.
Please help me friends. Thanks
EDIT
Model.Node.Aktenzeichen = "Akte"
Model.Node.Aktenkurzbezeichung = "Test ${}"
And I expected aktenHeader = "Schnulli ./. Test ${}"