Technically yes, they do mean the same thing, but tone is very important. By using 'not ask' it is less grammatically correct but still accepted by natives, we use it often. It's very straight to the point and can be viewed as a firm or final tone. On the other hand 'didn't ask' is a little more tame and polite and is the more grammatically correct version.