我不是一个vb网络高手,我遇到了一些我仍然无法解决的问题。 我有一个主页面,当我点击一个按钮我想显示一个面板(我在主页面中导入的一个Web用户控件),但它什么也没显示。 我想我做了一些愚蠢的错误,但我无法摆脱它。 让我给你看一些代码:
这是用户控件:
<asp:Panel ID="MainPanelUserMessage" runat="server" Height="278px" Style="z-index: 100; left: 0px;
position: absolute; top: 0px; background-position: center center; background-attachment: fixed; background-repeat: repeat; font-size: 12px; font-family: Tahoma;" Width="746px">
<asp:Label ID="LabelTitoloMex" runat="server" Style="font-weight: bold; font-size: 14px;
z-index: 100; left: 0px; color: #ffffff; font-family: Verdana, Tahoma; position: absolute;
top: 0px; background-color: #000000; text-align: center" Text="Messaggio dal supporto tecnico"
Width="746px"></asp:Label>
<asp:Label ID="LabelOggettoMex" runat="server" Style="font-weight: bold; font-size: 12px;
z-index: 105; left: 7px; color: #424242; font-family: Tahoma, Verdana; position: absolute;
top: 30px" Text="Oggetto:"></asp:Label>
<asp:TextBox ID="TextOggettoUser" runat="server" MaxLength="100" Style="font-size: 12px;
z-index: 106; left: 68px; font-family: Tahoma, Verdana; position: absolute; top: 30px;
text-align: left" ToolTip="Oggetto" Width="660px" ReadOnly="True"></asp:TextBox>
<asp:TextBox ID="TextMessaggioUser" runat="server" Height="160px" MaxLength="2000" Style="font-size: 12px;
z-index: 107; left: 9px; font-family: Tahoma, Verdana; position: absolute; top: 60px;
text-align: left" TextMode="MultiLine" ToolTip="Messaggio" Width="721px"
ReadOnly="True"></asp:TextBox>
<asp:Button ID="okButton" runat="server" Style="font-size: 12px;
font-family: Tahoma, Verdana; text-align: left" CssClass="style1"
Text="Chiudi"> </asp:Button>
<input id="cbxRemember" type="checkbox" class="style2" />
<asp:Label ID="lblRemember" runat="server" Style="font-weight: bold; font-size: 12px;
color: #424242; font-family: Tahoma, Verdana; "
Text="Non mostrare più questo messaggio." CssClass="style3"></asp:Label>
</asp:Panel>
在页面中,它将包含自动生成的面板:
Protected WithEvents MessaggioUtente1 As Global.System.Web.UI.WebControls.Panel
当我点击按钮时,这是执行的代码:
PanelClientEnabled = False //this works and obfuscates background
UserMessage1.Visible = True
但小组没有出现。
任何提示?