Well, there's no way to really check if the button itself was pushed, but what happens 
when the refresh button is pushed is the asp page (and subframes) gets loaded as 
default. So if you save the STATE of an asp page (e.g. whatever query selected loaded) 
into a session variable, you can have that asp page check that session (when loaded by 
default) and load up that query if it exists in the session state. 

Let me know if you need me to be more clear...

-----Original Message-----
From: K Rao [mailto:[EMAIL PROTECTED] 
Sent: Friday, November 05, 2004 10:24 AM
To: [EMAIL PROTECTED]
Subject: RE: [ASP] Frames in ASP



Thanks John and Matias,
 
I will try both of your methods. Does ASP have any way to find out if refresh button 
was clicked? I can use page_load function but that wont solve the problem completely.
 
thanks guys..

Mat�as Ni�o ListMail <[EMAIL PROTECTED]> wrote:
How about storing the query in a session variable that gets checked every time that 
the results page gets loaded. 

For example, when the query gets submitted, it is also stored in a session variable. 
Thereby, whenever the results page gets refreshed (without a query) it checks to see 
if a prior query exists in the session variable. If so, it re-runs the query and loads 
it. 

Of course, there are memory implications cause you don't want to use session variables 
if you have hundreds/thousands of users, and you also might not want to re-run queries 
with every refresh if the queries themselves are heavy on database processing. 

-Matias


-----Original Message-----
From: kpraoasp [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 04, 2004 2: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









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


Yahoo! Groups SponsorADVERTISEMENT


---------------------------------
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 the Yahoo! Terms of Service. 


                        
---------------------------------
Do you Yahoo!?
 Check out the new Yahoo! Front Page.  www.yahoo.com/a

[Non-text portions of this message have been removed]







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



 





------------------------ 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

<*> 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