Wrox Programmer Forums
|
Classic ASP Professional For advanced coder questions in ASP 3. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 24th, 2006, 12:37 AM
Registered User
 
Join Date: Nov 2006
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default Inter Application Communication through Components

Hi,
I need to ask how can I develop web pages in ASP.NET from one APPLICATION and use them as COMPONENTS and call them or directly use them from some other APPLICATION.

 
Old November 30th, 2006, 12:26 AM
Wrox Author
 
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

Well first this is the wrong thread. You should be posting in the .NET forums. Secondly, .NET does not preserve any session information across application domains. In so far as components you have 2 options.

1)Create a Class library with all the functionality, compile it and you now have a DLL that you can move from application to application. This is a more difficult way if you intend for your component to handle the interface as you will have to write functions to output HTML and such. If you are just using it for functionality, this is the best way. (This also requires a certain knowledge of your keywords, private, public, static, etc)

2)User Controls. Like the first option I use these extenstively because they are, essentially, components. I code them once and then can drag and drop them onto pages when I need to reuse their functionality.

I should point out that in Visual Studio you can add a reference to any component you wish so a Component in application directory A can be reference by an application in directory B but, behind the scenes what happens is, Visual Studio copies that reference to your bin directory of your current web app.

hth

-------------------------
I will only tell you how to do it, not do it for you.
Unless, of course, you want to hire me to do work for you.

^^Thats my signature





Similar Threads
Thread Thread Starter Forum Replies Last Post
Inter Application Communication through Components mohitjaitly Classic ASP Components 0 November 24th, 2006 12:36 AM
Inter Application Communication through Components mohitjaitly Visual Studio 2005 0 November 24th, 2006 12:34 AM
Inter Application Communication through Components mohitjaitly C# 2005 0 November 23rd, 2006 10:36 AM
Inter Application Communication through Components mohitjaitly ASP.NET 2.0 Professional 0 November 23rd, 2006 10:35 AM
Inter Application Communication through Components mohitjaitly General .NET 0 November 23rd, 2006 10:34 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.