Click here to Skip to main content
15,892,059 members
Articles / Web Development / ASP.NET

Mimic the Appearance of Outlook's Sidebar with the MultiView Control

Rate me:
Please Sign up or sign in to vote.
3.94/5 (8 votes)
23 Aug 20067 min read 53K   677   45  
This article describes a simple way to mimic the appearance of Microsoft’s Outlook sidebar within an ASP.NET 2.0 web application. The approach is based upon the use of the existing MultiView control contained in the standard ASP.NET 2.0 toolbox, and does not require much time or effort to implement.
Partial Class CollapsePanel
    Inherits System.Web.UI.UserControl

    Protected Sub btnOpen_Click(ByVal sender As Object, ByVal e As System.Web.UI.ImageClickEventArgs) Handles btnOpen.Click
        MultiView1.ActiveViewIndex = 0
        btnOpen.Visible = False
        btnClose.Visible = True
    End Sub

    Protected Sub btnClose_Click(ByVal sender As Object, ByVal e As System.Web.UI.ImageClickEventArgs) Handles btnClose.Click
        MultiView1.ActiveViewIndex = -1
        btnOpen.Visible = True
        btnClose.Visible = False
    End Sub

End Class

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Software Developer (Senior)
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions