Thanks Charles! The amazon example is exactly what I was looking for!

Justin


-----Original Message-----
From: Charles Mark Carroll [mailto:[EMAIL PROTECTED]
Sent: Monday, July 12, 2004 2:59 PM
To: [EMAIL PROTECTED]
Subject: [AspNetAnyQuestionIsOk] Re: How can a page inherit
multi-classes and multiple files?


Several ways:

(1) the src directive lets one access any number of libraries see
    http://www.learnasp.com/freebook/learn/vb_firstlib.aspx
    or
    http://www.learnasp.com/freebook/learn/cs_firstlib.aspx
    for samples.

http://www.learnasp.com/freebook/learn/ws_amazon.aspx
shows an example of 2 libraries (UtilityBelt and Amazon) being called
from one sample.

(2) If you don't like the source directories compile the .vb or .cs
into .dll files and put in \bin directory and they can be used easily.

In terms of multiple inheritance (which does not sound like what you
want) if you wnat to research that it is too thorny a  design rproblem
for Java and .net to tackle os they achieve the benefits oof multiple
inheritance in a rough way with interfaces you may want to read up on
that.

--- In [EMAIL PROTECTED], "Justin Wong"
<[EMAIL PROTECTED]> wrote:
> Hi:
> 
> I'm wondering how (if it is possble) a page can inherit more than 1
class from the codebehind file, or perhaps even inherits codes from 2
or more separate files?
> 
> For example, Page1.aspx.vb contains codes that are specific to
Page1. There are also a bunch of database related codes in a file
called dbCodes.vb.  I'm wondering how Page1 can access both sets of codes.
> 
> Thanks for your help!
> 
> Justin




 
Yahoo! Groups Links



 



------------------------ Yahoo! Groups Sponsor --------------------~--> 
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/saFolB/TM
--------------------------------------------------------------------~-> 

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 

Reply via email to