Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Calling a .NET class in ASP

Posted on 2006-10-25
2
Medium Priority
?
260 Views
Last Modified: 2013-11-25
I have a class USER in my VB.NET code behind. How can I use this class in the ASP page code?

Public Class clsUser

    Dim _userID As Int16
    Dim _fName As String
    Dim _lName As String

    Public Property UserID() As Int16
        Get
            Return _userID
        End Get
        Set(ByVal Value As Int16)
            _userID = Value
        End Set
    End Property

    Public Property FirstName()
        Get
            Return _fName
        End Get
        Set(ByVal Value)
            _fName = Value
        End Set
    End Property
    Public Property LastName()
        Get
            Return _lName
        End Get
        Set(ByVal Value)
            _lName = Value
        End Set
    End Property
End Class
0
Comment
Question by:kevman123
2 Comments
 
LVL 27

Accepted Solution

by:
Sammy Ageil earned 2000 total points
ID: 17805493
The only way to do this by giving your assembly a strong name, and wrap the assembly in a COM wrapper.
then you can call the methods just like you call them in asp.net
take a look here for more http://www.codeproject.com/dotnet/nettocom.asp?select=1005526&df=100&forumid=14076&msg=1005526

0
 

Author Comment

by:kevman123
ID: 17806248
Thanks!
0

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…

885 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question