[英]visual studio namespace in code behind file
From some time whenever i download the webpages example from the Internet.In code behind file of .aspx
page there is namespace mention before public partial class
in some example.But it never worked for me. 从某个时候起,每当我从Internet下载网页示例时,在
.aspx
页面文件后面的代码中,在某些示例中的public partial class
之前都提到了名称空间,但这对我没有用。 I'm using the vs2010 is this format used in previous version of Visual site and why vs2010 not support them. 我正在使用vs2010是Visual早期版本中使用的这种格式,为什么vs2010不支持它们。
Like in code behind file 就像在文件后面的代码中一样
namespace AutoCompleteTextBox
{
public partial class AutoCompleteDemp : System.Web.UI.Page
Make sure your .aspx
's <@page>
directive has a matching Namespace: 确保您的
.aspx
的<@page>
指令具有匹配的命名空间:
<%@ Page Title="Contact" Language="C#" AutoEventWireup="true"
CodeBehind="AutoCompleteDemp.aspx.cs" Inherits="AutoCompleteTextBox.AutoCompleteDemp " %>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.