Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Is it possible refresh page in another frame

Reply
Thread Tools

Is it possible refresh page in another frame

 
 
AndrewV
Guest
Posts: n/a
 
      02-13-2004
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.


 
Reply With Quote
 
 
 
 
bruce barker
Guest
Posts: n/a
 
      02-13-2004
simple html 101.

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

-- bruce (sqlwork.com)

"AndrewV" <> wrote in message
news:...
> 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.
>
>



 
Reply With Quote
 
 
 
 
Kevin Spencer
Guest
Posts: n/a
 
      02-13-2004
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" <> wrote in message
news:...
> 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.
>
>



 
Reply With Quote
 
ajaymehra
Guest
Posts: n/a
 
      02-13-2004

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

 
Reply With Quote
 
AndrewV
Guest
Posts: n/a
 
      02-13-2004
Great advices, I got it to work now. Really appreciate it Bruce, Ajay,
Kevin. Have a great day guys.

"AndrewV" <> wrote in message
news:...
> 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.
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
is it possible to refresh one page from another? djc ASP .Net 2 01-09-2008 10:48 PM
Refresh page in another frame every x seconds Rule-Ur-Wayz HTML 5 11-26-2007 01:35 AM
Frame B URL displayed in Frame A, possible? nickkaplan@gmail.com Javascript 1 10-18-2007 01:40 PM
Refresh one frame from link in another frame? Noozer HTML 0 10-22-2005 09:23 AM
how to redirect from 3 frame page to single page frame? Zalek Bloom ASP General 1 09-23-2003 02:23 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57