Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using legacy COM object in ASP.NET page

Status
Not open for further replies.

ctwilliams

Programmer
Feb 15, 2002
86
US
In my classic ASP page, I instantiate the COM object like this...

Code:
Dim obj
Set obj = Server.CreateObject("DMCoreX.OBXPropertyBag")
obj.SetProperty ("username", request.form("username"))

I want to convert this to an ASP.NET page with a postback form where the user enters their username. I tried the following code but it gives me a Name 'DMCoreX' is not declared error...

Code:
DMCoreX.OBXPropertyBag obj = new DMCoreX.OBXPropertyBag()
obj.SetProperty ("username", username.Text)

Do I need to import a namespace or something at the top of my page?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top