can not create codebehind

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I can't create codebehind asp
The error is
The class file 'webform2.aspx.cs' specified as the codebehind for 'webform2.aspx' could not b
loaded. Make sure that codebehind attribute in the page or control directive properly reference
an existing code behind file
 
Did you "Make sure that codebehind attribute in the page or control
directive properly references an existing code behind file?" If you don't
know, post the @Page reference for your Page.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.
 
1. Check the <% @Page %> directive and ensure there is a
CodeBehind="pageName.aspx.cs" in the line. Also, ensure the class name is
inherited (class name from inside the .aspx.cs file).

2. Ensure you have compiled the app prior to hitting this page.

If this is not the solution, post more info.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

**********************************************************************
Think Outside the Box!
**********************************************************************
 
I can not find the problem. Please hekp me check.


<%@ Page language="c#" Codebehind="WebForm1.aspx.cs" AutoEventWireup="false" Inherits="WebApplication1.WebForm1" %><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" ><html><head><title>WebForm1</title><meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1"><meta name="CODE_LANGUAGE" Content="C#"><meta name=vs_defaultClientScript content="JavaScript"><meta name=vs_targetSchema content="http://schemas.microsoft.com/intellisense/ie5"></head><body MS_POSITIONING="GridLayout"><form id="Form1" method="post" runat="server"></form></body></html>

----- Kevin Spencer wrote: -----

Did you "Make sure that codebehind attribute in the page or control
directive properly references an existing code behind file?" If you don't
know, post the @Page reference for your Page.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

news:[email protected]...
 
I can not find the problem. Please hekp me check

<%@ Page language="c#" Codebehind="WebForm1.aspx.cs" AutoEventWireup="false" Inherits="WebApplication1.WebForm1" %><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" ><html><head><title>WebForm1</title><meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1"><meta name="CODE_LANGUAGE" Content="C#"><meta name=vs_defaultClientScript content="JavaScript"><meta name=vs_targetSchema content="http://schemas.microsoft.com/intellisense/ie5"></head><body MS_POSITIONING="GridLayout"><form id="Form1" method="post" runat="server"></form></body></html


----- Cowboy (Gregory A. Beamer) wrote: ----

1. Check the <% @Page %> directive and ensure there is
CodeBehind="pageName.aspx.cs" in the line. Also, ensure the class name i
inherited (class name from inside the .aspx.cs file)

2. Ensure you have compiled the app prior to hitting this page

If this is not the solution, post more info

--
Gregory A. Beame
MVP; MCP: +I, SE, SD, DB

*********************************************************************
Think Outside the Box
*********************************************************************
news:[email protected]..
 
Are you working with a compiled DLL? What software are you using?

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

The codes said:
I can not find the problem. Please hekp me check.


<%@ Page language="c#" Codebehind="WebForm1.aspx.cs"
AutoEventWireup="false" Inherits="WebApplication1.WebForm1" %><!DOCTYPE HTML
PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
<html><head><title>WebForm1</title><meta name="GENERATOR"
Content="Microsoft Visual Studio .NET 7.1"><meta name="CODE_LANGUAGE"
Content="C#"><meta name=vs_defaultClientScript content="JavaScript"><meta
name=vs_targetSchema
content="http://schemas.microsoft.com/intellisense/ie5"></head><body
MS_POSITIONING="GridLayout"><form id="Form1" method="post"
 
Back
Top