They are the same, so yes, you can replace HttpResponse.AddHeader
with HttpResponse.AppendHeader
.
From MSDN
AddHeader is the same as AppendHeader
and is provided only for compatibility
with earlier versions of ASP. With
ASP.NET, use AppendHeader.
A quick peek with Reflector confirms that HttpResponse.AddHeader
just calls HttpResponse.AppendHeader
.