CS1061: “System.Web.UI.HtmlControls.HtmlForm”不包含“Text”的定义,并且找不到可接受类型为 5
CS1061:“System.Web.UI.HtmlControls.HtmlForm”不包含“Text”的定义,并且找不到可接受类型为“System.Web.UI.Ht...
CS1061: “System.Web.UI.HtmlControls.HtmlForm”不包含“Text”的定义,并且找不到可接受类型为“System.Web.UI.HtmlControls.HtmlForm”的第一个参数的扩展方法“Text”(是否缺少 using 指令或程序集引用?)
using System;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
Label1.Text = "";
}
protected void Button1_Click(object sender, EventArgs e)
{
Label1.Text = "Hello World";
}
} 展开
using System;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
Label1.Text = "";
}
protected void Button1_Click(object sender, EventArgs e)
{
Label1.Text = "Hello World";
}
} 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询