Re: calling .dll from HTML
- From: "CLEAR-RCIC" <CLEARRCIC@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 12 May 2005 07:18:06 -0700
Patrice,
Thanks for responding. I understand you can take an HTML page and change
the extention to .aspx and host this page on a webserver running the .Net
framework. This is sometimes called in-line or code-beside programming and
may appear as follows:
<%@ Page Language="VB" %>
<script runat="server">
Sub Page_Load(sender As Object, e As EventArgs)
Response.Write("Hello")
End Sub
</script>
<HTML>
...Original HTML Page.....
</HTML>
I'd like to call a function in a .Net .dll that I have already written.
I've tried putting this in the page:
<%@ Import Namespace="TestDDL" %>
and adding this to my Code block:
Sub Page_Load(sender As Object, e As EventArgs)
Response.Write("Hello")
Dim myTestDDL as TestDDL
End Sub
but this does not work. Any ideas?
"Patrice" wrote:
> Not clear...
>
> You can expose a .NET dll as a COM object. It could be then called server
> side...
>
> If for now the site contains just static HTML files it won't work (HTML is
> not a programming language, IIS will serve just these files). It should be
> then turn in to something server side scriptable such as ASP and then he'll
> be ablt to call this as a COM ovbject...
>
> Patrice
>
>
>
>
> --
>
> "CLEAR-RCIC" <CLEARRCIC@xxxxxxxxxxxxxxxxxxxxxxxxx> a écrit dans le message
> de news:28970F40-733E-4632-8379-0A13A19F5496@xxxxxxxxxxxxxxxx
> > A person in a different division where I work asked for some help. He has
> an
> > HTML website and wants to use some functionality in a .Net .dll that I've
> > developed. I currently use this functionality on my ASP.Net website. I
> > could easily port his HTML website into ASP.Net in about 5 minutes. The
> > problem is that if anything on his site ever breaks in the future, I would
> > own the problem because he isn't a programmer. I figured that if I just
> hand
> > him a .Net .dll and some code to call it, he could manage and support it
> with
> > no problems.
> >
> > Can a .Net .dll be called from a few lines in an HTML page and if so, how?
>
>
>
.
- Follow-Ups:
- Re: calling .dll from HTML
- From: Patrice
- Re: calling .dll from HTML
- References:
- calling .dll from HTML
- From: CLEAR-RCIC
- Re: calling .dll from HTML
- From: Patrice
- calling .dll from HTML
- Prev by Date: Re: .net on Macintosh
- Next by Date: Re: .net on Macintosh
- Previous by thread: Re: calling .dll from HTML
- Next by thread: Re: calling .dll from HTML
- Index(es):
Relevant Pages
|