how to link aspx.cs with aspx in vs.net
-
I was writing a small asp.net application with vs.net, after I finish the aspx file, I double clicked a button in aspx file, it poped out the aspx.cs file. I built the project and it functioned very well, but in solution Explorer I can not find the aspx.cs file, I know it should link to aspx file, can someone please give me some hints, thanks in advance.
-
I was writing a small asp.net application with vs.net, after I finish the aspx file, I double clicked a button in aspx file, it poped out the aspx.cs file. I built the project and it functioned very well, but in solution Explorer I can not find the aspx.cs file, I know it should link to aspx file, can someone please give me some hints, thanks in advance.
-
Thank you. do you mean the page directive in aspx file html code, it already specify the c# file, as below <%@ Page language="c#" Codebehind="login.aspx.cs" AutoEventWireup="false" Inherits="dsscopy.login" %> but its just not in the Solution Explorer, which is annoying when i try to open the c# file cause its not there.
-
Thank you. do you mean the page directive in aspx file html code, it already specify the c# file, as below <%@ Page language="c#" Codebehind="login.aspx.cs" AutoEventWireup="false" Inherits="dsscopy.login" %> but its just not in the Solution Explorer, which is annoying when i try to open the c# file cause its not there.
-
Are you using VS 2005 or 2003? Can you try to select the Show All Files menu item from the main menu Project and see if the source file is displayed?