467,074 Members | 875 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,074 developers. It's quick & easy.

Having issues with Session Objects and Frames

ok, here is what I am trying to do.

I have a frameset with 2 aspx pages. After someone clicks on a button in the
control page, I want to pass a SQL Query in a form of the string to the
results page

In the control Page I have the following code on button click.

Session["SQL"] = SQL;
Response.Write("<script>window.open('results.aspx' ,'Data');</script>");

On the results page, I have the following

string SQL = (string)Session["SQL"];
Label1.text = SQL;

Now the issue, it works the on the 1st click of the button with no issues.
All other clicks after the 1st click, the Session["SQL"] gets updates, but
the results.aspx never reads the new value.

If I "refresh" the "results.aspx" page it picks up the new value.

So what am I missing ?? Is there a easier way to do this ?? All I need is to
pass a string from one page to another page in the frameset.


Nov 19 '05 #1
  • viewed: 896
Share:
2 Replies
Do you have any page caching enabled for your page?

http://builder.com.com/5100-6371_14-1052977.html

Nov 19 '05 #2
To behonest, not sure

Still a little new to the ASP.NET world, how would I check ?

"Stefan" wrote:
Do you have any page caching enabled for your page?

http://builder.com.com/5100-6371_14-1052977.html

Nov 19 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Dave Smithz | last post: by
4 posts views Thread by Ronald | last post: by
2 posts views Thread by Bonj | last post: by
4 posts views Thread by Kent Tegels | last post: by
4 posts views Thread by Charles | last post: by
13 posts views Thread by Alexander Widera | last post: by
1 post views Thread by SteveComplex | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.