Do as described here:
How can I turn off the screen on the macbook when I have an external monitor set up?How can I turn off the screen on the macbook when I have an external monitor set up?
Then open the laptop.
In Snow Leopard this will do what you are asking for. The behaviour may have changed under Lion though. Which OS version are you using?