473,378 Members | 1,571 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,378 software developers and data experts.

Retrieve a page content into a variable

Question 1
Is there a way to execute a page, retrieve some information out of it and
then present it in my page?
example:
The user access MyPage.asp
MyPage.asp <somehow, internally> calls "http://www.weather.com/Local?ZIP=123456"
Store it's contents into a variable.
Retrieves the current temperature from that page and presents it as part
of MyPage.asp
This being done in the Server, without the user knowing what happened.
To the user the current temperature is part of the html code of MyPage.asp
The Server.Execute and Server.Transfer does not do what I need. At least
that I know of, maybe by adding some kind of parameter the .Execute won't
display the contents of the page.
Question 2
I know that you can 'trigger' asp pages that uses the .QueryString method
simply by calling them and adding the variables as part of the address
example: "http://www.weather.com/Local?ZIP=123456"

Is there any way of doing the same for an asp page that uses the .Form method
of retrieval, from a POST?

Thank you,
Jul 19 '05 #1
1 2939
http://www.aspfaq.com/2173


"Carlos Gomez" <co********@yahoo.com> wrote in message
news:84**************************@posting.google.c om...
Question 1
Is there a way to execute a page, retrieve some information out of it and
then present it in my page?
example:
The user access MyPage.asp
MyPage.asp <somehow, internally> calls "http://www.weather.com/Local?ZIP=123456" Store it's contents into a variable.
Retrieves the current temperature from that page and presents it as part
of MyPage.asp
This being done in the Server, without the user knowing what happened.
To the user the current temperature is part of the html code of MyPage.asp
The Server.Execute and Server.Transfer does not do what I need. At least
that I know of, maybe by adding some kind of parameter the .Execute won't
display the contents of the page.
Question 2
I know that you can 'trigger' asp pages that uses the .QueryString method
simply by calling them and adding the variables as part of the address
example: "http://www.weather.com/Local?ZIP=123456"

Is there any way of doing the same for an asp page that uses the .Form method of retrieval, from a POST?

Thank you,

Jul 19 '05 #2

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

Similar topics

2
by: RiGGa | last post by:
Hi, I am relatively new to php however I am working on a site and appear to be getting on quite well. Most of my pages are coded in php and work fine however what I would like to do is be able...
6
by: Geoff | last post by:
Here's the situation. I have a static html page which we want to update to include some dynamic content. I want a counter that keeps track of the number of times anyone presses the "add" button,...
11
by: Tom Szabo | last post by:
I like to know if there is a JS function to retrieve a URL into a variable cURL = somefunction("http://www.domain.com"); Is there something like this? TIA, Tom
6
by: scottyman | last post by:
I can't make this script work properly. I've gone as far as I can with it and the rest is out of my ability. I can do some html editing but I'm lost in the Java world. The script at the bottom of...
3
by: Kees de Winter | last post by:
Hi, If I have a TextBox place inside a content placeholder then at runtime the TextBox's name changes to ctl00_ContentPlaceHolder1_tbCity. What is the best way to get the value of the TextBox...
2
by: adam | last post by:
Hi ASP Expert, My goal is to retrieve my local machine's %USERNAME% environment variable from ASP page. When I enter http://RemoteServerName/testusername.asp?id=%USERNAME% directly into the IE...
2
by: * Tong * | last post by:
Hi, I'm wondering if you can show me an example php page that allows me to retrieve and display 3rd party pages. I.e., when my php script is called as http://site/path/getit.php?file_key it...
4
by: Michael | last post by:
I am using Web Developer Express 2005. I created a little form to add some content to a database. I keep the formview default mode in the insert mode. The values are being added to the database...
12
lifeisgreat20009
by: lifeisgreat20009 | last post by:
I am a newbie to Struts and JSP...I have been working on the code below for 5 hours now..I googled a lot but couldn't get much help so finally I am here.. Hoping of getting my problem solved. Please...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...

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.