If there is no Runat = "Server" in the HTML file, the VS does not automatically add the page Code Behind in the page directly from HTML to ASPX. To check if there is form runat = "server" in the file.