Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / August 2004

Tip: Looking for answers? Try searching our database.

Global Function & Sub

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Arne Tiedemann - 09 Aug 2004 15:15 GMT
Hi All,

i'm new in this Forum and in programming ASP Pages.

My Invironment
-  Win2003 Server IIS6 asp enabled

I'll use an functions.asp file to put global Vars Functions an Sub routine
in it. How can I include this File to other ASP Files to use this functions,
vars or sub?

Thanks
Scott M. - 09 Aug 2004 16:35 GMT
You are talking about ASP.NET pages and not Classic ASP pages, right?

If so, put your global functions and subs in the Global.aspx files (mark
them as shared) and they'll be callable from anywhere in your assembly.

> Hi All,
>
[quoted text clipped - 8 lines]
>
> Thanks
Arne Tiedemann - 10 Aug 2004 14:07 GMT
Hi,

I am using .asp Pages and I will put my Functions and other Global
Preferences in an File. This File should be included in other Files.

It is not easy to find help about this reason :-) I hope anybody can help me.

Thanks

> You are talking about ASP.NET pages and not Classic ASP pages, right?
>
[quoted text clipped - 14 lines]
> >
> > Thanks
Scott M. - 10 Aug 2004 14:49 GMT
This newsgroup is about ASP.NET, but all you need to do for Classic ASP is
create a file that ends with .asp (it can end with other extensions, but for
security reasons, .asp is the way to go).  This file should contain only the
script fragments that contain your functions and constant settings that you
want globally available.

On any .asp page that you need to use these functions, just add:

<!-- #include file="relative path to file" -->

to the <HEAD> section of the page.

> Hi,
>
[quoted text clipped - 23 lines]
> > >
> > > Thanks

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.