如下图
我尝试着用MultiView 控件,不知道为什么不行
<asp:MultiView ID="MultiView1" runat="server" ActiveViewIndex="0">
<asp:View ID="Tab2" runat="server">
<table cellpadding="0" cellspacing="0" style="height: 390px; width: 472px">
<tr valign="top">
<td class="TabArea" style="width: 600px">
<br />
<br />
<uc5:C_LeftCenterNewsList_ZL ID="C_LeftCenterNewsList_ZL3" runat="server"
grid_Width="366" LineLength="40" NewsCount="10" NewsSquare_Name="测试1" />//自定义的控件不能显示,控件里面的Gridview要连接oracle数据。死活显示一空白,这是为什么 </td>
</tr>
</table>
</asp:View>
<asp:View ID="Tab3" runat="server">
<table cellpadding="0" cellspacing="0" style="height: 330px; width: 470px">
<tr valign="top">
<td class="TabArea" style="width: 600px">
<br />
<br />
静态文本测试能显示 </td>
</tr>
</table>
</asp:View>
</asp:MultiView> protected void Menu1_MenuItemClick(object sender, MenuEventArgs e)
{
MultiView1.ActiveViewIndex = Convert.ToInt32(e.Item.Value);
for (int i = 0; i < Menu2.Items.Count - 1; i++)
{
}
}
我尝试着用MultiView 控件,不知道为什么不行
<asp:MultiView ID="MultiView1" runat="server" ActiveViewIndex="0">
<asp:View ID="Tab2" runat="server">
<table cellpadding="0" cellspacing="0" style="height: 390px; width: 472px">
<tr valign="top">
<td class="TabArea" style="width: 600px">
<br />
<br />
<uc5:C_LeftCenterNewsList_ZL ID="C_LeftCenterNewsList_ZL3" runat="server"
grid_Width="366" LineLength="40" NewsCount="10" NewsSquare_Name="测试1" />//自定义的控件不能显示,控件里面的Gridview要连接oracle数据。死活显示一空白,这是为什么 </td>
</tr>
</table>
</asp:View>
<asp:View ID="Tab3" runat="server">
<table cellpadding="0" cellspacing="0" style="height: 330px; width: 470px">
<tr valign="top">
<td class="TabArea" style="width: 600px">
<br />
<br />
静态文本测试能显示 </td>
</tr>
</table>
</asp:View>
</asp:MultiView> protected void Menu1_MenuItemClick(object sender, MenuEventArgs e)
{
MultiView1.ActiveViewIndex = Convert.ToInt32(e.Item.Value);
for (int i = 0; i < Menu2.Items.Count - 1; i++)
{
}
}
这里面有n多js效果
jquery有一个这样的插件可以找一下
或multiview
<a href="#" onmouseover="MM_showHideLayers('div1','','hide','div2','','show','div3','','hide')">
</a></td>
<a href="#" onmouseover="MM_showHideLayers('div1','','hide','div2','','hide','div3','','show')"></a></td>