Posted on: 3/19/2015 4:02:46 PM | Views : 644

I have some text in the database that has specific words I am going to replace with values at run time. 
So basically the text might be as such:  The Team playing today is [THE_TEAM_PLAYING] today is in the State of [STATE].
I might have 4-5 different area's in this text where information needs to be replace.
Is it best to chain 4 to 5 Replace() functions together off of the string like below:
myFinalStringWithReplacedValues = myString.Replace("[THE_TEAM_PLAYING]", theTeamPlayingStringValue).Replace("[STATE]", theStateStringValue);
OR
Is there a better way to do this???
Basically we have an email message that we are going to save in the database just in case the customer wants to change the verbiage of the message.  Of course, if an actual value that we replace at run time is needed - we have to make a code change.

Go to the complete details ...