应该怎么做才能解决访问问题?
标记:
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="Header.ascx.cs" Inherits="Version_2.Themes.Anatema.Header" %>
<%= deneme %>
代码:
namespace Version_2.Themes.Anatema
{
public partial class Header : UserControl
{
public string deneme = "asd";
}
}
错误:
当前上下文中不存在名称“deneme”