我写了下面的代码行
in aspx file
<asp:Panel runat="server" style="margin-bottom:5px;" ID="DocumentStyle">
<asp:Panel>
in aspx.cs
protected void btnSave_Click(object sender, EventArgs e)
{
bool documentPanel = DocumentStyle.Visible;
}
我必须检查面板是否可见。上面的代码无效!!!