Last person to be elected president that served in the Senate was LBJ in 64 I believe. Kennedy was elected in 60. Here's a link you may find interesting regarding Senators being elected president:
A Senator Becomes President
As far as "inside the beltway" types, maybe Bush 41 would be considered one. Before that maybe Nixon, maybe not as he had been out of Washington for awhile.