Solved

Page inherits _default

Posted on 2011-09-03
5
1,911 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

747 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

9 Experts available now in Live!

Get 1:1 Help Now