I've been wrestling with this all day. Opening up an old web application trying to add a method to my page (default.aspx) and have my code behind default.aspx.cs which is referenced in the page:
<%@ Page Title="Home Page" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="HoursWorked._Default" %>
<%@ Import Namespace="HoursWorked" %>
Some of the symptoms I'm having are intellisense not "seeing" any of the controls from the page, when I double click the button control in the Designer, it creates the following:
<script runat="server">
protected void ButtonShowUnderEight_Click(object sender, EventArgs e)
{
}
</script>
Code behind starts off as (after all of my using statements):
namespace HoursWorked
{
public partial class _Default : Page
{
Any ideas?
Thanks, Tim
<asp:Button ID="ButtonShowUnderEight" runat="server" Text="Show Under 8 Off" OnClick="ButtonShowUnderEight_Click" />