|
 |
aspx_beginners thread: Calling a Class from an ASP.Net page
Message #1 by "Hugh McLaughlin" <hugh@k...> on Mon, 29 Jul 2002 15:02:27
|
|
Hello everyone and thanks for your help in advance. I have a precompiled
class that I want to use in different ASP.Net pages but I am not exactly
sure how to call the class. Is this through making it an assembly and a
namespace or is there another, easier way? Any help would be greatly
appreciated. Thanks.
Message #2 by "Lauser, John" <LauserJ@h...> on Mon, 29 Jul 2002 14:16:17 -0400
|
|
You could either compile it into it's own assembly as you stated below
or you can make it a code behind and call it from there. Either way
multiple pages would be able to use it.
John
-----Original Message-----
From: Hugh McLaughlin [mailto:hugh@k...]
Sent: Monday, July 29, 2002 11:02
To: aspx_beginners
Subject: [aspx_beginners] Calling a Class from an ASP.Net page
Hello everyone and thanks for your help in advance. I have a
precompiled
class that I want to use in different ASP.Net pages but I am not exactly
sure how to call the class. Is this through making it an assembly and a
namespace or is there another, easier way? Any help would be greatly
appreciated. Thanks.
Message #3 by planeswalk@h... on Wed, 31 Jul 2002 10:23:41
|
|
Hi,
You could call the precompiled class like this:
<%@ Page Language="VB" Inherits="class_name"
CodeBehind="your_file.aspx.vb" %>
Hope this helps!
Regards,
Marlon
> Hello everyone and thanks for your help in advance. I have a
precompiled
c> lass that I want to use in different ASP.Net pages but I am not exactly
s> ure how to call the class. Is this through making it an assembly and a
n> amespace or is there another, easier way? Any help would be greatly
a> ppreciated. Thanks.
Message #4 by "Robert Sindall" <rsindall@z...> on Wed, 31 Jul 2002 10:21:54 +0100
|
|
Hi
you would create an instance of the class in the codebehind a aspx page..
eg
aspx: frontend stuff
aspx.vb:
dim oFile as SystemNamespace.Classname = New SystemNamespace.Classname()
oFile.Function()
live example:
Dim oFM As Silk.CoreFileManager = New Silk.CoreFileManager()
oFM.GetFolderList(DirPath)
-----Original Message-----
From: planeswalk@h... [mailto:planeswalk@h...]
Sent: 31 July 2002 10:24
To: aspx_beginners
Subject: [aspx_beginners] Re: Calling a Class from an ASP.Net page
Hi,
You could call the precompiled class like this:
<%@ Page Language="VB" Inherits="class_name"
CodeBehind="your_file.aspx.vb" %>
Hope this helps!
Regards,
Marlon
> Hello everyone and thanks for your help in advance. I have a
precompiled
c> lass that I want to use in different ASP.Net pages but I am not exactly
s> ure how to call the class. Is this through making it an assembly and a
n> amespace or is there another, easier way? Any help would be greatly
a> ppreciated. Thanks.
|
|
 |