First, thanks for the reply Charles. So going on what you wrote, since our "Standard" is to have this look up page be a pop-up, it could not be written as a UserControl, correct? My take on UserCOntrols is they will actually reside on the page. (Correct me if I 'm wrong)
Not sure I totally understand option B. Lastly, after viewing option C examples, it still appears that calling it this way produces results in the same window. As I mentioned, our standard is to have the search window displayed as a popup. So, would it best to just compile the search page in a seperate app, call it via the /include directroy, ensuring I copied the compile DLL either to my app bin directory or making sure it is in the root bin directory. (I hope I made this clear) Once again, thanks for your help/advise. Newsgroups are the best for those of us in the "growing stages" on .net . Geo... --- In [email protected], Charles Carroll <[EMAIL PROTECTED]> wrote: > > 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§ion=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 --------------------~--> Fair play? Video games influencing politics. Click and talk back! http://us.click.yahoo.com/u8TY5A/tzNLAA/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/
