473,698 Members | 2,411 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 4173
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.c om> wrote in message
news:uB******** *****@tk2msftng p13.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.f rames("FrameNam e") or window.parent.f rames(0)

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

window.parent.f rames("FrameNam e").location = "/someURL.aspx?th is=that";

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

"AndrewV" <no****@yahoo.c om> wrote in message
news:uB******** *****@tk2msftng p13.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.r esult.location. href = "resultspage.as px?"
[textboxinformat ion 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.c om> wrote in message
news:uB******** *****@tk2msftng p13.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
2421
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 on one of the items in the left frame, it targets the right frame and displays a form prefilled with information for the item you clicked. The problem is the left frame's list just shows the names of the items, and the name of the item is...
8
2863
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 authentication and think I know how to accomplish this part. My problem is that the top frame does not reload to get to the "If User.Identity.IsAuthenticated Then". Please don't tell me I shouldn't be using frames; this is a school assignment and the...
1
1410
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 to a new ASP.NET page too. How can I do this?
4
18759
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
3101
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 frames (one on the left and another on the right). frameset rows="90,100%" border="0" frameSpacing="0" frameBorder="0"> frame src="Header.aspx" name="top">
21
8149
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 if I could place a hidden button in a frame that would have the attribute to refresh the other. I would need code to "invoke" the onclick event (ie i need code to click the button). is this possible? thanks.
1
6512
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 jsp named action.jsp.In this action.jsp, iam performing the insert,update,delete operations of 2 fields which are also in main.jsp and frame.jsp. After performing the operations, that window (action.jsp) is closed and the values are updated in...
25
2541
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. every 5 seconds, i just want to refresh it ONLY on server change just like desktop applications do. The problem is that refreshing evry n seconds has to much impact on my web server. The refresh action should be taken only when something
5
3196
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 user gets a new message. Obviously I would have one message icon which doesn't flash and another which does. Right now i refresh the top frame every 30 seconds so that the stats update. But is there an easier way to refresh? I mean right now the...
0
8675
marktang
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 usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8604
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9160
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, 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. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8897
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 most users, this new feature is actually very convenient. If you want to control the update process,...
0
7729
agi2029
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 launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4370
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3050
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
2
2331
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2002
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.