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.
C#で使用できる別のオプションはありますか?これらの凡例の1つを表示するには、満たす必要のある条件があります。今のところ、この凡例を.cs側から見えないように設定する方法がわかりません....aspに相当するものがない限り??? 助言がありますか?ありがとうございました!
その属性を使用しrunat="server"て、IDを指定できます。
runat="server"
<fieldset> <legend runat="server" id="leg">Some Legend</legend> Some value </fieldset>
次に、背後のコードでIDを使用して非表示にします。
protected void Page_Load(object sender, EventArgs e) { leg.Visible = false; }