473,386 Members | 1,652 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.

Classic ASP Calling .NET 2.0 C# Component

Hi All,

I am converting a VB6 to .NET 2.0 C# code which is called by a 'Classic ASP' page. Below are the lines which I am finding it difficult to get a C# equivalent.

Dim arr() As String
Dim oReq As Request
Set oReq = GetObjectContext.Item("Request")
arr = Split(oReq.ServerVariables("URL"), "/")

Any help would be much appreciated.

Thanks,
Rafeek.
May 22 '07 #1
4 1495
kenobewan
4,871 Expert 4TB
Have you tried a converter?
May 22 '07 #2
Yes, does not help.
But I thinnk I have actually found the answer to my query. Here is the link if anyones interested.

http://www.velocityreviews.com/forums/t81843-p-accessing-intrinsic-asp-not-aspnet-objects-from-net-class.html
May 22 '07 #3
Plater
7,872 Expert 4TB
ASPX code pages have a variable called "Request" (and others) which should tell you all you need to know about it. In fact if I understand that code snip-it correct, it has already done that for you.
May 22 '07 #4
This explains it pretty well: http://dotnetjunkies.com/Tutorial/B3...B2F1DFC28.dcik
Jun 8 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: Patrick | last post by:
Following earlier discussions about invoking a .NET class library via ..NET-COM Interop (using regasm /tlb) at...
99
by: Jim Hubbard | last post by:
It seems that Microsoft not only does not need the classic Visual Basic developer army (the largest army of developers the world has ever seen), but now they don't need ANY Windows developer at a...
2
by: RichDef | last post by:
Hello everyone! I have been running some tests of a component that simply returns an image path based upon some logic and a simple select statement to an Access db. The component had to be...
3
by: Ben O via DotNetMonster.com | last post by:
Hi Gang, I've created a C# .NET component which transforms a .TIF file into a .JPEG file. I have a classic ASP website in which I wish to call this C# component from my classic ASP. Can...
3
by: Mark | last post by:
Hi From what I understand, you can pass arrays from classic ASP to .NET using interop, but you have to change the type of the.NET parameter to object. This seems to be because classic ASP passes...
3
by: dotnettester | last post by:
Hi, I would like to replace a vb component that was written using VB6 with a component written in c#. This component will be used with old ASP. I am wondering for the path to take, can any one...
1
by: AnRonMor | last post by:
Currently I use the MS Soap Toolkit to expose some 20 or so com objects for use by classic asp pages, this has to be replaced as support is ending. I have found two proposed solutions below and...
2
by: MartyNg | last post by:
I am running a system that has both Classic ASP applications and a smattering of ASP.NET applications. We want to store passwords on a SQL Server table as their MD5 hashes. What is the safest...
4
by: Michael Kujawa | last post by:
Hi all, If anyone has experience with Dynu FTP object maybe you could help me out. Hopefully it is a simple solution. I "have" referred to the component documentation and I am still having...
1
by: tristanpc | last post by:
Hi, I've got to the Hello World stage of wrapping a .net component with a CCW and calling it from wscript.exe. By placing the .tlb and .dll in the same folder as wscript I get this to work (I...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
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...

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.