Re: Call a function create in dotnet by mr_unreliable
mr_unreliable
Tue Aug 16 16:15:41 CDT 2005
hi Samantha,
In general, there are two ways:
_Way One:_ there is a COM compatability feature to vb.net.
That is, you "register" your dotNet function, and then call it
just like any other actX object/member.
I have never done this, but it is documented well enough.
Search for:
Interoperability
Creating a COM callable wrapper
Creating a "Strong Name"
Installing in "Global Assemble Cache"
Registering (via register assembly utility)
N.B. a "Strong Name" is dotNet-speak for a GUID. And, the
"Global Assembly Cache" is most likely in your (msdos) path.
It could be something like this:
c:\Program Files\Microsoft.NET.FrameworkSDK\Lib
or maybe this:
Set LIB="c:\Program Files\Microsoft.Net\FrameworkSDK\Lib\";%LIB%
_Way Two:_ the other way is to convert your thinking to dotNet
"all-the-way". That is, convert your html page to a webForm.
Then use your function "naturally" in a native dotNet
environment.
Microsoft offers a number of code examples on how to do this,
search for this:
Inherits System.Web.UI.Page
cheers, jw
____________________________________________________________
You got questions? WE GOT ANSWERS!!! ..(but,
no guarantee the answers will be applicable to the questions)
Samantha wrote:
> Hello,
>
> I create a function in dotnet.
>
> How can I call it in a Html page ?