我使用VB.NET 2010FormsAuthentication未聲明
我的一個行代碼是:
Encoding.UTF8.GetBytes(FormsAuthentication.HashPasswordForStoringInConfigFile(TextBox_AccessCode.Text, "MD5"))
但FormsAuthentication有下劃線且錯誤寫着「FormsAuthentication」未聲明。我已確保System.Web.Security命名空間已導入,但我仍然收到該消息。
任何想法?
謝謝。
什麼項目類型? Asp.Net? – 2011-05-06 05:25:59
只是一個Windows窗體應用程序。 – Brady 2011-05-06 06:25:52