Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > ASPX Inheritance

Reply
Thread Tools

ASPX Inheritance

 
 
Louis Somers
Guest
Posts: n/a
 
      01-07-2008
Hi,

I tried to inherit from my usercontrols and got the NullReference errors everyone else seems to be
getting who tried the same. After reading some of the articles and newsgroups I'm a bit confused.
Apparently, the ASPX part inherits from the code behind part instead of being the other half of the
partial class.

I somewhat accidentally found the other half of the code-behind class in
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temp orary ASP.NET Files\...\App_Web_XXX.vb. (I added
an abstract (MustOverride) method to the class which caused a "not declared MustInherit" compiler
error, double click it and the generated code appears).

After googling around I could not find a definite answer how to go about this: What is the best
technical way to utilize inheritance in web application architecture?

- Should we copy everything in the ASPX part to the ASPX part of the descendant controls (yuk)?
- Is it possible to inherit directly from the ASPX part instead of the code-behind part?
- Are web developers supposed to generate procedural spaghetti and forget about OOP?

Cheers,
Louis
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Interface inheritance vs Implementation inheritance. Daniel Pitts Java 27 02-27-2008 01:37 AM
Private Inheritance and Publice Inheritance karthikbalaguru C++ 9 09-10-2007 01:05 PM
adding main.aspx.vb & main.aspx.resx under aspx John M ASP .Net 1 05-29-2005 09:27 PM
mul. inheritance & overloading operator new/delete solved by virtual base inheritance? cppsks C++ 0 10-27-2004 07:49 PM
Private access modifier and Inheritance (Inheritance implementation in Java) maxw_cc Java 1 12-21-2003 11:38 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57