how to access a user-written dll's functions in aspx single page (not -codebehind)

I want to write an aspx page (single page preferred over code behind) that has a script block that calls functions I put in a dll. Can somebody give me a Hello world example. To make it simple, assume the function in the dll has one string parameter and returns a string value. Put the return value in a textbox at page load or something simple. I'm interested in the syntax to connect to the dll. If important, I have VS 2005.

Thank you.
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Sachintana DissanayakeSenior Web DeveloperCommented:
Create a class library called HelloLibrary (Code Snippet1).
Create a separate web project with the aspx page without codebehind file (Code Snippet2).
Add a project reference to HelloLibrary from the web project.
Just run the project.

Hope you get what you expected.
Code Snippet1:
Namespace HelloLibrary
    Public Class HelloClass
        Public Shared Function CallHello() As String
            Return "Hello Hello"
        End Function
    End Class
End Namespace
Code Snippet2:
<%@ Page Language="VB" AutoEventWireup="false" %>
<%@ Import Namespace="HelloLibrary" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
<html xmlns="" >
<head runat="server">
    <title>Untitled Page</title>
    <form id="form1" runat="server">

Open in new window


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
MikeBroderickAuthor Commented:
OK. Thanks.
I tried it and it worked. I apologize but I wasnt explicit. I did not want to build snippet 2 into a web application. I would like to enter it directly (using notepad or dreamweaver for example). The thing that gets me stuck is how to perform the equivilant to "add a reference" to point to the dll from notepad. Is this possible?
Sachintana DissanayakeSenior Web DeveloperCommented:
Add the HelloLibrary.dll to /bin folder in the web application.
Create a folder called bin inside the web application root.
That's it, no need to compile the web solution.
MikeBroderickAuthor Commented:
That worked like a champ! Thank you.
Sachintana DissanayakeSenior Web DeveloperCommented:
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.