Rather than instructing the user to refresh their browser, you could
accomplish the same thing with a link targeted at the results page's
frame.  That would make the browser re-fetch the results page in place
it in the same frame again--essentially the same as a refresh, but with
more control over what gets refreshed (just a frame, not the whole
frameset).  If you use this technique, then I suggest you add a meta
expiration tage to your results page so that it does not get cached;
otherwise the link would just load the cached version; but with the meta
tag the user's browser will *always* get a fresh copy.

You can accomplish all of this in a little more seamless, more
sophisticated way using JavaScript, but I don't like relying on
JavaScript.

- Vieth 

> -----Original Message-----
> From: kpraoasp [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, November 04, 2004 1:55 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [ASP] Frames in ASP
> 
> 
> 
> 
> Thanks John. It does help me a bit. Here's what the users do. 
> When the get the results for the query, they click on a 
> particular record, this opens a new window and then update 
> some of the fields and submit it. The status field changes 
> accordingly which is displayed in the results section. The 
> users manually refresh the browser and this will tell them 
> whether the updates were done satisfactorily or not. 
> 
> Thanks,
> KP
> --- In [EMAIL PROTECTED], "John Vieth" 
> <[EMAIL PROTECTED]> wrote:
> > Why do you want to refresh?  With frames, people must refresh the 
> > individual frame documents by selecting the frame and choosing
> refresh.
> > Otherwise the whole frameset gets refreshed, which reverts the 
> > individual frames back to the default specified by the frameset.
> > 
> > You could get around this using cookies.  The results page could
> check a
> > cookie to see what results should be displayed.
> > 
> > But I'm wondering why you're concerned about refreshing?  If you'd
> like
> > to create the illusion of dynamic content, you could have the frame 
> > document use a meta refresh tag to automatically refresh at certain 
> > intervals.  This would refresh only that document in that
> particular
> > frame, not the rest of the frameset.
> > 
> > Hope that helps. 
> > 
> > - Vieth
> > 
> > > -----Original Message-----
> > > From: kpraoasp [mailto:[EMAIL PROTECTED]
> > > Sent: Thursday, November 04, 2004 1:02 PM
> > > To: [EMAIL PROTECTED]
> > > Subject: [ASP] Frames in ASP
> > > 
> > > 
> > > 
> > > 
> > > Hi,
> > > 
> > > I have an html page which has frames. The srce for one of 
> the frame 
> > > is a query page(query.asp) and the source for other frame
> is the
> > > results(results.asp) which is displayed when the submit button is 
> > > clicked on the query page. When the HTML page is first opened, it 
> > > shows only query.asp. The results.asp is displayed when 
> the submit 
> > > button is clicked. The problem i am having is when i do a 
> refresh, 
> > > the results.asp page disappears. Is there a way to retain the 
> > > results.asp after a refresh? I am using IIS 6.0. In IIS4.0, this 
> > > used to work.
> > > 
> > > Thanks,
> > > KP
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > ------------------------ Yahoo! Groups Sponsor 
> > > --------------------~--> Make a clean sweep of pop-up ads. Yahoo! 
> > > Companion Toolbar.
> > > Now with Pop-Up Blocker. Get it for free!
> > > http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/17folB/TM
> > > --------------------------------------------------------------
> > > ------~->
> > > 
> > > --------------------------------------------------------------
> > > -------    
> > >  Home       : http://groups.yahoo.com/group/active-server-pages
> > > -----------------------------------------------------------------
> ----
> > >  Post       : [EMAIL PROTECTED]
> > >  Subscribe  : [EMAIL PROTECTED]
> > >  Unsubscribe: [EMAIL PROTECTED]
> > > -----------------------------------------------------------------
> ---- 
> > > Yahoo! Groups Links
> > > 
> > > 
> > > 
> > >  
> > > 
> > > 
> > > 
> > > 
> > > 
> > >
> 
> 
> 
> 
> 
> 
> 
> 
> ------------------------ Yahoo! Groups Sponsor 
> --------------------~-->
> $9.95 domain names from Yahoo!. Register anything.
> http://us.click.yahoo.com/J8kdrA/y20IAA/yQLSAA/17folB/TM
> --------------------------------------------------------------
> ------~-> 
> 
> --------------------------------------------------------------
> -------    
>  Home       : http://groups.yahoo.com/group/active-server-pages
> ---------------------------------------------------------------------
>  Post       : [EMAIL PROTECTED]
>  Subscribe  : [EMAIL PROTECTED]
>  Unsubscribe: [EMAIL PROTECTED]
> ---------------------------------------------------------------------
> Yahoo! Groups Links
> 
> 
> 
>  
> 
> 
> 
> 
> 
> 


------------------------ Yahoo! Groups Sponsor --------------------~--> 
$9.95 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/J8kdrA/y20IAA/yQLSAA/17folB/TM
--------------------------------------------------------------------~-> 

---------------------------------------------------------------------    
 Home       : http://groups.yahoo.com/group/active-server-pages
---------------------------------------------------------------------
 Post       : [EMAIL PROTECTED]
 Subscribe  : [EMAIL PROTECTED]
 Unsubscribe: [EMAIL PROTECTED]
--------------------------------------------------------------------- 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/active-server-pages/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to