Solved

Page inherits _default

Posted on 2011-09-03
5
2,004 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

Have you ever needed to get an ASP script to wait for a while? I have, just to let something else happen. Or in my case, to allow other stuff to happen while I was murdering my MySQL database with an update. The Original Issue This was written…
IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

695 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