473,237 Members | 1,247 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,237 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 4129
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...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...

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.