Responseクラスのインスタンスプロパティであり、Pageへのショートカットとして提供されHttpContext.Current.Responseます。
インスタンスメソッドを使用するかHttpContext.Current.Response.Write、静的メソッドで使用します。
例
public static string Call()
{
string ref1 = HttpContext.Current.Request.ServerVariables["HTTP_REFERER"];
HttpContext.Current.Response.Write(ref1);
}
または
public string Call()
{
string ref1 = Request.ServerVariables["HTTP_REFERER"];
Response.Write(ref1);
}
get()のメソッドの言及はSystem.Web.UI.Page.Response.get、プロパティのgetアクセサーを指します。基本的に、型の静的メソッドから型のインスタンスでget()メソッドを呼び出すことはできないということです(もちろんこれは理にかなっています)。
補足として、(修正されたケース)でResponse.write(ref1);ある必要があります。Response.Write()