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 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?
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?
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?
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?
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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...
|
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();...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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,...
|
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...
|
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
|
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...
|
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...
|
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...
| |