Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

code-behind VS.Net problem!

Status
Not open for further replies.

sthmpsn1

MIS
Sep 26, 2001
456
US
I am getting the following error when trying to open a page in Visual Studio.net

The class file 'index.aspx.cs' specified as the codebehind file for 'agri.aspx' could not be loaded.

How can I fix this. the file does exist. here is how I specify it.



<%@ Page language=&quot;c#&quot; Codebehind=&quot;index.aspx.cs&quot; AutoEventWireup=&quot;false&quot; Inherits=&quot;vsam1st.index&quot; %>
 
just include it in your project. In your solution explorer click on the show all files button at the top of the solution explorer pane. This should show you that index.aspx.cs file sort of grayed out... right click and say include in project. As long as the index.aspx and index.aspx.cs are in the same directory they will associate themselves on their own. Hope this helps.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top