• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2095
  • Last Modified:

Page inherits _default

Hi,

I am new to ASP.NET and have what is probably a basic question.

I have an ASP.NET application that looks like it inherits the file ._default.  However, this file doesn't exist.  Is this looking at some other file?

It appears that the codebehind page is not being accessed, since I change things there and it seems to make no difference.

Thanks,
Bob
0
Bob_pyle
Asked:
Bob_pyle
  • 2
  • 2
1 Solution
 
junkymail1Commented:
Did you make sure your apsx page is pointing to the correct codebehind page?  You need to have the aspx point to the page like this:

<%@ Page language="c#" Codebehind="CodeBehind.cs" Inherits="ClassName.CodeBehind" %>
0
 
Gary DavisDir Internet SvcsCommented:
Perhaps you copy/pasted Default.aspx (including the .cs) and renamed it and the inherits in the copy is still referencing the code-behind of the original. When you copy/paste a file or refactor rename the class, you also have to go into the code-infront page and adjust the @Page to inherit the correct class.

Gary Davis
Webguild
0
 
Bob_pyleAuthor Commented:
Being new to ASP, still geting used to things.

Thank you for all the help and guidance.

Bob
0
 
Bob_pyleAuthor Commented:
Yes, thinking it is my attempt to get rid of the defualt page.  I don't like the index.html either, but probably caused my self some greif.

Thanks,
Bob
0
 
Gary DavisDir Internet SvcsCommented:
If not needed, you can get rid of Index.html.

Gary
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now