[求助]关于.NET的MD5代码问题
请客位大侠帮忙看看为什么会出这样的错
public string EncryptPassword(string PasswordString,string PasswordFormat)
{ string EncryptPassword="";
if (PasswordFormat="SHA1")
{
EncryptPassword=FormsAuthentication.HashPasswordForStoringInConfigFile(PasswordString ,"SHA1");
Response.Write(EncryptPassword);
}
else if (PasswordFormat="MD5")
{
EncryptPassword=FormsAuthentication.HashPasswordForStoringInConfigFile(PasswordString ,"MD5");
Response.Write(EncryptPassword);
}
else
{
EncryptPassword="";
}
程序说PasswordFormat="SHA1"!和PasswordFormat="MD5",隐式转换为BOOL是为什么啊这里我没有定义BOOL型喔