Solved

Page inherits _default

Posted on 2011-09-03
5
1,925 Views
Last Modified: 2012-05-12
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
Comment
Question by:Bob_pyle
  • 2
  • 2
5 Comments
 
LVL 2

Expert Comment

by:junkymail1
ID: 36477752
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
 
LVL 18

Accepted Solution

by:
Gary Davis earned 250 total points
ID: 36477757
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
 

Author Closing Comment

by:Bob_pyle
ID: 36479263
Being new to ASP, still geting used to things.

Thank you for all the help and guidance.

Bob
0
 

Author Comment

by:Bob_pyle
ID: 36479265
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
 
LVL 18

Expert Comment

by:Gary Davis
ID: 36480676
If not needed, you can get rid of Index.html.

Gary
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I recently went through the process of creating a Calendar Control of events with the basis of using a database to keep track of the dates that are selectable, one requirement was to have the selected date pop-up in a simple lightbox.  At first this…
A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now