I have a colleague who thinks this
alert('<asp:Localize ID="ErrorAddingComponent" runat="server" Text="There was an error adding component: " meta:resourcekey="ErrorAddingComponent"/>' + errortext);
is a good idea if we get an error from an AJAX call, the errortext is the parameter of the function called on error from a jquery ajax,
to me the thought of using a server side localize control seems horrible, we are using asp.net MVC so, for me, even using the GetLocalResourceObject is prefereable to this,
can anyone give me any reasons I can raise this with him? (or if you believe his solution is ok why?).
As an aside the alert annoys me too, I believe we should parse errors to a div for presentation.