473,405 Members | 2,310 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

INclusione randomizzata in ASP

Salve volevo sottoporvi un problema
ho un index in http://www.palermoclub.com che utilizza diverse inclusioni
testa.asp per la testata
centro.asp per il centropagina
sotto.asp per il piè dipagina

per dare un pò di vivacità al mio sito volevo creare una visualizzazione
random dell'inclusione centro.asp
Ho realizzato diversi centro: centro.asp, centro1.asp, centro2.asp ecc.ecc.
Come fare per randomizzare l'inclusione centro.asp
Esiste la possibilità?
Vi sarei molto grato
Saluti

Jul 19 '05 #1
12 1510
Non potete includere dinamicamente, poichè sono proceduti prima dell'asp.
Ci è molto "inganna" per convincerlo per funzionare comunque.

Potreste usare i sottoprogrammi o le funzioni alle pagine incluse, quindi
denominate quelli dalle vostre dichiarazione condizionali... if/then

spiacenti per italiano difettoso... Ho usato il google.
"alessandro" <info_mail@(N O SP AMM PLEASEpalermoclub.com> wrote in message
news:bv**********@lacerta.tiscalinet.it...
Salve volevo sottoporvi un problema
ho un index in http://www.palermoclub.com che utilizza diverse inclusioni
testa.asp per la testata
centro.asp per il centropagina
sotto.asp per il piè dipagina

per dare un pò di vivacità al mio sito volevo creare una visualizzazione
random dell'inclusione centro.asp
Ho realizzato diversi centro: centro.asp, centro1.asp, centro2.asp ecc.ecc. Come fare per randomizzare l'inclusione centro.asp
Esiste la possibilità?
Vi sarei molto grato
Saluti

Jul 19 '05 #2
English?

"alessandro" <info_mail@(N O SP AMM PLEASEpalermoclub.com> wrote in message
news:bv**********@lacerta.tiscalinet.it...
Salve volevo sottoporvi un problema
ho un index in http://www.palermoclub.com che utilizza diverse inclusioni
testa.asp per la testata
centro.asp per il centropagina
sotto.asp per il piè dipagina

per dare un pò di vivacità al mio sito volevo creare una visualizzazione
random dell'inclusione centro.asp
Ho realizzato diversi centro: centro.asp, centro1.asp, centro2.asp ecc.ecc. Come fare per randomizzare l'inclusione centro.asp
Esiste la possibilità?
Vi sarei molto grato
Saluti

Jul 19 '05 #3
Roy Danon wrote on 04 feb 2004 in
microsoft.public.inetserver.asp.general:
"alessandro" <info_mail@(N O SP AMM PLEASEpalermoclub.com> wrote in
message news:bv**********@lacerta.tiscalinet.it...
Salve volevo sottoporvi un problema
ho un index in http://www.palermoclub.com che utilizza diverse
inclusioni testa.asp per la testata
centro.asp per il centropagina
sotto.asp per il piè dipagina

per dare un pò di vivacità al mio sito volevo creare una
visualizzazione random dell'inclusione centro.asp
Ho realizzato diversi centro: centro.asp, centro1.asp, centro2.asp

ecc.ecc.
Come fare per randomizzare l'inclusione centro.asp
Esiste la possibilità?
Vi sarei molto grato
Saluti


English?


No, this is Italian.

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Jul 19 '05 #4
> > English?

No, this is Italian.


And, that was funny. :)
Jul 19 '05 #5
Randy Rahbar wrote on 04 feb 2004 in
microsoft.public.inetserver.asp.general:
> English?


No, this is Italian.


And, that was funny. :)


I am glad you are amused,
not all people share our amount of "hahaness".

=================

btw, what would the questioner have felt if
he had asked a perfectly on topic ASP question
in English and that was answered by:

Italian?
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Jul 19 '05 #6
alessandro wrote on 04 feb 2004 in
microsoft.public.inetserver.asp.general:
Salve volevo sottoporvi un problema
ho un index in http://www.palermoclub.com che utilizza
diverse inclusioni testa.asp per la testata
centro.asp per il centropagina
sotto.asp per il piŠ dipagina

per dare un p• di vivacit… al mio sito volevo creare una
visualizzazione random dell'inclusione centro.asp
Ho realizzato diversi centro: centro.asp, centro1.asp,
centro2.asp
ecc.ecc. Come fare per randomizzare l'inclusione centro.asp
Esiste la possibilit…?
Vi sarei molto grato
Saluti


Mi scusi di non comprendere e respondare in Italiano.

If we are talking frames:

<%
Randomize
r = Int(3 * Rnd)
if r=0 then
randomname = "centro.asp"
elseif r=1 then
randomname = "centro1.asp"
else
randomname = "centro2.asp"
end if
%>

<frameset rows="100,500,*">
<frame src="testa.asp">
<frame src="<%=randomname%>">
<frame src="sotto.asp">
<noframes>
<body>
</body>
</noframes>
</frameset>

not tested

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Jul 19 '05 #7
Si

Don Costanzo at work

"TomB" <sh*****@hotmailXXX.com> wrote in message
news:uk**************@TK2MSFTNGP09.phx.gbl...
Non potete includere dinamicamente, poichè sono proceduti prima dell'asp.
Ci è molto "inganna" per convincerlo per funzionare comunque.

Potreste usare i sottoprogrammi o le funzioni alle pagine incluse, quindi
denominate quelli dalle vostre dichiarazione condizionali... if/then

spiacenti per italiano difettoso... Ho usato il google.
"alessandro" <info_mail@(N O SP AMM PLEASEpalermoclub.com> wrote in message news:bv**********@lacerta.tiscalinet.it...
Salve volevo sottoporvi un problema
ho un index in http://www.palermoclub.com che utilizza diverse inclusioni testa.asp per la testata
centro.asp per il centropagina
sotto.asp per il piè dipagina

per dare un pò di vivacità al mio sito volevo creare una visualizzazione
random dell'inclusione centro.asp
Ho realizzato diversi centro: centro.asp, centro1.asp, centro2.asp

ecc.ecc.
Come fare per randomizzare l'inclusione centro.asp
Esiste la possibilità?
Vi sarei molto grato
Saluti


Jul 19 '05 #8
thanks

"Evertjan." <ex**************@interxnl.net> ha scritto nel messaggio
news:Xn********************@194.109.133.29...
alessandro wrote on 04 feb 2004 in
microsoft.public.inetserver.asp.general:
Salve volevo sottoporvi un problema
ho un index in http://www.palermoclub.com che utilizza
diverse inclusioni testa.asp per la testata
centro.asp per il centropagina
sotto.asp per il piS dipagina

per dare un p. di vivacit. al mio sito volevo creare una
visualizzazione random dell'inclusione centro.asp
Ho realizzato diversi centro: centro.asp, centro1.asp,
centro2.asp
ecc.ecc. Come fare per randomizzare l'inclusione centro.asp
Esiste la possibilit.?
Vi sarei molto grato
Saluti


Mi scusi di non comprendere e respondare in Italiano.

If we are talking frames:

<%
Randomize
r = Int(3 * Rnd)
if r=0 then
randomname = "centro.asp"
elseif r=1 then
randomname = "centro1.asp"
else
randomname = "centro2.asp"
end if
%>

<frameset rows="100,500,*">
<frame src="testa.asp">
<frame src="<%=randomname%>">
<frame src="sotto.asp">
<noframes>
<body>
</body>
</noframes>
</frameset>

not tested

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)

Jul 19 '05 #9
Unfortunatly the page testa.asp has also included pages, for example the
menu.asp

I not can use the frame but I would use the included random
The script that you give me is in the page
http://www.palermoclub.com/index2.asp

We are some error.

It's inpossible to use the included page random? Whitouth frames?

Your script is very interesting, but for my problem it not resolving.

Excuse me for my English, but i have study French, and now, I speak only
Italian, and I don't speak italian very well ;-)

Alessandro



"Evertjan." <ex**************@interxnl.net> ha scritto nel messaggio
news:Xn********************@194.109.133.29...
alessandro wrote on 04 feb 2004 in
microsoft.public.inetserver.asp.general:
Salve volevo sottoporvi un problema
ho un index in http://www.palermoclub.com che utilizza
diverse inclusioni testa.asp per la testata
centro.asp per il centropagina
sotto.asp per il piS dipagina

per dare un p. di vivacit. al mio sito volevo creare una
visualizzazione random dell'inclusione centro.asp
Ho realizzato diversi centro: centro.asp, centro1.asp,
centro2.asp
ecc.ecc. Come fare per randomizzare l'inclusione centro.asp
Esiste la possibilit.?
Vi sarei molto grato
Saluti


Mi scusi di non comprendere e respondare in Italiano.

If we are talking frames:

<%
Randomize
r = Int(3 * Rnd)
if r=0 then
randomname = "centro.asp"
elseif r=1 then
randomname = "centro1.asp"
else
randomname = "centro2.asp"
end if
%>

<frameset rows="100,500,*">
<frame src="testa.asp">
<frame src="<%=randomname%>">
<frame src="sotto.asp">
<noframes>
<body>
</body>
</noframes>
</frameset>

not tested

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)

Jul 19 '05 #10
alessandro wrote on 04 feb 2004 in
microsoft.public.inetserver.asp.general:
Unfortunatly the page testa.asp has also included pages, for example
the menu.asp
That remains possibl;e, also frames within frames are possible.
I not can use the frame but I would use the included random
The script that you give me is in the page
http://www.palermoclub.com/index2.asp

We are some error.
I get this:

Provider error '80040e4d'
Authentication failed.
/file_comuni/apridb.asp, line 5

That is another problem.

It's inpossible to use the included page random? Whitouth frames?
Do you mean this??

<!--#include virtual ="/testa.asp"-->

Yes, that is possible, but all 3? pages will be fetched serverside
Your script is very interesting, but for my problem it not resolving.


Please keep experimenting!

Take away the /file_comuni/apridb.asp temporarily and try again.
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Jul 19 '05 #11
in this moment my index page it is:
<!--#include file="file_comuni/testa.asp"-->
<!--#include file="centro1.asp"-->
<!--#include file="file_comuni/sotto.asp"-->

the apridb.asp is included in testa.asp
the menu.asp is included in testa.asp

the menudestra.asp is included in sotto.asp


"Evertjan." <ex**************@interxnl.net> ha scritto nel messaggio
news:Xn********************@194.109.133.29...
alessandro wrote on 04 feb 2004 in
microsoft.public.inetserver.asp.general:
Unfortunatly the page testa.asp has also included pages, for example
the menu.asp


That remains possibl;e, also frames within frames are possible.
I not can use the frame but I would use the included random
The script that you give me is in the page
http://www.palermoclub.com/index2.asp

We are some error.


I get this:

Provider error '80040e4d'
Authentication failed.
/file_comuni/apridb.asp, line 5

That is another problem.

It's inpossible to use the included page random? Whitouth frames?


Do you mean this??

<!--#include virtual ="/testa.asp"-->

Yes, that is possible, but all 3? pages will be fetched serverside
Your script is very interesting, but for my problem it not resolving.


Please keep experimenting!

Take away the /file_comuni/apridb.asp temporarily and try again.
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)

Jul 19 '05 #12
alessandro wrote on 05 feb 2004 in
microsoft.public.inetserver.asp.general:
in this moment my index page it is:
<!--#include file="file_comuni/testa.asp"-->
<!--#include file="centro1.asp"-->
<!--#include file="file_comuni/sotto.asp"-->

the apridb.asp is included in testa.asp
the menu.asp is included in testa.asp

the menudestra.asp is included in sotto.asp


You heve an error in the autentication
/file_comuni/apridb.asp, line 5

====================

If you include a file this way,
the code is just added to the final asp-file.

This can be done:
<!--#include file="testa.asp"-->
<%
Randomize
r = Int(3 * Rnd)
if r=0 then %>
<!--#include file="centro.asp"-->
<% elseif r=1 then %>
<!--#include file="centro1.asp"-->
<% else %>
<!--#include file="centro2.asp"-->
<% end if %>
<!--#include file="sotto.asp"-->

but it is very inefficient, because 3 files are included !!
[and if you have 50 possible "centro"-files,
it becomes terrible inefficient]

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Jul 19 '05 #13

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: PiGei | last post by:
hi all, I'm trying to use server.execute statement to include in an asp page another asp page with a parameter. That's because I've a parametric query in the second asp page and I have to pass...
6
by: TC | last post by:
Hi. I write a program in c language that read a text file and extrapolate the word. for all word the program calculate the number of the times that word is present in the text. The problem is the...
3
by: TC | last post by:
I'm not a C programmer. This is a good C? how check the return value of getch or scanf? and how check for the \n at the end of the text read? FEOF do not return true if the file (text file) is...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.