| View previous topic :: View next topic |
| Author |
Message |
elrico Freshman


Joined: Oct 18, 2005 Posts: 8
|
Posted: Mon Jan 23, 2006 9:45 pm Post subject: Make one function to be available from any page? |
|
|
How can I make one function to be available from any page from my site?
Depending on some situations, I or the user, need to execute a function (e.g., login, sending email, etc...) and then continue from the original place. How can I make one function to be available from any page from my site? |
|
| Back to top |
|
 |
benq Web Design Newbie


Joined: Dec 13, 2005 Posts: 11
|
Posted: Mon Jan 23, 2006 9:47 pm Post subject: |
|
|
Try this one.
Create a new class (.cls)
Add the function in the new class.
Compile the new class into a DLL.
Register the new DLL.
Then reference the DLL to all the pages that will use the function.
Let me know if that helps |
|
| Back to top |
|
 |
kpop Web Design Newbie


Joined: Jul 12, 2004 Posts: 11
|
Posted: Mon Jan 23, 2006 9:49 pm Post subject: |
|
|
Like above you can create a .dll or you can create an include folder, reference it in your page eg.
<!-- #INCLUDE FILE = "include/functions.asp"-->
then call the required function that you need. eg sendemail(pass in required parameters) |
|
| Back to top |
|
 |
|