Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx_beginners thread: Included function script


Message #1 by "Roberts, Ben" <Ben.Roberts@a...> on Mon, 14 Oct 2002 10:10:59 -0600
Hola all!

	I am, like many others, in the process of moving my old ASP code to
ASP.NET.  Using the old model, I used to include an ASP page full of my
custom built functions in every page.  Things like ProperCase(inVal) and
constant values.  Now, I know I can keep my constants in the web.config
file, but I would like to have my custom functions handy, too.  I've looked
at acsx, but those don't communicate with the opening document from what I
understand.

	How do I build the equivalent of my old "functions.asp" file and
include it in my aspx pages so I can use the functions?

TIA,
Ben

Message #2 by "Dmitry Brook" <brook74@h...> on Mon, 14 Oct 2002 16:29:14 +0000
Hi ! The most obvious way to do it is to write your own 'clsHandy' and 
include your functions into this class as a shared members.

Cheers.


>From: "Roberts, Ben" <Ben.Roberts@a...>
>Reply-To: "aspx_beginners" <aspx_beginners@p...>
>To: "aspx_beginners" <aspx_beginners@p...>
>Subject: [aspx_beginners] Included function script
>Date: Mon, 14 Oct 2002 10:10:59 -0600
>
>Hola all!
>
>	I am, like many others, in the process of moving my old ASP code to
>ASP.NET.  Using the old model, I used to include an ASP page full of my
>custom built functions in every page.  Things like ProperCase(inVal) and
>constant values.  Now, I know I can keep my constants in the web.config
>file, but I would like to have my custom functions handy, too.  I've looked
>at acsx, but those don't communicate with the opening document from what I
>understand.
>
>	How do I build the equivalent of my old "functions.asp" file and
>include it in my aspx pages so I can use the functions?
>
>TIA,
>Ben
>
>
>---
>Beginning ASP.NET Databases using VB.NET
>http://www.wrox.com/ACON11.asp?ISBN=1861006195
>
>Beginning ASP.NET Databases using C#
>http://www.wrox.com/ACON11.asp?ISBN=1861007418
>
>These books look at how we can create data-centric ASP.NET
>applications. Requiring some basic knowledge of ASP.NET,
>Access and SQL the authors guide you through the process
>of connecting and consuming information in a variety of
>ways. They are packed full of excellent illustrative code
>examples, demonstrating important fundamental principles.




_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com

Message #3 by "Roberts, Ben" <Ben.Roberts@a...> on Mon, 14 Oct 2002 10:29:05 -0600
Cool,... Thanks,...  I can write the class no problem.  How do I make sure
the class can be called from within the page?  (How do I make certain the
class is visible to my .NET code?  Do I need to create a package/library a
la Java?)

-----Original Message-----
From: Dmitry Brook [mailto:brook74@h...]
Sent: Monday, October 14, 2002 9:29 AM
To: aspx_beginners
Subject: [aspx_beginners] Re: Included function script


Hi ! The most obvious way to do it is to write your own 'clsHandy' and 
include your functions into this class as a shared members.

Cheers.


>From: "Roberts, Ben" <Ben.Roberts@a...>
>Reply-To: "aspx_beginners" <aspx_beginners@p...>
>To: "aspx_beginners" <aspx_beginners@p...>
>Subject: [aspx_beginners] Included function script
>Date: Mon, 14 Oct 2002 10:10:59 -0600
>
>Hola all!
>
>	I am, like many others, in the process of moving my old ASP code to
>ASP.NET.  Using the old model, I used to include an ASP page full of my
>custom built functions in every page.  Things like ProperCase(inVal) and
>constant values.  Now, I know I can keep my constants in the web.config
>file, but I would like to have my custom functions handy, too.  I've looked
>at acsx, but those don't communicate with the opening document from what I
>understand.
>
>	How do I build the equivalent of my old "functions.asp" file and
>include it in my aspx pages so I can use the functions?
>
>TIA,
>Ben
>
>
>---
>Beginning ASP.NET Databases using VB.NET
>http://www.wrox.com/ACON11.asp?ISBN=1861006195
>
>Beginning ASP.NET Databases using C#
>http://www.wrox.com/ACON11.asp?ISBN=1861007418
>
>These books look at how we can create data-centric ASP.NET
>applications. Requiring some basic knowledge of ASP.NET,
>Access and SQL the authors guide you through the process
>of connecting and consuming information in a variety of
>ways. They are packed full of excellent illustrative code
>examples, demonstrating important fundamental principles.




_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com


---
Beginning ASP.NET Databases using VB.NET
http://www.wrox.com/ACON11.asp?ISBN=1861006195

Beginning ASP.NET Databases using C#
http://www.wrox.com/ACON11.asp?ISBN=1861007418

These books look at how we can create data-centric ASP.NET 
applications. Requiring some basic knowledge of ASP.NET, 
Access and SQL the authors guide you through the process 
of connecting and consuming information in a variety of 
ways. They are packed full of excellent illustrative code 
examples, demonstrating important fundamental principles.

Message #4 by "Dmitry Brook" <brook74@h...> on Mon, 14 Oct 2002 17:22:05 +0000
Hi ! If you use VB.NEt use Imports YourLib, C like and Java usin yourLib at 
the beginning of your code-behind module.


>From: "Roberts, Ben" <Ben.Roberts@a...>
>Reply-To: "aspx_beginners" <aspx_beginners@p...>
>To: "aspx_beginners" <aspx_beginners@p...>
>Subject: [aspx_beginners] Re: Included function script
>Date: Mon, 14 Oct 2002 10:29:05 -0600
>
>Cool,... Thanks,...  I can write the class no problem.  How do I make sure
>the class can be called from within the page?  (How do I make certain the
>class is visible to my .NET code?  Do I need to create a package/library a
>la Java?)
>
>-----Original Message-----
>From: Dmitry Brook [mailto:brook74@h...]
>Sent: Monday, October 14, 2002 9:29 AM
>To: aspx_beginners
>Subject: [aspx_beginners] Re: Included function script
>
>
>Hi ! The most obvious way to do it is to write your own 'clsHandy' and
>include your functions into this class as a shared members.
>
>Cheers.
>
>
> >From: "Roberts, Ben" <Ben.Roberts@a...>
> >Reply-To: "aspx_beginners" <aspx_beginners@p...>
> >To: "aspx_beginners" <aspx_beginners@p...>
> >Subject: [aspx_beginners] Included function script
> >Date: Mon, 14 Oct 2002 10:10:59 -0600
> >
> >Hola all!
> >
> >	I am, like many others, in the process of moving my old ASP code to
> >ASP.NET.  Using the old model, I used to include an ASP page full of my
> >custom built functions in every page.  Things like ProperCase(inVal) and
> >constant values.  Now, I know I can keep my constants in the web.config
> >file, but I would like to have my custom functions handy, too.  I've 
>looked
> >at acsx, but those don't communicate with the opening document from what 
>I
> >understand.
> >
> >	How do I build the equivalent of my old "functions.asp" file and
> >include it in my aspx pages so I can use the functions?
> >
> >TIA,
> >Ben
> >
> >
> >---
> >Beginning ASP.NET Databases using VB.NET
> >http://www.wrox.com/ACON11.asp?ISBN=1861006195
> >
> >Beginning ASP.NET Databases using C#
> >http://www.wrox.com/ACON11.asp?ISBN=1861007418
> >
> >These books look at how we can create data-centric ASP.NET
> >applications. Requiring some basic knowledge of ASP.NET,
> >Access and SQL the authors guide you through the process
> >of connecting and consuming information in a variety of
> >ways. They are packed full of excellent illustrative code
> >examples, demonstrating important fundamental principles.
>
>
>
>
>_________________________________________________________________
>Send and receive Hotmail on your mobile device: http://mobile.msn.com
>
>
>---
>Beginning ASP.NET Databases using VB.NET
>http://www.wrox.com/ACON11.asp?ISBN=1861006195
>
>Beginning ASP.NET Databases using C#
>http://www.wrox.com/ACON11.asp?ISBN=1861007418
>
>These books look at how we can create data-centric ASP.NET
>applications. Requiring some basic knowledge of ASP.NET,
>Access and SQL the authors guide you through the process
>of connecting and consuming information in a variety of
>ways. They are packed full of excellent illustrative code
>examples, demonstrating important fundamental principles.
>
>
>---
>Beginning ASP.NET Databases using VB.NET
>http://www.wrox.com/ACON11.asp?ISBN=1861006195
>
>Beginning ASP.NET Databases using C#
>http://www.wrox.com/ACON11.asp?ISBN=1861007418
>
>These books look at how we can create data-centric ASP.NET
>applications. Requiring some basic knowledge of ASP.NET,
>Access and SQL the authors guide you through the process
>of connecting and consuming information in a variety of
>ways. They are packed full of excellent illustrative code
>examples, demonstrating important fundamental principles.




_________________________________________________________________
Chat with friends online, try MSN Messenger: http://messenger.msn.com

Message #5 by "Roberts, Ben" <Ben.Roberts@a...> on Mon, 14 Oct 2002 11:22:05 -0600
OK, I understand that, but don't I have to do something special to myLib to
make it importable?

TIA,
Ben

-----Original Message-----
From: Dmitry Brook [mailto:brook74@h...]
Sent: Monday, October 14, 2002 10:22 AM
To: aspx_beginners
Subject: [aspx_beginners] Re: Included function script


Hi ! If you use VB.NEt use Imports YourLib, C like and Java usin yourLib at 
the beginning of your code-behind module.


>From: "Roberts, Ben" <Ben.Roberts@a...>
>Reply-To: "aspx_beginners" <aspx_beginners@p...>
>To: "aspx_beginners" <aspx_beginners@p...>
>Subject: [aspx_beginners] Re: Included function script
>Date: Mon, 14 Oct 2002 10:29:05 -0600
>
>Cool,... Thanks,...  I can write the class no problem.  How do I make sure
>the class can be called from within the page?  (How do I make certain the
>class is visible to my .NET code?  Do I need to create a package/library a
>la Java?)
>
>-----Original Message-----
>From: Dmitry Brook [mailto:brook74@h...]
>Sent: Monday, October 14, 2002 9:29 AM
>To: aspx_beginners
>Subject: [aspx_beginners] Re: Included function script
>
>
>Hi ! The most obvious way to do it is to write your own 'clsHandy' and
>include your functions into this class as a shared members.
>
>Cheers.
>
>
> >From: "Roberts, Ben" <Ben.Roberts@a...>
> >Reply-To: "aspx_beginners" <aspx_beginners@p...>
> >To: "aspx_beginners" <aspx_beginners@p...>
> >Subject: [aspx_beginners] Included function script
> >Date: Mon, 14 Oct 2002 10:10:59 -0600
> >
> >Hola all!
> >
> >	I am, like many others, in the process of moving my old ASP code to
> >ASP.NET.  Using the old model, I used to include an ASP page full of my
> >custom built functions in every page.  Things like ProperCase(inVal) and
> >constant values.  Now, I know I can keep my constants in the web.config
> >file, but I would like to have my custom functions handy, too.  I've 
>looked
> >at acsx, but those don't communicate with the opening document from what 
>I
> >understand.
> >
> >	How do I build the equivalent of my old "functions.asp" file and
> >include it in my aspx pages so I can use the functions?
> >
> >TIA,
> >Ben
> >
> >
> >---
> >Beginning ASP.NET Databases using VB.NET
> >http://www.wrox.com/ACON11.asp?ISBN=1861006195
> >
> >Beginning ASP.NET Databases using C#
> >http://www.wrox.com/ACON11.asp?ISBN=1861007418
> >
> >These books look at how we can create data-centric ASP.NET
> >applications. Requiring some basic knowledge of ASP.NET,
> >Access and SQL the authors guide you through the process
> >of connecting and consuming information in a variety of
> >ways. They are packed full of excellent illustrative code
> >examples, demonstrating important fundamental principles.
>
>
>
>
>_________________________________________________________________
>Send and receive Hotmail on your mobile device: http://mobile.msn.com
>
>
>---
>Beginning ASP.NET Databases using VB.NET
>http://www.wrox.com/ACON11.asp?ISBN=1861006195
>
>Beginning ASP.NET Databases using C#
>http://www.wrox.com/ACON11.asp?ISBN=1861007418
>
>These books look at how we can create data-centric ASP.NET
>applications. Requiring some basic knowledge of ASP.NET,
>Access and SQL the authors guide you through the process
>of connecting and consuming information in a variety of
>ways. They are packed full of excellent illustrative code
>examples, demonstrating important fundamental principles.
>
>
>---
>Beginning ASP.NET Databases using VB.NET
>http://www.wrox.com/ACON11.asp?ISBN=1861006195
>
>Beginning ASP.NET Databases using C#
>http://www.wrox.com/ACON11.asp?ISBN=1861007418
>
>These books look at how we can create data-centric ASP.NET
>applications. Requiring some basic knowledge of ASP.NET,
>Access and SQL the authors guide you through the process
>of connecting and consuming information in a variety of
>ways. They are packed full of excellent illustrative code
>examples, demonstrating important fundamental principles.




_________________________________________________________________
Chat with friends online, try MSN Messenger: http://messenger.msn.com


---
Beginning ASP.NET Databases using VB.NET
http://www.wrox.com/ACON11.asp?ISBN=1861006195

Beginning ASP.NET Databases using C#
http://www.wrox.com/ACON11.asp?ISBN=1861007418

These books look at how we can create data-centric ASP.NET 
applications. Requiring some basic knowledge of ASP.NET, 
Access and SQL the authors guide you through the process 
of connecting and consuming information in a variety of 
ways. They are packed full of excellent illustrative code 
examples, demonstrating important fundamental principles.


  Return to Index