PC Review


Reply
Thread Tools Rate Thread

Accessing .Net class from .asp

 
 
=?Utf-8?B?QW4=?=
Guest
Posts: n/a
 
      10th Dec 2003
I have a server side .asp page (without any UI controls) on a server.
I also have a .Net class on the same server, in the same application.
Can I invoke that class from the .asp page?


 
Reply With Quote
 
 
 
 
Cor
Guest
Posts: n/a
 
      10th Dec 2003
Hi An,

Do you mean

redirect(www.mywebsite.xxx/myasppage.aspx)

Why not?

Cor


 
Reply With Quote
 
Brian M. Reisman
Guest
Posts: n/a
 
      10th Dec 2003
You can wrap the .NET class in COM, register it using the regasm.exe tool so
that it is exposed just like any other COM component. A CCW (COM-Callable
Wrapper) will be created and take care of the marshalling to and from the
managed code.
This is a great solution to gradually move to ASP.NET, once all of your
components have been upgraded you can then re-write the ASP application in
ASP.NET. Here's info on the Regasm utility:
http://msdn.microsoft.com/library/de...lregasmexe.asp

--
Brian M. Reisman
MCAD, MCDBA, MCSD,
MCSE, MCT, OCA, NET+
My Book @ Amazon: http://www.amazon.com/exec/obidos/tg...l/-/0782141617


"An" <(E-Mail Removed)> wrote in message
news:8DA15CBE-DD38-439E-89B7-(E-Mail Removed)...
> I have a server side .asp page (without any UI controls) on a server.
> I also have a .Net class on the same server, in the same application.
> Can I invoke that class from the .asp page?
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Accessing properies of the derived class from the base class duringruntime... almurph@altavista.com Microsoft C# .NET 2 30th Jul 2010 04:08 PM
Problem accessing Properties of class, not sure if class =?Utf-8?B?TWljcm9Nb3Ro?= Microsoft C# .NET 3 27th Jul 2006 02:23 PM
Reflection.Emit accessing a field in the base class of a dynamically constructed class Douglas Harber Microsoft Dot NET Framework 0 11th Feb 2006 11:28 PM
Nested class: accessing containing class's variables Joel Moore Microsoft VB .NET 9 31st Aug 2004 02:26 PM
Accessing session data in a class file- which class do I inherit from? Kevin Spencer Microsoft ASP .NET 6 23rd Apr 2004 12:32 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:03 PM.