Model class code below---------------------------------------------------------------------------------------------------------
[DisplayName("Credit Score")]
public string fico222 { get; set; }
----------- I wanted the returning fico score return with 790 instead of 0790 so how can I change that in my syntax??
Thank you!
Templates can be used only with field access, property access, single-dimension array index, or single-parameter custom indexer expressions.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.InvalidOperationException: Templates can be used only with field access, property access, single-dimension array index, or single-parameter custom indexer expressions.
eli411
ASKER
Here is the error from the Visual Studio
{"Templates can be used only with field access, property access, single-dimension array index, or single-parameter custom indexer expressions."}
Open in new window