IMO, the O'Reilly book _JavaScript, The Definitive Guide_ is the only JavaScript book anyone would need.
The O'Reilly book _ASP In a Nutshell_ is pretty good, though ASP is more of a gestalt than an actual thing, so it's probably just as good to pick up the bits and pieces.
Are you sure you want to write your CGI's in C/C++? That's what I thought at first, a few years ago, but Perl is orders of magnitude easier. Anyway, there isn't really any big trick to doing CGI in C, except that youget the input in different (potentially OS-specific) ways based on whether the form is submitted using "get" or "post." However, it's such a pain to deal with strings in C that Perl is much better.