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 21 March 2007, 10:24 AM
  #1  
SiDHEaD
Scooby Regular
Thread Starter
 
SiDHEaD's Avatar
 
Join Date: Apr 2002
Location: Birmingham
Posts: 9,196
Likes: 0
Received 0 Likes on 0 Posts
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?
Old 22 March 2007, 06:06 PM
  #2  
David_Wallis
Scooby Regular
 
David_Wallis's Avatar
 
Join Date: Nov 2001
Location: Leeds - It was 562.4bhp@28psi on Optimax, How much closer to 600 with race fuel and a bigger turbo?
Posts: 15,239
Likes: 0
Received 1 Like on 1 Post
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
Old 22 March 2007, 06:08 PM
  #3  
SiDHEaD
Scooby Regular
Thread Starter
 
SiDHEaD's Avatar
 
Join Date: Apr 2002
Location: Birmingham
Posts: 9,196
Likes: 0
Received 0 Likes on 0 Posts
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
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
Mattybr5@MB Developments
Full Cars Breaking For Spares
33
29 August 2017 07:18 PM
Scott@ScoobySpares
Full Cars Breaking For Spares
7
14 December 2015 08:16 AM
Mattybr5@MB Developments
Full Cars Breaking For Spares
20
22 October 2015 06:12 AM
blackandz
General Technical
0
12 September 2015 07:01 PM



Quick Reply: Anyone good with ASP/VB?



All times are GMT +1. The time now is 02:57 AM.