Server.Transfer("...aspx") Object of instance not sent
I have three aspx pages. They are made-up as follows:
1. A login page (with code-beihind class Login.cs)
2. A mailbox page (with code-beihind class mailbox.cs)
3. A message page (with code-beihind class message.cs)
At present the user logs into to a POP server at the login page and when clicking "log-in" is Server.Transfered to the mailbox page which consists of a datagrid displaying all the emails in the user's inbox. The datagrid has a LinkButton for each message and when clicked it should load the message page with the appropriate email displayed. Instead, when clicking any linkButton I get the well-known (Object reference not set to an instance of an object) which refers to the mailbox page NOT the message page, despite the fact that the mailbox page has loaded quite happily and has already successfully carried out the command that the error is referring to!