我在C#代码里写if (Request("theme") == "BULE")
{
RESPONSE.WRITE("蓝色");
}
时提示"if (Request("theme") == "BULE")" 出错:“System.Web.UI.Page.Request”是“属性”,但此处被当做“方法”来使用
但我改用VB写就正确:
if Request("theme") = "BULE" THEN
RESPONSE.WRITE("蓝色")
请问大家怎么回事呢,C#的代码错在哪呢
{
RESPONSE.WRITE("蓝色");
}
时提示"if (Request("theme") == "BULE")" 出错:“System.Web.UI.Page.Request”是“属性”,但此处被当做“方法”来使用
但我改用VB写就正确:
if Request("theme") = "BULE" THEN
RESPONSE.WRITE("蓝色")
请问大家怎么回事呢,C#的代码错在哪呢
c# Request["theme"]
c# Request["theme"]
vb和c#里面写法不同