我想从局部视图更改页面标题。但是下面显示的错误
Using the Title property of Page requires a header control on the page. (e.g. <head runat="server" />).
我的母版页标题部分在这里
<head runat="server">
<title>
<asp:ContentPlaceHolder ID="TitleContent" runat="server" />
下面是我的代码:
function displayPanel(ddl) {
var value = ddl.options[ddl.selectedIndex].Text;
var value2 = ddl.options[ddl.selectedIndex].Text;
if (value = "News") {
document.getElementById("<%=pnlCreateNews.ClientID %>").style.display = "block";