Best practice and alternatives for string manipulation with an emphasis on readability
In C#, you could use the built-in string.Format instead:

string parameterizedUrl = "page.aspx?id={0}&amp;ref={1}";
return string.Format(parameterizedUrl, id, referrer);


I haven't profiled it, but I think it would at worst be not any less efficient than your double Replace() call.