閉じるボタンのみ (戻るボタンなどはありません) を使用して、新しいウィンドウで Web サイトを開く必要があります。次のスクリプトを見つけましたが、機能していません。誰かが理由を説明してくれることを願っています:
string WindowOpen = "window.open('Notes.aspx?NoteTableId=" + id +
"&NoteTable=" + Tables.InvoiceHeader + "',
'theWin', 'width=200,height=200,toolbar=0,menubar=0');";
ただし、ページが読み込まれると、次のエラーが表示されます。
The name 'id' does not exist in the current context
The name 'Tables' does not exist in the current context
それが何を意味するのかわかりません。誰でも助けてもらえますか?