If you look at the TOP MOST topic .. in the forum ..

Announcement: Before you post....

It has a section pertaining to Posting code......

Including Code
If you include listings within your messages, please use the button or code tags from within the message editors. This will format your code using a non-proportional font and it will preserve spacing. Most importantly, will make your code easier to read.
Rerturning to your Problem..

Generally i prefer to Hide panels via Page load code...
Code:
Protected Sub Page_load (ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
    If {condition} then
        Updatepanel1.Visible = False
    End If
    .............