if (allWords.ToUpper == "true")
改成
if (allWords.ToUpper() == "true")

解决方案 »

  1.   

    貌似 allWords.ToLower() 比较合理
      

  2.   

    allWords.ToUpper() == "true"结果永远为 false
      

  3.   

    运算符“+”无法应用于“string”和“方法组”类型的操作数
     Application["content"] = TextBox1.Text;
            TextBox2.Text=TextBox2.Text + "\n" + Label2.Text +"说: " + Application["content"].ToString;
        
      

  4.   

    allWords.ToUpper()   ==   "true") 
      

  5.   

    错了,分析的不对实际上应该 if ("true".equals(allWords.ToUpper)) 字符串比较要用equals,这是字符串的值比较,==是字符串的地址比较