473,386 Members | 1,815 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,386 software developers and data experts.

Legacy ASP calling C# assembly

We've got a legacy ASP application which needs to call a method in a C#
assembly. How can I capture the Request object in C#? I need to get
Servervariables from Request object.

Thanks,
Gilgamesh
Nov 8 '07 #1
3 1955
Please use ComVisibleAttribute Class

http://www.alvas.net - Audio tools for C# and VB.Net developers
"Gilgamesh" <gi************@aol.comсообщил/сообщила в новостях следующее:
news:un**************@TK2MSFTNGP06.phx.gbl...
We've got a legacy ASP application which needs to call a method in a C#
assembly. How can I capture the Request object in C#? I need to get
Servervariables from Request object.

Thanks,
Gilgamesh

Nov 8 '07 #2
Can you elaborate? How do I use ComVisibleAttribute in C# to access the
Servervariables?
-G
"Alexander Vasilevsky" <al***@alvas.netwrote in message
news:fg***********@behemoth.volia.net...
Please use ComVisibleAttribute Class

http://www.alvas.net - Audio tools for C# and VB.Net developers
"Gilgamesh" <gi************@aol.comсообщил/сообщила в новостях
следующее: news:un**************@TK2MSFTNGP06.phx.gbl...
>We've got a legacy ASP application which needs to call a method in a C#
assembly. How can I capture the Request object in C#? I need to get
Servervariables from Request object.

Thanks,
Gilgamesh


Nov 8 '07 #3
1. you make c# class com visible.
2. invoke c# class from old asp and pass servervariables to this class

http://www.alvas.net - Audio tools for C# and VB.Net developers
"Gilgamesh" <gi************@aol.comсообщил/сообщила в новостях следующее:
news:OO**************@TK2MSFTNGP06.phx.gbl...
Can you elaborate? How do I use ComVisibleAttribute in C# to access the
Servervariables?
-G
"Alexander Vasilevsky" <al***@alvas.netwrote in message
news:fg***********@behemoth.volia.net...
>Please use ComVisibleAttribute Class

http://www.alvas.net - Audio tools for C# and VB.Net developers
"Gilgamesh" <gi************@aol.comсообщил/сообщила в новостях
следующее: news:un**************@TK2MSFTNGP06.phx.gbl...
>>We've got a legacy ASP application which needs to call a method in a C#
assembly. How can I capture the Request object in C#? I need to get
Servervariables from Request object.

Thanks,
Gilgamesh



Nov 9 '07 #4

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

Similar topics

1
by: Jim Douglas | last post by:
I have (3) legacy ASP applications where I have been tasked with implementing a SpellChecker in, the catch is that the SpellChecker has to be done in .NET. I have some ideas about how to do it but...
8
by: Russ | last post by:
Hello. I have a very large business application written all in VC++ and MFC. Now I want to interface some of it to the web. I have VS.NET2003 and have been studing walkthroughs and documentation...
1
by: Sai Kit Tong | last post by:
I have to interface managed application with my legacy dll. I have employed the wrapper approach but I have to deal with the asynchronous callback from the legacy dll, which likely goes through a...
6
by: Bradley1234 | last post by:
What is the way to send/read bits to the printer port at the hex 3F8-3FF or any other legacy io space?? Does C# include the methods to drive the printer or other ports? tia
1
by: Dave Moran | last post by:
I'm calling an ActiveX control which uses Common controls v6.0 to display XP styles. I understand that you have to call InitCommonControls and add the following manifest to your exe. <?xml...
0
by: =?Utf-8?B?UmFodnlu?= | last post by:
Hi All; I am writing a COM interface that will need to be called from VBScript (Legacy App). I need to return a recordset to the calling app. I am using ADODB to populate the recordset and...
2
by: Ben | last post by:
I'm left with some legacy code using plain old str, and I need to make sure it works with unicode input/output. I have a simple plan to do this: - Run the code with "python -U" so all the string...
11
by: briankirkpatrick | last post by:
Forgive me if my post seems a little amateurish... I'm requesting assistance from some of you smart folks out there to get the managed calls write that meet the specification in the esa.h for...
7
by: =?Utf-8?B?UVNJRGV2ZWxvcGVy?= | last post by:
I have a C# logging assembly with a static constructor and methods that is called from another C# Assembly that is used as a COM interface for a VB6 Application. Ideally I need to build a file...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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,...

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.