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.
マスターページのコンテンツプレースホルダーの外側にアンカーを配置したときに、コンテンツページのアンカータグにcssクラスを追加するにはどうすればよいですか...実際には、メニューバーの現在のページを別のテキストで表示したいですか?
コンテンツ ページでマスター ページ コントロールを見つけて、スタイルを実装する
HtmlAnchor Anchor= ( HtmlAnchor)Master.FindControl("HtmlAnchor"); Anchor.Style.Add("background-color", "red");