Ask a Question related to ASP, Design and Development.
-
Andrew Durstewitz #1
Function Question
Hi!
Is there a considerable degredidation in speed if I where to include an
ASP page into every other ASP page that would contain all the functions
for the site?
This seems an easier route to update functions that are used more than
once instead of copying code around.
¿¿¿
Andrew
* * * Sent via DevBuilder [url]http://www.devbuilder.org[/url] * * *
Developer Resources for High End Developers.
Andrew Durstewitz Guest
-
IIF function question
I'm studying for my ColdFusionMX exam using Ben Forta's study guide. There is quite a bit of errata in the book, including code that simply doesn't... -
Simple AS function question
Why will this not work home_btn.onRollOver = setInterval(delayAction,2000,home); function delayAction (framename:String) var name:String =... -
PHP function question
When writing a function that takes in a variable number of parameters and processing it using func_get_args or a similar technique, I'm assuming... -
utf8_decode function question
Hi folks, I read in a security note that something known as a cross-site scripting attacker can use utf8 encoding and that you could decode data to... -
Question: ConnectToDatabase function
Thanks! I wasn't sure if the Try code would continue or not if an exception was "caught". Now I know it doesn't. "Marina" <mzlatkina@hotmail.com>... -
Evertjan. #2
Re: Function Question
Andrew Durstewitz wrote on 19 aug 2003 in
microsoft.public.inetserver.asp.general:If you mean an include file: no.> Is there a considerable degredidation in speed if I where to include an
> ASP page into every other ASP page that would contain all the functions
> for the site?
[depending on the meaning of "considerable degradation"]
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Evertjan. Guest
-
William Tasso #3
Re: Function Question
Andrew Durstewitz wrote:
no - it's a minor consideration except on a server which is already> Is there a considerable degredidation in speed if I where to include
> an ASP page into every other ASP page that would contain all the
> functions for the site?
operating at or very near it's limit.
indeed it is ;o)> This seems an easier route to update functions that are used more than
> once instead of copying code around.
--
William Tasso - [url]http://WilliamTasso.com[/url]
William Tasso Guest
-
Andrew Durstewitz #4
Re: Function Question
I do mean an include file.
* * * Sent via DevBuilder [url]http://www.devbuilder.org[/url] * * *
Developer Resources for High End Developers.
Andrew Durstewitz Guest
-
Andrew Durstewitz #5
Re: Function Question
Since the functions won't run unless called doesn't that mean that the
degredation will be very low?
* * * Sent via DevBuilder [url]http://www.devbuilder.org[/url] * * *
Developer Resources for High End Developers.
Andrew Durstewitz Guest
-
Harag #6
Re: Function Question
I've personally not ran into any problems with including large include
files in all my ASP pages.
I have severall that I include into all files and they add up to about
400k of files
A little tip
Keep you include files with the extension of ".asp" and NOT ".inc" put
your include files into a sub folder eg /inc
I use the following 3 for my main include folders
/inc - most files
/inc/js - all .js files here
/inc/class - my ASP class files here
hth.
Al
On 19 Aug 2003 15:49:03 GMT, Andrew Durstewitz
<adurstew@devbuilder.org> wrote:
>Since the functions won't run unless called doesn't that mean that the
>degredation will be very low?
>
>* * * Sent via DevBuilder [url]http://www.devbuilder.org[/url] * * *
>Developer Resources for High End Developers.Harag Guest
-
NJ Termite #7
function question
I'm reading thru a book, and it had this sample code
<html>
<head>
<title>Listing 6.3</title>
</head>
<body>
<?php
function printBR( $txt ) {
print ("$txt<br>\n");
}
printBR(" This is a line");
printBR("This is a new line");
printBR("This is yet another line");
?>
</body>
</html>
My question is I understand why there is a variable in the parentheses, (the
argument) which is $txt, but what is it doing in the function code, print
("$txt<br>\n");
Does it pass the data say for example " This is a line" into $txt, and then
within the function it uses print $txt, I just want to make sure I
understand the bases of functions as I learn.
Thanks,
Mark
NJ Termite Guest
-
Xenovoyance #8
Re: function question
NJ Termite wrote:
The function printBR take one argument as input-data, $txt. In other> I'm reading thru a book, and it had this sample code
>
>
> <html>
> <head>
> <title>Listing 6.3</title>
> </head>
> <body>
> <?php
> function printBR( $txt ) {
> print ("$txt<br>\n");
> }
> printBR(" This is a line");
> printBR("This is a new line");
> printBR("This is yet another line");
> ?>
> </body>
> </html>
>
>
> My question is I understand why there is a variable in the parentheses, (the
> argument) which is $txt, but what is it doing in the function code, print
> ("$txt<br>\n");
>
> Does it pass the data say for example " This is a line" into $txt, and then
> within the function it uses print $txt, I just want to make sure I
> understand the bases of functions as I learn.
>
> Thanks,
>
> Mark
>
words if you would like to call the function it needs an argument within
that call. Let us say that you want to make it write "Hello World", then
you would call the function like this:
<?php
printBR("Hello World");
?>
As you can see inside the printBR it uses the standard print function to
write the input-data ($txt) followed by a thml-tag for linebrake,
followed by a new line.
Hope this will answer your question.
Cheers,
Xenovoyance
Xenovoyance Guest
-
Tim Gallivan #9
function question
Hello group,
I'm trying to develop a proof of concept webservice which asynchronously
calls a function in a DLL. The function raises an event when it is finished,
and works when used as part of a windows form. When I try to hook up the
webservice to the event and call the WS, the CPU goes to 100% and I have to
restart the WWW service.
Does anyone have an idea as to how this can be done ... and if not,
directions to a tall bridge would come in handy.
Thanks in advance,
Tim Gallivan
I know I'm a great teacher because when I give a lesson, the person never
comes back.
Tim Gallivan Guest
-
Tim Gallivan #10
Re: function question
Sorry for the cross-post, but no one had answered in
microsoft.public.dotnet.framework.webservices
--
Tim Gallivan
I know I'm a great teacher because when I give a lesson, the person never
comes back.
"Tim Gallivan" <nospampleasetim.gallivan@edu.gov.on.ca> wrote in message
news:%23agMeCRiEHA.2448@TK2MSFTNGP12.phx.gbl...finished,> Hello group,
>
> I'm trying to develop a proof of concept webservice which asynchronously
> calls a function in a DLL. The function raises an event when it isto> and works when used as part of a windows form. When I try to hook up the
> webservice to the event and call the WS, the CPU goes to 100% and I have> restart the WWW service.
>
> Does anyone have an idea as to how this can be done ... and if not,
> directions to a tall bridge would come in handy.
>
> Thanks in advance,
> Tim Gallivan
> I know I'm a great teacher because when I give a lesson, the person never
> comes back.
>
>
Tim Gallivan Guest



Reply With Quote

