C# ASP.NET Display replaced string in whole website -


this question has answer here:

my current project using c# asp.net mvc3. our client asked replace string in whole website. wants update string 'hazard' 'risk'. don't want manually replace word in whole source code. there way display updated word,without changing html code ?

you should have made string constant in shared project in first place ;)

you can use javascript replace text, not work has disabled javascript , cost cpu cycles on client.

the best way imho

  1. create constant
  2. use ctrl + shift + f search files "hazard"
  3. go through them , replace them constant.

if have no variable names "hazard", may use ctrl + shift + h replace together.


Comments