access to custom functions

Results 1 to 3 of 3

Thread: access to custom functions

  1. #1
    John D Guest

    Default access to custom functions

    I used to use include files for regular ASP to store a bunch of functions i used on several pages. What is the .NET way to have access to those functions without creating a bunch of objects....

  2. #2
    Join Date
    Dec 1969

    Default RE: access to custom functions

    If you look at the way that it is done in the IBuySpy online docs ( ) you will see that you can compile your .vb (or.cs, or .whatever) Class files into into .NET .dll&#039;s which sit inside your /bin folder, then Import the Class into your page and directly reference it&#039;s public members that way.<BR><BR>Also I think that you can use the @Register directive to directly refereence .vb files from within your Page.<BR><BR><BR>Again, check out the IBuySpy app.

  3. #3
    Join Date
    Dec 1969

    Default RE: access to custom functions

    Thanks. I know how to do that for classes, but I just want to have a few function and subs. I tried to just put a function inside a Namespace in a .vb file, but the compiler doesn&#039;t like it.<BR><BR>Where can i just put functions?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts