Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
if(Request.QueryString["UserId"] !== WebSecurity.CurrentUserId){ Response.Redirect("~/AdminError"); }
上面的表达有什么问题?请帮助它说
Compiler Error Message: CS1525: Invalid expression term '=='
有一个额外的=标志。!==在 C# 中是不合法的,!=是。
=
!==
!=
编译器将此视为标记序列!(逻辑否定),==并抱怨否定运算符==没有意义。
!
==