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

Is it possible refresh page in another frame

I have an html page that has 2 frames ("input" and "result"). In the "input"
frame, there is a text box and a button. User enters an id in the text box,
then click on the button. In the click event, I would like to call an
asp.net page, and passing in the text box value as a query string parameter
(http://mysite/mypage.aspx?id=x) and display the result in the "result"
frame. I couldn't find a way to do it. Please give me some pointer on how to
accomplish this.

Thanks very much in advance.
Nov 18 '05 #1
4 4159
simple html 101.

<form target="result" action="mypage.asp">
<input type=text name="x">
<input type=submit value="press">
</form>

-- bruce (sqlwork.com)

"AndrewV" <no****@yahoo.com> wrote in message
news:uB*************@tk2msftngp13.phx.gbl...
I have an html page that has 2 frames ("input" and "result"). In the "input" frame, there is a text box and a button. User enters an id in the text box, then click on the button. In the click event, I would like to call an
asp.net page, and passing in the text box value as a query string parameter (http://mysite/mypage.aspx?id=x) and display the result in the "result"
frame. I couldn't find a way to do it. Please give me some pointer on how to accomplish this.

Thanks very much in advance.

Nov 18 '05 #2
In a frameset, on the client side, you can refer to the other frames in
JavaScript by referring to the parent window and its frames Collection. So,
you can manipulate any other frame from a given frame with something like:

window.parent.frames("FrameName") or window.parent.frames(0)

and work with the document that way. For example, you could do what you're
saying by:

window.parent.frames("FrameName").location = "/someURL.aspx?this=that";

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"AndrewV" <no****@yahoo.com> wrote in message
news:uB*************@tk2msftngp13.phx.gbl...
I have an html page that has 2 frames ("input" and "result"). In the "input" frame, there is a text box and a button. User enters an id in the text box, then click on the button. In the click event, I would like to call an
asp.net page, and passing in the text box value as a query string parameter (http://mysite/mypage.aspx?id=x) and display the result in the "result"
frame. I couldn't find a way to do it. Please give me some pointer on how to accomplish this.

Thanks very much in advance.

Nov 18 '05 #3

You can do it on the client side by using Javascript.
On your button click event you can call a JScript function that will d
something like this

window.parent.result.location.href = "resultspage.aspx?"
[textboxinformation to be passed]

Ajay

AndrewV wrote:
*I have an html page that has 2 frames ("input" and "result"). In th
"input"
frame, there is a text box and a button. User enters an id in th
text box,
then click on the button. In the click event, I would like to cal
an
asp.net page, and passing in the text box value as a query strin
parameter
(http://mysite/mypage.aspx?id=x) and display the result in th
"result"
frame. I couldn't find a way to do it. Please give me some pointer o
how to
accomplish this.

Thanks very much in advance.


ajaymehr
-----------------------------------------------------------------------
Posted via http://www.mcse.m
-----------------------------------------------------------------------
View this thread: http://www.mcse.ms/message390632.htm

Nov 18 '05 #4
Great advices, I got it to work now. Really appreciate it Bruce, Ajay,
Kevin. Have a great day guys.

"AndrewV" <no****@yahoo.com> wrote in message
news:uB*************@tk2msftngp13.phx.gbl...
I have an html page that has 2 frames ("input" and "result"). In the "input" frame, there is a text box and a button. User enters an id in the text box, then click on the button. In the click event, I would like to call an
asp.net page, and passing in the text box value as a query string parameter (http://mysite/mypage.aspx?id=x) and display the result in the "result"
frame. I couldn't find a way to do it. Please give me some pointer on how to accomplish this.

Thanks very much in advance.

Nov 18 '05 #5

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

Similar topics

5
by: Dan | last post by:
We have a simple site. It's a frameset with two frames a left and a right. The left frame is essentially a list of records from a database (using a server-side repeater control). When you click...
8
by: Judy Ward | last post by:
I have an index.aspx with frames. The top frame has a navigation bar with a "Login" hyperlink. If the user has already logged in I want this link to change to "Logout". I am using forms-based...
1
by: Shwe Ko | last post by:
Hi all, I am very new to Web development. I have a page with two Frames. Both link to ASP.NET pages. When clicked on first frame, I want to refresh the second frame. But second frame may link...
4
by: Xerxes | last post by:
Hi, a newbie question: How can I refresh a page in a separate frame. For example, when someone logs in in the main frmae, I want to refresh another frame to display info differently. TIA.
2
by: Charles A. Lackman | last post by:
Hello, I have an ASPX page that is storing data into a session Variable: Session("Name") = "Chuck" When the User clicks "Next" on the page, it naviages to "Details.aspx", Details.aspx has two...
21
by: Ben | last post by:
Hello I have frames set up in an asp.net application and need one frame to refresh another. Seeing as events need to be registered at the time the page is sent from the server, I was wondering...
1
by: vasavi | last post by:
Hi all, My requirement is... Iam using jsp frames.In main.jsp, iframe is there.In that iframe , another jsp named frame.jsp is being called.In frame.jsp, one button is there which opens another...
25
by: Piotr Nowak | last post by:
Hi, Say i have a server process which listens for some changes in database. When a change occurs i want to refresh my page in browser by notyfinig it. I do not want to refresh my page i.e....
5
by: Kaante | last post by:
Hi, I basically have two frames on my page, the top one contains users stats and the bottom frame contains the website. I want to have a message icon on the top frame which would flash once the...
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: 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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
Oralloy
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.