aspx页面不能调用cs中的变量
cs中:
public partial class NewList : System.Web.UI.Page
{
public string PageTitle;
aspx中:
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title><%=PageTitle%></title>
========================================
但编译通不过
错误 3 当前上下文中不存在名称“PageTitle”
好怪啊,代码应该没有错啊!
public partial class NewList : System.Web.UI.Page
{
public string PageTitle;
aspx中:
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title><%=PageTitle%></title>
========================================
但编译通不过
错误 3 当前上下文中不存在名称“PageTitle”
好怪啊,代码应该没有错啊!
...全文


