None of my “code behind” code is being called

前端 未结 9 1913
予麋鹿
予麋鹿 2021-02-08 00:40

I have just created an ASP.NET C# project and a virtual directory for it in IIS in (as far as I know) the normal way, but I am seeing very strange behavior that I have never see

9条回答
  •  死守一世寂寞
    2021-02-08 01:18

    Remove the following page directive from your HTML view, build the website and try to load the page in the browser.

    <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="Drawings2.WebForm1" %>
    

提交回复
热议问题