I have spent a lot of time sifting through bad answers to this question. Every answer I see is one of the following:
- Uses web.config (this is retired in asp.net core, and it seems like there ought to be a method other than hacking in old features)
- Suggests turning off javascript. The problem is, I need javascript running--I just don't want the client-side validation.
- Offers code that doesn't compile and gives no context of where the code should go or how to make it so it will compile.
Am I trying to do something unsupported? This seems like it would be a standard part application testing.