Translation of asp code to asp.net 3.5

Last post 07-03-2009 11:08 AM by Mr^B. 1 replies.

Sort Posts:

  • Translation of asp code to asp.net 3.5

    06-28-2009, 3:07 AM
    • Member
      point Member
    • Technology
    • Member since 06-28-2009, 7:02 AM
    • Posts 1

    Hello all,

    Can anyone translate the following global.asp file to asp.net 3.5?

    I understand that the file should be named global.asax, but what about the code?

    <OBJECT RUNAT="Server" SCOPE="Application" ID="TcPLC" PROGID="TcScript.TcScriptSync"> </OBJECT>
    <SCRIPT LANGUAGE="VBScript" RUNAT="Server">
    Sub Application_OnStart()
     Call TcPLC.ConnectTo("", 801)
    End Sub
    </SCRIPT>

     

    Thank you very much in advance!
     

  • Re: Translation of asp code to asp.net 3.5

    07-03-2009, 11:08 AM
    • Star
      12,112 point Star
    • Mr^B
    • Member since 02-12-2006, 6:38 AM
    • Posts 2,151

    Hi,

    It looks like you're making a call to an external COM component.  You'll need to register the com component as a reference in your project/website and then access it using the wrapper class that .net creates.

    For more information, read this:

    http://www.codersource.net/csharp_com_interop.html

    MCSD.Net
Page 1 of 1 (2 items)