Includes are rarely if ever used in .net because better mechanisms exist.
The ways to re-use code are:
a. make the page into a UserControl i.e.

http://learnasp.com/freebook/learn/?caller=utilitybelt&section=User+Controls
b. call the page directly via it's class name and instantiate it and call
it's methods
c. Common code can be put in a DLL in the \bin directory or compiled using
the SRC directive
   http://learnasp.com/freebook/learn/cs_firstlib.aspx (C#)
   http://learnasp.com/freebook/learn/vb_firstlib.aspx (VB.net)


On 11/28/05, glovitz <[EMAIL PROTECTED]> wrote:
>
>  Although not brand new to ASP.NET, new enough to need alittle
> confirmation on a few things.
>
> I have created an asp.net page that is called as a pop-up page that
> allows a user to search for employees via last name.  When selected,
> it returns the user name selected.  Now I use this page in several
> web apps but have always just copied it into my current project
> directory and did an "Add existing item".
>
> Question is this:  Since there is code behind on this page, if I
> wanted to just reference this page via code using an "include"
> directory ("/include/employee_Serach.aspx"), avoiding having to copy
> to my working directory each time, would I need to create this form
> on it's own (thus creating a dll) and then just referenece the page
> but include the DLL in the bin directory of my current app?
>
> (I hope that make sense)  Thanks to any for all help on this.
>


[Non-text portions of this message have been removed]



------------------------ Yahoo! Groups Sponsor --------------------~--> 
Get fast access to your favorite Yahoo! Groups. Make Yahoo! your home page
http://us.click.yahoo.com/dpRU5A/wUILAA/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