Hi Sumeet,
You can't Show Hide View Only you can set the ActiveViewIndex property.
Check this example. Now please take its reference and correct your code.
HTML
<table width="600">
<tr>
<td align="center" valign="top">
<asp:Menu ID="Menu1" StaticMenuItemStyle-CssClass="tab" StaticSelectedStyle-CssClass="selectedtab"
CssClass="tabs" runat="server" Orientation="Horizontal" StaticSubMenuIndent="16px" OnMenuItemClick="Menu1_MenuItemClick">
<Items>
<asp:MenuItem Text="Tab 1" Value="0" Selected="true"></asp:MenuItem>
<asp:MenuItem Text="Tab 2" Value="1"></asp:MenuItem>
<asp:MenuItem Text="Tab 3" Value="2"></asp:MenuItem>
<asp:MenuItem Text="Tab 4" Value="3"></asp:MenuItem>
<asp:MenuItem Text="Tab 5" Value="4"></asp:MenuItem>
<asp:MenuItem Text="Tab 6" Value="5"></asp:MenuItem>
<asp:MenuItem Text="Tab 7" Value="6"></asp:MenuItem>
<asp:MenuItem Text="Tab 8" Value="7"></asp:MenuItem>
</Items>
</asp:Menu>
<hr />
<asp:MultiView ID="MultiView1" runat="server" ActiveViewIndex="0">
<asp:View ID="View1" runat="server">
Tab 1
</asp:View>
<asp:View ID="View2" runat="server">
Tab 2
</asp:View>
<asp:View ID="View3" runat="server">
Tab 3
</asp:View>
<asp:View ID="View4" runat="server">
Tab 4
</asp:View>
<asp:View ID="View5" runat="server">
Tab 5
</asp:View>
<asp:View ID="View6" runat="server">
Tab 6
</asp:View>
<asp:View ID="View7" runat="server">
Tab 7
</asp:View>
<asp:View ID="View8" runat="server">
Tab 8
</asp:View>
</asp:MultiView>
</td>
</tr>
</table>
Code
C#
protected void Menu1_MenuItemClick(object sender, MenuEventArgs e)
{
int i = Convert.ToInt32(e.Item.Value);
if (i <= 5)
{
MultiView1.ActiveViewIndex = i;
}
}
VB.Net
Protected Sub Menu1_MenuItemClick(sender As Object, e As MenuEventArgs) Handles Menu1.MenuItemClick
Dim i As Integer = Convert.ToInt32(e.Item.Value)
If i <= 5 Then
MultiView1.ActiveViewIndex = i
End If
End Sub