In my WebMatrix app (.cshtml), I have a string and I want to extract a subsitring from it. I am using string.SubString(0,5) method but I am getting following error:
does not contain a definition for 'SubString' and no extension method
'SubString' accepting a first argument of type 'string' could be found
(are you missing a using directive or an assembly reference?)
I have included all required assemblies. Can I have suggestions please?.
View Complete Post