Need help with this error ::Invalid token '=' in class, struct, or interface member declaration
<p>trying to hide a panel of Master Page in my content page using the following code</p>

<pre><code> Panel p = this.Master.FindControl("panel1") as Panel;  
 p.Visible = false; //Error is showing on this line
</code></pre>

<p>Why this error ? Plz help..thnx</p>
