私はこのコードを1つのASPページに持っています
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Response.AppendHeader("content-disposition", "attachment; filename=PublicKeyCertificate.cer")
Response.ContentType = "application/x-x509-ca-cert"
Response.BinaryWrite(Session("cerbytes"))
Response.End()
End Sub
このコードは、.cer ファイルをダウンロードします。ダウンロードする代わりに、開く方法はありますか?content-type を application/pdf に設定すると、ほとんどのブラウザは新しいタブで PDF を開きます。cer ファイルで同じことができますか?