Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
ASPの別のページにある href リンクからコンテンツの場所にジャンプする方法を知っている人はいますか?
以下に示すアンカーの概念は理解していますが、これはASPではなく html でのみ機能します。
<a href="yoursite.html#jumpHere">link</a>
アンカータグは、以外のファイル形式で機能します.html。
.html
コンテンツとしてレンダリングされるすべてのファイルはhtml、アンカータグを使用できます。
html
したがって、リンクは次のようになります。
<a href="yoursite.aspx#jumpHere">link</a>
yoursite.aspx次に、レンダリングされたコンテンツにIDを持つ要素がある限りjumpHere、ブラウザはその要素に「ジャンプ」します。
yoursite.aspx
jumpHere