Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old July 19th, 2005, 11:40 AM
alessandro
Guest
 
Posts: n/a
Default 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



  #2  
Old July 19th, 2005, 11:40 AM
TomB
Guest
 
Posts: n/a
Default Re: INclusione randomizzata in ASP

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:bvqugh$ghj$1@lacerta.tiscalinet.it...[color=blue]
> 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[/color]
ecc.ecc.[color=blue]
> Come fare per randomizzare l'inclusione centro.asp
> Esiste la possibilità?
> Vi sarei molto grato
> Saluti
>
>
>[/color]


  #3  
Old July 19th, 2005, 11:40 AM
Roy Danon
Guest
 
Posts: n/a
Default Re: INclusione randomizzata in ASP

English?

"alessandro" <info_mail@(N O SP AMM PLEASEpalermoclub.com> wrote in message
news:bvqugh$ghj$1@lacerta.tiscalinet.it...[color=blue]
> 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[/color]
ecc.ecc.[color=blue]
> Come fare per randomizzare l'inclusione centro.asp
> Esiste la possibilità?
> Vi sarei molto grato
> Saluti
>
>
>[/color]


  #4  
Old July 19th, 2005, 11:40 AM
Evertjan.
Guest
 
Posts: n/a
Default Re: INclusione randomizzata in ASP

Roy Danon wrote on 04 feb 2004 in
microsoft.public.inetserver.asp.general:[color=blue]
> "alessandro" <info_mail@(N O SP AMM PLEASEpalermoclub.com> wrote in
> message news:bvqugh$ghj$1@lacerta.tiscalinet.it...[color=green]
>> 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[/color]
> ecc.ecc.[color=green]
>> Come fare per randomizzare l'inclusione centro.asp
>> Esiste la possibilità?
>> Vi sarei molto grato
>> Saluti[/color]
>
> English?[/color]

No, this is Italian.

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
  #5  
Old July 19th, 2005, 11:40 AM
Randy Rahbar
Guest
 
Posts: n/a
Default Re: INclusione randomizzata in ASP

> > English?[color=blue]
>
> No, this is Italian.[/color]

And, that was funny. :)


  #6  
Old July 19th, 2005, 11:40 AM
Evertjan.
Guest
 
Posts: n/a
Default Re: INclusione randomizzata in ASP

Randy Rahbar wrote on 04 feb 2004 in
microsoft.public.inetserver.asp.general:[color=blue][color=green][color=darkred]
>> > English?[/color]
>>
>> No, this is Italian.[/color]
>
> And, that was funny. :)[/color]

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)
  #7  
Old July 19th, 2005, 11:40 AM
Evertjan.
Guest
 
Posts: n/a
Default Re: INclusione randomizzata in ASP

alessandro wrote on 04 feb 2004 in
microsoft.public.inetserver.asp.general:
[color=blue]
> 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[/color]

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)
  #8  
Old July 19th, 2005, 11:40 AM
Ray at
Guest
 
Posts: n/a
Default Re: INclusione randomizzata in ASP

Si

Don Costanzo at work

"TomB" <shuckle@hotmailXXX.com> wrote in message
news:ukb7D8y6DHA.2496@TK2MSFTNGP09.phx.gbl...[color=blue]
> 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[/color]
message[color=blue]
> news:bvqugh$ghj$1@lacerta.tiscalinet.it...[color=green]
> > Salve volevo sottoporvi un problema
> > ho un index in http://www.palermoclub.com che utilizza diverse[/color][/color]
inclusioni[color=blue][color=green]
> > 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[/color]
> ecc.ecc.[color=green]
> > Come fare per randomizzare l'inclusione centro.asp
> > Esiste la possibilità?
> > Vi sarei molto grato
> > Saluti
> >
> >
> >[/color]
>
>[/color]


  #9  
Old July 19th, 2005, 11:40 AM
alessandro
Guest
 
Posts: n/a
Default Re: INclusione randomizzata in ASP

thanks

"Evertjan." <exjxw.hannivoort@interxnl.net> ha scritto nel messaggio
news:Xns9485AFEDCEBB3eejj99@194.109.133.29...[color=blue]
> alessandro wrote on 04 feb 2004 in
> microsoft.public.inetserver.asp.general:
>[color=green]
> > 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[/color]
>
> 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)[/color]


  #10  
Old July 19th, 2005, 11:40 AM
alessandro
Guest
 
Posts: n/a
Default Re: INclusione randomizzata in ASP

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." <exjxw.hannivoort@interxnl.net> ha scritto nel messaggio
news:Xns9485AFEDCEBB3eejj99@194.109.133.29...[color=blue]
> alessandro wrote on 04 feb 2004 in
> microsoft.public.inetserver.asp.general:
>[color=green]
> > 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[/color]
>
> 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)[/color]


  #11  
Old July 19th, 2005, 11:41 AM
Evertjan.
Guest
 
Posts: n/a
Default Re: INclusione randomizzata in ASP

alessandro wrote on 04 feb 2004 in
microsoft.public.inetserver.asp.general:[color=blue]
> Unfortunatly the page testa.asp has also included pages, for example
> the menu.asp[/color]

That remains possibl;e, also frames within frames are possible.
[color=blue]
> 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.[/color]

I get this:

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

That is another problem.

[color=blue]
> It's inpossible to use the included page random? Whitouth frames?[/color]

Do you mean this??

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

Yes, that is possible, but all 3? pages will be fetched serverside
[color=blue]
> Your script is very interesting, but for my problem it not resolving.[/color]

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)
  #12  
Old July 19th, 2005, 11:41 AM
alessandro
Guest
 
Posts: n/a
Default Re: INclusione randomizzata in ASP

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." <exjxw.hannivoort@interxnl.net> ha scritto nel messaggio
news:Xns9485DFAC65814eejj99@194.109.133.29...[color=blue]
> alessandro wrote on 04 feb 2004 in
> microsoft.public.inetserver.asp.general:[color=green]
> > Unfortunatly the page testa.asp has also included pages, for example
> > the menu.asp[/color]
>
> That remains possibl;e, also frames within frames are possible.
>[color=green]
> > 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.[/color]
>
> I get this:
>
> Provider error '80040e4d'
> Authentication failed.
> /file_comuni/apridb.asp, line 5
>
> That is another problem.
>
>[color=green]
> > It's inpossible to use the included page random? Whitouth frames?[/color]
>
> Do you mean this??
>
> <!--#include virtual ="/testa.asp"-->
>
> Yes, that is possible, but all 3? pages will be fetched serverside
>[color=green]
> > Your script is very interesting, but for my problem it not resolving.[/color]
>
> 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)[/color]


  #13  
Old July 19th, 2005, 11:42 AM
Evertjan.
Guest
 
Posts: n/a
Default Re: INclusione randomizzata in ASP

alessandro wrote on 05 feb 2004 in
microsoft.public.inetserver.asp.general:
[color=blue]
> 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
>[/color]

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)
 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles