Click to See Complete Forum and Search --> : VBScript and ASP in Visual Basic
JohnnyRocket
Aug 18th, 2000, 01:43 AM
Can an ASP/VBScript project be created in Visual Basic? If so, what type of project should be used?
-J.R.
Ianpbaker
Aug 18th, 2000, 02:28 AM
Hi JohnnyRocket
The way use this is to make a vb com dll with all your procedures and functions that you need for your ASP pages and then reference the dll in your pages to do all the hard work. There are several advantages over scripting doing iy this way instead of just using ASP scripting. One is process power - If your ASP page is doing a lot of work, Scripting will eat up lots of process and memory where as a dll doesn't. secondly speed - A dll can leave scripting at the starting blocks.
My advice is if you are doing relative small pages, carry on using scripting but if you have very large pages, move it across to vb dll's. And If you combine the dll's with MTS (Microsoft Transaction Server) you have one very powerful web application.
Hope this helps
Ian
JohnnyRocket
Aug 18th, 2000, 01:27 PM
Thanks for the info. I was using notepad before and I was just looking for something that would make formatting easier and have color-coding so it could be understood better. The dll idea sounds nice though and I think I will try it.
How can I reference a dll in VBScript/ASP?
Clunietp
Aug 20th, 2000, 12:02 PM
If you are just looking for a nice HTML/VBScript/JavaScript editor, use Visual Interdev.
VB DLLs (or VB6 webclasses) are not appropriate in all situations and can be tricky to maintain and deploy. If you just want a good editor, similar to the VB IDE, use Visual Interdev
Ianpbaker
Aug 21st, 2000, 03:05 AM
Hi JohnnyRocket
What Clunietp is true that it is not alway's good to use the dll's all the time but if your web app is doing very heavy data retrieval all the time, I would recomend it. to reference dll's in ASP use ther Server.CreateObject method.
Eg. Set MyObj = Server.CreateObject("dllprojectname.Myclass").
Hope this helps
Ian
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.