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

Passing data to aspx page from htm page via iframe

I have a htm page where I need to pass some data to an aspx page as a means
of sending data to the database. I don't need to see the aspx page so I was
going to put it in a hidden iframe. This works real good. Since I don't
need the aspx page to do any postback, is there a way to pass a parameter to
it with out it finishing the round trip back to the htm page?

Thanks.
--
mo*******@newsgroup.nospam
Sep 12 '07 #1
4 4138
On Sep 12, 9:04 am, "moondaddy" <moonda...@newsgroup.nospamwrote:
I have a htm page where I need to pass some data to an aspx page as a means
of sending data to the database. I don't need to see the aspx page so I was
going to put it in a hidden iframe. This works real good. Since I don't
need the aspx page to do any postback, is there a way to pass a parameter to
it with out it finishing the round trip back to the htm page?
What about AJAX?

Sep 12 '07 #2
Thanks for Alexey's input.

Hi Moondaddy,

Yes, using inner html frame is one means, you can simply reset the Iframe's
url(through "window.location =...... " script statement). Here are some
articles mentioned about the iframe location/url or refresh it through
script:

http://www.quirksmode.org/js/iframe.html

http://www.velocityreviews.com/forum...-changing.html

http://www.thescripts.com/forum/thread468654.html

Or as Alexey mentioned, you can also use AJAX approach(use XMLhttp
component) to send GET request to another page programmatically:

#Client Side Include DEMO - Using JavaScript / XMLHTTP
http://www.jmaguire.com/downloads/so...t_side_include
/

http://www.jibbering.com/2002/4/httprequest.html
In addition, for passing values/parameters, I sugguest you use querystring.
Thus, you can simply append them in url string.
Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
This posting is provided "AS IS" with no warranties, and confers no rights.


--------------------
>From: Alexey Smirnov <al************@gmail.com>
Newsgroups: microsoft.public.dotnet.framework.aspnet
Subject: Re: Passing data to aspx page from htm page via iframe
Date: Wed, 12 Sep 2007 01:24:05 -0700
>
On Sep 12, 9:04 am, "moondaddy" <moonda...@newsgroup.nospamwrote:
>I have a htm page where I need to pass some data to an aspx page as a
means
>of sending data to the database. I don't need to see the aspx page so I
was
>going to put it in a hidden iframe. This works real good. Since I don't
need the aspx page to do any postback, is there a way to pass a
parameter to
>it with out it finishing the round trip back to the htm page?

What about AJAX?

Sep 12 '07 #3
Thanks Steven.

These are some good links and I'll take some time to study them.

"Steven Cheng[MSFT]" <st*****@online.microsoft.comwrote in message
news:45**************@TK2MSFTNGHUB02.phx.gbl...
Thanks for Alexey's input.

Hi Moondaddy,

Yes, using inner html frame is one means, you can simply reset the
Iframe's
url(through "window.location =...... " script statement). Here are some
articles mentioned about the iframe location/url or refresh it through
script:

http://www.quirksmode.org/js/iframe.html

http://www.velocityreviews.com/forum...-changing.html

http://www.thescripts.com/forum/thread468654.html

Or as Alexey mentioned, you can also use AJAX approach(use XMLhttp
component) to send GET request to another page programmatically:

#Client Side Include DEMO - Using JavaScript / XMLHTTP
http://www.jmaguire.com/downloads/so...t_side_include
/

http://www.jibbering.com/2002/4/httprequest.html
In addition, for passing values/parameters, I sugguest you use
querystring.
Thus, you can simply append them in url string.
Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
This posting is provided "AS IS" with no warranties, and confers no
rights.


--------------------
>>From: Alexey Smirnov <al************@gmail.com>
Newsgroups: microsoft.public.dotnet.framework.aspnet
Subject: Re: Passing data to aspx page from htm page via iframe
Date: Wed, 12 Sep 2007 01:24:05 -0700
>>
On Sep 12, 9:04 am, "moondaddy" <moonda...@newsgroup.nospamwrote:
>>I have a htm page where I need to pass some data to an aspx page as a
means
>>of sending data to the database. I don't need to see the aspx page so I
was
>>going to put it in a hidden iframe. This works real good. Since I don't
need the aspx page to do any postback, is there a way to pass a
parameter to
>>it with out it finishing the round trip back to the htm page?

What about AJAX?


Sep 12 '07 #4
Thanks for your followup Moondaddy,

No problem. If you have any further questions later, welcome to post here.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
This posting is provided "AS IS" with no warranties, and confers no rights.


--------------------
>From: "moondaddy" <mo*******@newsgroup.nospam>
References: <eU**************@TK2MSFTNGP03.phx.gbl>
<11**********************@k79g2000hse.googlegroups .com>
<45**************@TK2MSFTNGHUB02.phx.gbl>
>Subject: Re: Passing data to aspx page from htm page via iframe
Date: Wed, 12 Sep 2007 09:36:18 -0500
>
Thanks Steven.

These are some good links and I'll take some time to study them.

"Steven Cheng[MSFT]" <st*****@online.microsoft.comwrote in message
news:45**************@TK2MSFTNGHUB02.phx.gbl...
>Thanks for Alexey's input.

Hi Moondaddy,

Yes, using inner html frame is one means, you can simply reset the
Iframe's
url(through "window.location =...... " script statement). Here are some
articles mentioned about the iframe location/url or refresh it through
script:

http://www.quirksmode.org/js/iframe.html

http://www.velocityreviews.com/forum...-changing.html

http://www.thescripts.com/forum/thread468654.html

Or as Alexey mentioned, you can also use AJAX approach(use XMLhttp
component) to send GET request to another page programmatically:

#Client Side Include DEMO - Using JavaScript / XMLHTTP
http://www.jmaguire.com/downloads/so...t_side_include
>/

http://www.jibbering.com/2002/4/httprequest.html
In addition, for passing values/parameters, I sugguest you use
querystring.
Thus, you can simply append them in url string.
Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
This posting is provided "AS IS" with no warranties, and confers no
rights.


--------------------
>>>From: Alexey Smirnov <al************@gmail.com>
Newsgroups: microsoft.public.dotnet.framework.aspnet
Subject: Re: Passing data to aspx page from htm page via iframe
Date: Wed, 12 Sep 2007 01:24:05 -0700
>>>
On Sep 12, 9:04 am, "moondaddy" <moonda...@newsgroup.nospamwrote:
I have a htm page where I need to pass some data to an aspx page as a
means
>>>of sending data to the database. I don't need to see the aspx page so
I
>was
>>>going to put it in a hidden iframe. This works real good. Since I
don't
>>>need the aspx page to do any postback, is there a way to pass a
parameter to
>>>it with out it finishing the round trip back to the htm page?

What about AJAX?



Sep 13 '07 #5

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

Similar topics

4
by: John MacIntyre | last post by:
Hi, I have a page with a series of child pages loaded into an iframe. When I move from page to page, I store an object containing the child's control data in a variable on the main page, then...
2
by: Jim M | last post by:
I hate to pass data on the query string. Is there a way to pass data to the serverside vb code using the object in showmodaldialog. var myObject = new Object(); var retVal = new Object();...
10
by: Noozer | last post by:
Below is some ASP, HTML and javascript. It is part of a page used to maintain a small database. This code did work at one time, but has since stopped. For some reason the data on my form is not...
1
by: Jan Van Steenbergen | last post by:
Hi all i'm having a little problem I have a aspx file with a iFrame defined The iframe is loaded with a html webeditor After editing data in the webeditor textbox, i want t get the data to a...
2
by: Yazeed_Roumer | last post by:
hi, i have an aspx page which contains i frame . this iframe contains a div which is editable div . after finish editting i need to have the content of this div in the codebehind of the parent...
1
by: Ryan Ternier | last post by:
I have an ASP page that needs to pass a string object full of HTML to a .NET iframe within that page. The String might be over 5000 characters of HTML. Reason we're doing this is to...
4
by: pbd22 | last post by:
hi. could somebody tell me, when uploading a file, i know the form where the upload component is must have enctype=multipart/form-data but, is the same true for the form with the server code to...
1
by: epower | last post by:
Hello, I am working on an ASP .NET application in Visual Studio 2005 and running IE7. This application has a page that contains an iframe which loads an .aspx page and hyperlinks that...
6
by: John Kotuby | last post by:
Hi all, I am trying to get an ASPX page written in VB and VS 2008 to open more quickly inside of am Iframe in a standard HTML page. One of the things the page does is to allow users to click a...
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
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: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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: 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.