ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,288 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi,
I want to show & Hide group box according to certain condition:
ASP.net:
<div id="MyDiv" runat="server" visible="true" style="margin-top: 10px; margin-bottom: 10px;">
<asp:Panel runat="server" ID="pnlTest" GroupingText="My Group"
Then in code behind do this:
If true
MyDiv.visible := true
else
myDiv.visible := false;
Is this the best way to achieve that ?
Thank you
I think that you can use an <asp:Panel> instead of <div>. Or maybe you can delete the <div>, adjust the style of panel and use pnlTest.Visible = false.