InnerText 怎么用
<head runat="server">
<title id="bao" runat="server" >无标题页</title>
<script runat ="server" >
protected void Page_Load(object sender, EventArgs e)
{
// bao.Text = "改了";
bao.InnerText = "改了";
}
</script>
</head>
<body>
<form id="form1" runat="server">
<div>
</div>
</form>
</body>
上面是代码,下面是错误,怎么改??谢谢!
错误 2 “System.Web.UI.HtmlControls.HtmlTitle”不包含“InnerText”的定义,并且找不到可接受类型为“System.Web.UI.HtmlControls.HtmlTitle”的第一个参数的扩展方法“InnerText”(是否缺少 using 指令或程序集引用?) C:\Users\Administrator\Desktop\ASP.NET\Default2.aspx 12 17 C:\...\ASP.NET\
------解决方案--------------------
Page.Title="改了"就可以了