Για το NullReferenceException μάλλον η Page.PreviousPage.FindControl("TextBox1") επιστρέφει null άρα το Cast σε TextBox χτυπάει
[Edit ή το Page.PreviousPage ειναι null αν περνάς το if με το χέρι κάτα το debugging]
Νάσος
"Success is the ability to go from one failure to another with no loss of enthusiasm."
Winston Churchill
"Quality means doing it right when no one is looking."
Henry Ford