469,352 Members | 1,668 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,352 developers. It's quick & easy.

Class Issue in ASP.Net

123 100+
I get this error when trying to execute my asp.net page which is going to pull the director of a network drive:

'WebApplication1._Default' is not allowed here because it does not extend class 'System.Web.UI.Page'.

Here are these lines that are highlighted:

<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="Default.aspx.vb" Inherits="WebApplication1._Default" %>
Line 2:
Line 3: <%@ Register tagprefix="fileManager" TagName ="footer" src="footer.ascx"%>

Any ideas?
Jul 23 '07 #1
5 8926
jhardman
3,406 Expert 2GB
I get this error when trying to execute my asp.net page which is going to pull the director of a network drive:

'WebApplication1._Default' is not allowed here because it does not extend class 'System.Web.UI.Page'.

Here are these lines that are highlighted:

<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="Default.aspx.vb" Inherits="WebApplication1._Default" %>
Line 2:
Line 3: <%@ Register tagprefix="fileManager" TagName ="footer" src="footer.ascx"%>

Any ideas?
My first idea is to post your question in the right forum. Please see the sticky at the top.

Jared
Jul 23 '07 #2
TRScheel
638 Expert 512MB
My only guess is that your version of _Default does not inherit Page
Jul 23 '07 #3
Newbie19
123 100+
Thanks for the help and sorry again about posting it in the wrong forum, I was at working at the time working on this program. I figured out the issue, it was exactly that issue with default not inheriting.

Thanks again, and I'll be more careful in the future on posting.
Jul 24 '07 #4
jhardman
3,406 Expert 2GB
Thanks again, and I'll be more careful in the future on posting.
I've just been trying to crack-down on it lately. we get all these posts in ASP asking about gridviews and autopostback and all of us ASP experts just scratch our heads and usually leave them unanswered. Seriously, what is an autopostback? It certainly has nothing to do with ASP.

Jared
Jul 24 '07 #5
Newbie19
123 100+
true, I see where you are coming from. I'll be more careful next time, thanks.
Jul 24 '07 #6

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

5 posts views Thread by Eric Lilja | last post: by
5 posts views Thread by Nick Flandry | last post: by
7 posts views Thread by mathieu | last post: by
2 posts views Thread by TEK | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.