クエリ文字列パラメータをテストできます。
Request.QueryString["value"].IsEmpty()
Request.QueryString["value"].Isint()
Etc.
しかし、クエリ文字列がまったくないことをどのように回避できますか?つまり、ユーザーが各フォルダーまたはサブフォルダーにアクセスできるようにしたいのです。prevent
the root
http://localhost:16838/auth/provider.cshtml
instead of:
http://localhost:16838/auth/provider.cshtml?providerId=7
クエリ文字列(ページ拡張子まで)を削除するcannot perform runtime binding on a null reference
と、コードの次の部分がまだ実行されているため、エラーが発生します。
redirect
代わりに、私はユーザーに400 BAD REQUEST
:になってもらいたいです。
The request could not be understood by the server due to malformed syntax.
The client SHOULD NOT repeat the request without modifications