473,721 Members | 2,220 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Server.execute problem

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 the value

<% Server.Execute( "result.asp?key =2") %>

I can't do it. That's the error message I get:

Server object, ASP 0231 (0x80004005)
Invalid URL form or fully-qualified absolute URL was used. Use relative
URLs

Any suggestion? Maybe the method doesn't support a parametric URL?

If so, how can I do?

thanks in advance
PGei
Jul 22 '05 #1
6 5290
By your code I suppose that result.asp is publish in the root of your web
server. Is it correct ?

Can I manually browse result.asp by using this url
http://webServerName/result.asp?key=2 ?

If your file is pulbish inside a path of Virtual Directory
/virt1/virt2/virt3 you have to write this code:

Server.Execute( "/virt1/virt2/virt3/result.asp?key= 2")

"PiGei" <ja************ ***@hotmail.com > wrote in message
news:%2******** ********@TK2MSF TNGP10.phx.gbl. ..
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 the value

<% Server.Execute( "result.asp?key =2") %>

I can't do it. That's the error message I get:

Server object, ASP 0231 (0x80004005)
Invalid URL form or fully-qualified absolute URL was used. Use relative
URLs

Any suggestion? Maybe the method doesn't support a parametric URL?

If so, how can I do?

thanks in advance
PGei

Jul 22 '05 #2
Facciamo prima in italiano, mi sa...

I due file si trovano nella stessa directory, la root del sito.
Se lancio la pagina senza includerla (http://localhost/result.asp?key=2)
con i parametri la query funziona perfettamente e ottengo l'output che
mi aspetto.

Se invece la includo allora ottengo l'errore.

che sarà?

grazie
Paolo

"Lamberti Fabrizio" <lambu@from_ita ly.it> wrote in message
news:%2******** ********@TK2MSF TNGP09.phx.gbl
By your code I suppose that result.asp is publish in the root of
your web server. Is it correct ?

Can I manually browse result.asp by using this url
http://webServerName/result.asp?key=2 ?

If your file is pulbish inside a path of Virtual Directory
/virt1/virt2/virt3 you have to write this code:

Server.Execute( "/virt1/virt2/virt3/result.asp?key= 2")

"PiGei" <ja************ ***@hotmail.com > wrote in message
news:%2******** ********@TK2MSF TNGP10.phx.gbl. ..
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 the value

<% Server.Execute( "result.asp?key =2") %>

I can't do it. That's the error message I get:

Server object, ASP 0231 (0x80004005)
Invalid URL form or fully-qualified absolute URL was used. Use
relative URLs

Any suggestion? Maybe the method doesn't support a parametric URL?

If so, how can I do?

thanks in advance
PGei

Jul 22 '05 #3
inclusione ?

ma non volevi fare una server execute ?

suppongo che ti sia sbagliato ora a scrivere.

ho il sospetto che la server.execute non possa prendere url con parametri.

Prova a settare in una variabile di sessione quel parametro e a farglielo
recuperare dalla sessione alla result.asp.

così funzionata di sicuro perchè io lo faccio senza problemi

"PiGei" <ja************ ***@hotmail.com > wrote in message
news:ur******** *****@TK2MSFTNG P15.phx.gbl...
Facciamo prima in italiano, mi sa...

I due file si trovano nella stessa directory, la root del sito.
Se lancio la pagina senza includerla (http://localhost/result.asp?key=2)
con i parametri la query funziona perfettamente e ottengo l'output che
mi aspetto.

Se invece la includo allora ottengo l'errore.

che sarà?

grazie
Paolo

"Lamberti Fabrizio" <lambu@from_ita ly.it> wrote in message
news:%2******** ********@TK2MSF TNGP09.phx.gbl
By your code I suppose that result.asp is publish in the root of
your web server. Is it correct ?

Can I manually browse result.asp by using this url
http://webServerName/result.asp?key=2 ?

If your file is pulbish inside a path of Virtual Directory
/virt1/virt2/virt3 you have to write this code:

Server.Execute( "/virt1/virt2/virt3/result.asp?key= 2")

"PiGei" <ja************ ***@hotmail.com > wrote in message
news:%2******** ********@TK2MSF TNGP10.phx.gbl. ..
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 the value

<% Server.Execute( "result.asp?key =2") %>

I can't do it. That's the error message I get:

Server object, ASP 0231 (0x80004005)
Invalid URL form or fully-qualified absolute URL was used. Use
relative URLs

Any suggestion? Maybe the method doesn't support a parametric URL?

If so, how can I do?

thanks in advance
PGei


Jul 22 '05 #4
cercherò di spiegarmi meglio...

il sito è quello di una squadra di basket. nella home page, oltre a
varie cose c'è anche una tabella in cui visualizzo gli ultimi tre
risultati ottenuti (memorizzati in un database).

per farlo utilizzo la pagina result.asp a cui passo il parametro della
query

la pagina result.asp in realtà serve soltanto per visualizzare quel box
in home page e non ha vita propria benché richiamata da sola visualizzi
il risultato della query (quindi la pagina a cui passo il parametro
funziona perfettamente).

quello che vorrei fare è includere nella index.asp la result.asp a cui
passo il parametro per la query.
al momento invece passo il parametro staticamente all'interno del codice
della result.asp ma capisci che se devo modificare il parametro devo
cambiare la result.asp mentre è più comodo cambiare il parametro della
chiamata.

siccome con la procedura include virtual non posso passare parametri
pensavo di utilizzare la server.execute ma anche in questo caso non
funziona... ci saà pure un modo per farlo

PGei

"Lamberti Fabrizio" <lambu@from_ita ly.it> wrote in message
news:ef******** ******@TK2MSFTN GP14.phx.gbl
inclusione ?

ma non volevi fare una server execute ?

suppongo che ti sia sbagliato ora a scrivere.

ho il sospetto che la server.execute non possa prendere url con
parametri.

Prova a settare in una variabile di sessione quel parametro e a
farglielo recuperare dalla sessione alla result.asp.

così funzionata di sicuro perchè io lo faccio senza problemi

Jul 22 '05 #5
fallo con la server.execute senza passare alcun parametro perchè la execute
non te lo permette.

quel parametro lo setti come variabile di sessione prima di chiamare la
server.execute

Session("key") = 2
Server.execute( "content.as p")

Devi solo modificare il modo in cui la content.asp recupera il parametro.

"PiGei" <ja************ ***@hotmail.com > wrote in message
news:uh******** ******@TK2MSFTN GP09.phx.gbl...
cercherò di spiegarmi meglio...

il sito è quello di una squadra di basket. nella home page, oltre a
varie cose c'è anche una tabella in cui visualizzo gli ultimi tre
risultati ottenuti (memorizzati in un database).

per farlo utilizzo la pagina result.asp a cui passo il parametro della
query

la pagina result.asp in realtà serve soltanto per visualizzare quel box
in home page e non ha vita propria benché richiamata da sola visualizzi
il risultato della query (quindi la pagina a cui passo il parametro
funziona perfettamente).

quello che vorrei fare è includere nella index.asp la result.asp a cui
passo il parametro per la query.
al momento invece passo il parametro staticamente all'interno del codice
della result.asp ma capisci che se devo modificare il parametro devo
cambiare la result.asp mentre è più comodo cambiare il parametro della
chiamata.

siccome con la procedura include virtual non posso passare parametri
pensavo di utilizzare la server.execute ma anche in questo caso non
funziona... ci saà pure un modo per farlo

PGei

"Lamberti Fabrizio" <lambu@from_ita ly.it> wrote in message
news:ef******** ******@TK2MSFTN GP14.phx.gbl
inclusione ?

ma non volevi fare una server execute ?

suppongo che ti sia sbagliato ora a scrivere.

ho il sospetto che la server.execute non possa prendere url con
parametri.

Prova a settare in una variabile di sessione quel parametro e a
farglielo recuperare dalla sessione alla result.asp.

così funzionata di sicuro perchè io lo faccio senza problemi


Jul 22 '05 #6
OK, tutto chiaro.
mi chiedevo soprattutto questo, se la server.execute permetteva o non il
parametro

grazie
PGei

"Lamberti Fabrizio" <lambu@from_ita ly.it> wrote in message
news:eA******** ******@tk2msftn gp13.phx.gbl
fallo con la server.execute senza passare alcun parametro perchè la
execute non te lo permette.

quel parametro lo setti come variabile di sessione prima di
chiamare la server.execute

Session("key") = 2
Server.execute( "content.as p")

Devi solo modificare il modo in cui la content.asp recupera il
parametro.

Jul 22 '05 #7

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

Similar topics

2
7321
by: Yves Touze | last post by:
Hi All, I'm trying to migrate from SQL Server 7.0 to SQL Server 2000. I've got some ASP page which call VB components that retrieve shaped recordsets from SQL Server using the MSDATASHAPE provider. Precisely, here is the code i have Dim Cmdobj As New ADODB.Command Cmdobj.ActiveConnection = oconn Cmdobj.CommandType = adCmdStoredProc
1
5913
by: Chris | last post by:
Background: I am using a MS Access 2000 front end with SQL Server 8.0 back end. I have the requirement to import all text files (regardless of filename) from a given folder on the network into a table within SQL Server. This import needs to run continuously, as more text files will be saved in the folder by a separate system and they need to be updated into the SQL Server table. I have a DTS which can import all text files from the...
4
6473
by: banz | last post by:
Hello I have a problem to resolve: I wrote a Perlscript which caches data from a server (local on my machine) I would like to have a other connection to a remote server but I don't know how to define the servername / hostname in my Perl Progrem.. Here is the code:
0
1018
by: chris s. | last post by:
I've got a problem concerning Server.Execute and the viewstate. It's not a ViewStateMacEnabled=false problem as it happens - less of a problem and more a question of 'is it possible'. I've got a main aspx page which houses the layout html, and executes another .aspx file using Server.Execute, this is then fed to a writer and finally Response.Write'n. My problem comes when putting a <form runat="server"> inside the child page (the one to...
2
1879
by: Frank Millman | last post by:
Hi all I have found a problem using MS Sql Server connecting via the odbc module from python-win32. I am liaising with Mark Hammond, and he is trying to help, but he is very busy, and I cannot be certain whether the problem originates with the odbc module, with the ODBC Driver, or with Sql Server itself. If anyone can help me to pinpoint this, I will be very grateful.
2
2978
by: Sike | last post by:
Hi everyone, I've been browsing this and a few other related newsgroups trying to get my head around this problem, and so far all the trails seem to go cold, without an acceptable solution being reached. I'm posting here because there seems to be a few MVP's knocking around, and if they dont know, then it's a safe bet nobody does. I'm beginning to think that what I want to do is simply not possible - but i'll put it out there once...
12
2252
by: Light | last post by:
Hi all, I posted this question in the sqlserver.newusers group but I am not getting any response there so I am going to try it on the fine folks here:). I inherited some legacy ASP codes in my office. The original code's backend is using the SQL Server 2000 and I am testing to use it on the Express edition. And I run into the following problem.
4
14137
by: Tonio Tanzi | last post by:
I have the following problem in a Win 2000 Server + SQL Server 2000 environment and I hope somewhat can help me to resolve it (after many days of useless attempts I am desperate). In my database I have two table: - master(id, field1, field2, ...) - detail(id0, id, progr, data, sede, esecutori, brani_autori) in a master-detail relation with "id" as foreign key. The fields of the "detail" table are:
17
7141
by: =?Utf-8?B?SmltIFJvZGdlcnM=?= | last post by:
I am trying to replace a huge chunck of code that currently I incorporate with an #Include directive. The program rarely has to flow through that code, so I thought it would be better if I used Server.Execute. I found I can pass data TO the called asp file by creating an HTML <input> and erading it after I get there. However, I also need to read back ONE variable that the called file must set. I cannot figuer out how to do that. My...
0
8730
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9215
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9131
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9064
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6669
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5981
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4753
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3189
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2576
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.