HttpResponse.Write

HttpResponse.Writeで、指定の文字列をHTTPレスポンス出力ストリームに出力。

HttpResponse.Write メソッド (System.Web) | Microsoft Docs

HttpResponse_.aspxで、aタグのハイパーリンクを出力しようとしたが、

<%@ Page Language="C#" %>
<html>
  <head runat="server">
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    <title id="title_index">HttpResponse_</title>
  </head>
  <body>
    <% Response.Write(@"<a href="http://bgstation0.com/">B.G-STATION</a>"); %>
  </body>
</html>

C#特有の'@'によるエスケープで書いたら、

なぜかエラー
なぜかエラー

なぜかエラー。

通常の'\'によるエスケープにしたら、

ハイパーリンクが表示された
ハイパーリンクが表示された

ハイパーリンクが表示された。
なんでだろ・・・。

Sample/aspnet/HttpResponse/Write/src/HttpResponse at master · bg1bgst333/Sample · GitHub