473,412 Members | 2,306 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,412 software developers and data experts.

calling .dll from HTML

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?
Nov 22 '05 #1
4 7551
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" <CL*******@discussions.microsoft.com> a écrit dans le message
de news:28**********************************@microsof t.com...
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?

Nov 22 '05 #2
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" <CL*******@discussions.microsoft.com> a écrit dans le message
de news:28**********************************@microsof t.com...
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?


Nov 22 '05 #3
Ok, just wanted to sort of the possible HTML static file issue...

Using .NET it should be even issue. Did you put your DLL in the application
/bin directory. If yes or if it still fails once done what is the message
you have at compile time ?

Patrice

--

"CLEAR-RCIC" <CL*******@discussions.microsoft.com> a écrit dans le message
de news:CC**********************************@microsof t.com...
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" <CL*******@discussions.microsoft.com> a écrit dans le message de news:28**********************************@microsof t.com...
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?

Nov 22 '05 #4
Yes. I put my .dll in the /bin folder. The error I get is:

Compiler Error Message: BC30002: Type 'TestDLL' is not defined.

"Patrice" wrote:
Ok, just wanted to sort of the possible HTML static file issue...

Using .NET it should be even issue. Did you put your DLL in the application
/bin directory. If yes or if it still fails once done what is the message
you have at compile time ?

Patrice

--

"CLEAR-RCIC" <CL*******@discussions.microsoft.com> a écrit dans le message
de news:CC**********************************@microsof t.com...
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" <CL*******@discussions.microsoft.com> a écrit dans le message de news:28**********************************@microsof t.com...
> 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?


Nov 22 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Pjotr Wedersteers | last post by:
Hi, When I include a script in my html I don't get any output back in the calling page. The script is on a remote location for the html page. Example given: myscript.php: <?PHP echo...
12
by: bhennon | last post by:
Hey all, I have a small php script that calls a random image at the following page. http://www.2006ymcanationals.com/random.php IT WORKS IF I go directly to the above link. I am trying to...
1
by: itai_regev | last post by:
hi, i want to send html post request from c++ i tried to write the according to http standards but for some reason no data was received from my code, can any one help? thanks alot
8
by: Jakej | last post by:
I've been using a javascript in an html file for a banner slider, and it works as desired. But I'd like to use it on more than one page and it would be great if I could transfer the code to a .js...
5
by: benc | last post by:
Hi Can some good soul help on this. I need to call jscript functions from C#. I have hosted a web control and displayed an html page successfully, but just can't find a way to call jscript...
5
by: Sean M. Loftus | last post by:
I have a need to call an html page into the pane I'm viewing using a button on an ASP page. The page itself is an ASP page called from a website. I know a link would work but the rest of the page...
1
by: koval | last post by:
Type mismatch error occured when calling HTML array elements through Request.form("txtlrno" & i) after self posting the form, please anyone help me immediately because is in crisis.
11
by: raknin | last post by:
Hi, Is there any way to call html file from a javascript. What I want to do is as following: 1) send information to sever and checkit by using Javascript. 2) if everything is OK. call...
29
by: lenbell | last post by:
It's old stupid and lazy here again I have been wanting to keep using my WYSIWYG (What You See Is What You Get - for my fellow stupids) html editor. But I was told that you HAD to rename your...
2
by: shah0101 | last post by:
Hi there, I don't know how appropriate is my question but I know the problem that I have to install a software on my server and my landing page (home page) must be in PHP to run the software...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.