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*******@newsg roup.nospam 4 4150
On Sep 12, 9:04 am, "moondaddy" <moonda...@news group.nospamwro te:
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.locatio n =...... " 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 programmaticall y:
#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.publi c.dotnet.framew ork.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...@news group.nospamwro te:
>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.comw rote in message
news:45******** ******@TK2MSFTN GHUB02.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.locatio n =...... " 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 programmaticall y:
#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.publi c.dotnet.framew ork.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...@news group.nospamwro te:
>>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*******@news group.nospam> References: <eU************ **@TK2MSFTNGP03 .phx.gbl>
<11************ **********@k79g 2000hse.googleg roups.com>
<45************ **@TK2MSFTNGHUB 02.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.comw rote in message news:45******* *******@TK2MSFT NGHUB02.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.locatio n =...... " 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 programmaticall y:
#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.publi c.dotnet.framew ork.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...@news group.nospamwro te: 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 use that data to populate the
controls when the child page is opened again.
One of these objects contains an Array, and the page reloads fine using...
|
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();
myObject.calltype = "Edit"
retVal =
showModalDialog("Test.aspx",myObject,"dialogWidth:700px;dialogHeight:550px;s
tatus:0");
|
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 being passed to the page
specified in the Action property of the form. This is on a Windows 2000 Pro
PC.
I copied the code to another server...
|
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 hidden field in the aspx file
What is the best way todo this
Is it possible to add some sample code because a i have tried a lo
but nothing works
|
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 aspx page .
any one has any idea
--
Yazeed
..net Developer(c#)
| |
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 incorporate our HTML editor in our Portal
Software. Currently it works perfect with regular strings, but once you get
a well formed XHTML document in there,...
|
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 handle the upload?
thanks.
|
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 load the iframe with different .aspx pages. The
HTML/mark up for the .aspx pages executes every time, but the Page_Load
events for the pages never...
|
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 link that
generates an Excel file depending on the choices the suer has made on the
ASPX page. The Link doesn't actually Post the page, so I can't...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it. ...
| |
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...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
|
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...
|
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...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in...
|
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
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |