标识符加速问题 [英] Identifier expedted problem
问题描述
大家好,我开始一个新项目,有些事情使我发疯.问题是,当我将一个工具放到我的aspx文件中并保存它与我相关的designer.aspx.cs文件的标识符时,即命名空间丢失,我尝试了一切,但从未成功=(请帮助我,我无法取得任何进展,并且时间到了.
我想用我的代码解释我的问题;
我正在尝试创建Doctors.aspx文件;
Hi everybody, i jus started a new project and something makes me crazy. The problem is that when i put a tool my aspx file and save it my related designer.aspx.cs file''s identifier, namely namespace getting lost i tried everything and never succeeded =( pls help me i can not make any progress and time is goin on.
I wanna explain my problem with my code;
i am trying to create Doctors.aspx file;
<%@ Page Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeBehind="Doctors.aspx.cs" %>
<%@ Register Assembly="DevExpress.Web.ASPxEditors.v10.1, Version=10.1.5.0, Culture=neutral, PublicKeyToken=940cfcde86f32efd"
Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dx" %>
<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
</asp:Content>
当我做某事时.在我的Doctors.aspx代码上并保存它;
when i put sth. on my Doctors.aspx code and save it;
<%@ Page Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeBehind="Doctors.aspx.cs" %>
<%@ Register Assembly="DevExpress.Web.ASPxEditors.v10.1, Version=10.1.5.0, Culture=neutral, PublicKeyToken=940cfcde86f32efd"
Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dx" %>
<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
<asp:View ID="placeView" runat="server">
</asp:View>
</asp:Content>
我的Doctors.designers.aspx.cs文件的命名空间丢失了=(如:
my Doctors.designers.aspx.cs file''s namespace got lost =( like:
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
(There should be a namespace)
public partial class (There should be a identifier) {
/// <summary>
/// placeView control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.View placeView;
}
任何答案都将被接受.谢谢大家...
Any answer will greatfully accepted. Thanks for everyone...
推荐答案
<%@ Page Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeBehind="Doctors.aspx.cs" %>
<%@ Register Assembly="DevExpress.Web.ASPxEditors.v10.1, Version=10.1.5.0, Culture=neutral, PublicKeyToken=940cfcde86f32efd"
Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dx" %>
<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
//i'm not sure about this one but i think that a view must be contained in a multiview control, try adding a multiview first and then inside the multiview add a view control.
<asp:View ID="placeView" runat="server">
</asp:View>
</asp:Content>
这篇关于标识符加速问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!