Results 1 to 5 of 5

Thread: VBScript and ASP in Visual Basic

  1. #1

    Thread Starter
    New Member
    Join Date
    Aug 2000
    Posts
    2
    Can an ASP/VBScript project be created in Visual Basic? If so, what type of project should be used?
    -J.R.

  2. #2
    Fanatic Member Ianpbaker's Avatar
    Join Date
    Mar 2000
    Location
    Hastings
    Posts
    696
    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
    Yeah, well I'm gonna build my own lunar space lander! With blackjack aaaaannd Hookers! Actually, forget the space lander, and the blackjack. Ahhhh forget the whole thing!

  3. #3

    Thread Starter
    New Member
    Join Date
    Aug 2000
    Posts
    2
    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?

  4. #4
    Guru Clunietp's Avatar
    Join Date
    Oct 1999
    Location
    USA
    Posts
    1,844
    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

  5. #5
    Fanatic Member Ianpbaker's Avatar
    Join Date
    Mar 2000
    Location
    Hastings
    Posts
    696
    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
    Yeah, well I'm gonna build my own lunar space lander! With blackjack aaaaannd Hookers! Actually, forget the space lander, and the blackjack. Ahhhh forget the whole thing!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width