Someone else made a thread on the texture, but for the door, make it into a func_wall, and target it with your switch. It should turn it off and on when used.
Check their keys. Ctrl-k linking is quick and easy, but you select them in the wrong order, and it links them together the wrong way round. The switch should have a 'target' key set to the same as the door's 'targetname' key.