Forums
This topic is locked
Using ASP COM objects as components
15 Apr 2004 20:59:56 Ian H posted:
When I try to add a component to my ASP/VBScript site in Dreamweaver MX 2004 it tells me that components are not supported for this server model and that I have to switch to ASP.NET to do so.I'm still working with classic ASP and writing ActiveX DLLs to store my database logic. It would be nice to "introspect" these objects within Dreamweaver and actually treat them as data sources.
I've read on Macromedia's site that you can create server behaviors for COM objects in DMX 2004 using the JavaScript API.
www.macromedia.com/support/dreamweaver/ts/documents/dwmx_dynamic_faq.htm#com
Before I dive into this, has anyone done this before and succeeded? Is there a Dreamweaver extension that lets you use COM objects in the Application panel for ASP sites?
Edited by - Tarantula on 16 Apr 2004 01:08:23
Replies
Replied 16 Apr 2004 01:06:49
16 Apr 2004 01:06:49 Ian H replied:
Since I posted this, I've read up on extending Dreamweaver using custom server behaviors and made some progress towards solving my ASP COM object problem.
There's an interesting document on Macromedia's site about extending Dreamweaver. It talks about encapsulation strategies, such as JavaBeans and CFC. I was able to write my own server behaviors for my COM object using the built-in "server behavior builder" tool in DMX 2004.
www.macromedia.com/support/dreamweaver/extend.html
I've managed to replace more than 300 lines of data access code in one of my ASP pages to about 5 lines of code thanks to COM, DMX 2004 and my new server behavior.
Happy coding!
Edited by - Tarantula on 16 Apr 2004 01:10:09
There's an interesting document on Macromedia's site about extending Dreamweaver. It talks about encapsulation strategies, such as JavaBeans and CFC. I was able to write my own server behaviors for my COM object using the built-in "server behavior builder" tool in DMX 2004.
www.macromedia.com/support/dreamweaver/extend.html
I've managed to replace more than 300 lines of data access code in one of my ASP pages to about 5 lines of code thanks to COM, DMX 2004 and my new server behavior.
Happy coding!
Edited by - Tarantula on 16 Apr 2004 01:10:09