I am trying to replace a sub-string in the errorString. i am using this code,which is not making any changes to errorString. am i following a wrong method?
string errorstring = "<p> Name:{StudentName}</p>";
errorstring.Replace("{StudentName}", "MyName");
i want to replace {StudentName} in errorString with "MyName"