どうも山田です。
ASP.NET環境で開発を行っているシステム屋です。
デザイン側の属性を書き換える方法の覚書です。
意外と便利です。
aspx
<a href="#" class="btnNegative" runat="server" id="linkToTop">
C#
lintToTop.Attributes.Remove("href");
lintToTop.Attributes.Add("class", "btnDisabledNotGray m20");
lintToTop.Attributes.Clear();
①href属性を削除
②class属性を上書き
③すべての属性を削除
登録:
コメントの投稿 (Atom)
0 コメント:
コメントを投稿