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.
我的网站在用户登录后存储用户名(HttpCookie)。我遇到的问题是,当用户使用用户名的小写字母登录时,某些使用此 Cookie 的系统无法成功运行。有没有办法将该 Cookie 的输出更改为全部大写?
在“CookieName”.Value 的末尾添加 .ToUpper()
示例:“CookieName”.Value = Cookie.Identity.Name.ToUpper();