Notices
Computer & Technology Related Post here for help and discussion of computing and related technology. Internet, TVs, phones, consoles, computers, tablets and any other gadgets.

Anyone good with ASP/VB?

Thread Tools
 
Search this Thread
 
Old Mar 21, 2007 | 10:24 AM
  #1  
SiDHEaD's Avatar
SiDHEaD
Thread Starter
Scooby Regular
 
Joined: Apr 2002
Posts: 9,196
Likes: 0
From: Birmingham
Default Anyone good with ASP/VB?

I'm trying to write an ASP app which uses functions from a dll. I can do this in VB, and I have the code for VB but I can't seem to work out how to do my declares etc correctly for in the aspx file.

The VB code for example is:
Code:
	Dim allemp as AX200.EmployeeDetails
	Set allemp = New AX200.EmployeeDetails
	Dim empcls as AX200.clsCard
	Set empcls = New AX200.clsCard
	Dim emplist() as clsCard

	With empcls
	  .employee_id = ""
          .Address = ""
          .Department = ""
          .Company = ""
          .first_name = ""
          .middle_name = ""
          .Surname = ""
        End With
	emplist = allemp.search(empcls, "and")
(This is example code from the manufacturer of the component).

Looking at some bits and bobs on the internet it seems I need to use Server.CreateObject() to load up the class but it just keeps erroring.


Anyone point me in the right direction?
Reply
Old Mar 22, 2007 | 06:06 PM
  #2  
David_Wallis's Avatar
David_Wallis
Scooby Regular
 
Joined: Nov 2001
Posts: 15,239
Likes: 1
From: Leeds - It was 562.4bhp@28psi on Optimax, How much closer to 600 with race fuel and a bigger turbo?
Default

I guess in Vb you added a reference to the dll though..

Not quite sure how you do it in aspx, but I could ask our developers if you get stuck.

David
Reply
Old Mar 22, 2007 | 06:08 PM
  #3  
SiDHEaD's Avatar
SiDHEaD
Thread Starter
Scooby Regular
 
Joined: Apr 2002
Posts: 9,196
Likes: 0
From: Birmingham
Default

Hello,

Yeah i have it working fine in VB.

I've loaded VS onto the machine now so I'm doing it within there. Seems to be working better. Apparently aspx isn't like plain old asp files, i have to "build" it before it works as an application etc lol

Thanks
Reply
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
Mattybr5@MB Developments
Full Cars Breaking For Spares
34
Nov 7, 2024 04:10 PM
Scott@ScoobySpares
Full Cars Breaking For Spares
7
Dec 14, 2015 08:16 AM
Mattybr5@MB Developments
Full Cars Breaking For Spares
20
Oct 22, 2015 06:12 AM
blackandz
General Technical
0
Sep 12, 2015 07:01 PM




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