我一直收到以下错误:
ASPNET:确保在此代码文件中定义的类与“继承”属性相匹配,并扩展正确的基类(例如,页面或UserControl)。
它告诉我错误如下: Login.aspx.cs行:1
Line 1: using System;
Line 2: using Entities;
Line 3: namespace Pages.Account
这里是我的login.aspx文件的代码
<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" Auto
下面是我的Default.aspx页面(删除了不必要的细节):
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<div id="login">
<!-- a bunch of markup has been removed, so this html will appear wrong and not valid, but it actually is
我正在尝试清除一些不再被我的MVC3 ASP.NET C#应用程序使用的旧DLL。我以前有:
using mySpecialDll;
键入代码,我已经删除了这些行或将它们注释掉。我已经重建了应用程序和解决方案。我已经把这些多余的东西从垃圾箱里拿出来了。但是,当我运行应用程序时,我会得到一个编译错误,临时ASP.NET文件中的编译页面显示在旧的未注释的“使用mySpecialDLL;”行中。我尝试删除临时ASP.NET文件根文件夹中的所有文件夹,但无法使用。
另外,应用程序没有引用mySpecialDll。
它一定是从某个地方引用的,但我对此感到困惑。
那么,如何阻止旧代码使用旧DLL被使用和引
我是asp.net新手,我在.aspx页面中有上传文件控件,它工作得很好。但是,如果用户上传了新文件,我想从目录中删除以前上传的文件。
这是我的代码隐藏文件的抽象代码:
public partial class mypage : System.Web.UI.Page
{
//I cannot access upload label control value here
string lblValue = lbluploadFile.Text //this global variable doesn't work
protected void Page_Load(o