Two ideas:
1. If you hide controls with Visible=false, they won't come back in
postbacks.
2. If you add controls dynamically, you need to do it on each postback.
--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
"kevin" <> wrote in message
news:6E9C9DB2-EB0E-490F-928F-...
> using VS2005
>
> My masterpage has two panels and two hyperlinks. The initial content aspx
> page is blank.
>
> The page_load event of the masterpage hides one of the panels based on
> SESSION variables.
>
> When I press one particular link all controls are null, thus throwing an
> error. The other hyperlink behaves normally.
>
> The hyperlinks are both declarative with the url being hardcoded.
>
> Any ideas about where I should be looking?
>
> Thanks
>
> --
> kevin...