Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 380623
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T15:00:25+00:00 2026-05-12T15:00:25+00:00

I have a classic asp page which has, encapsulated within it in an iframe,

  • 0

I have a classic asp page which has, encapsulated within it in an iframe, is a .net ajax control. This all works fine. However, what I need to do is if a button is clicked in the .net control I need a session variable on my classic asp page to be updated. So I guess, simply put, how do I pass a variable from a .net page to a classic asp page?

I have read some stuff about putting the vars to be passed in the query string but this wont work (I think) because the when the ajax control updates it doesn’t refresh the encapsulating page.

Could I use an intermediary page? From within my ajax control can I call another classic asp page, and then use some code in that to update the var? The intermediary page would never be displayed.

Thanks, R.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T15:00:26+00:00Added an answer on May 12, 2026 at 3:00 pm

    One option would be to refresh your main ASP page from within your .net ajax control using:

    parent.document.location.href = 'mypage.asp?session_parameter=new_value';
    

    Inside your ASP page you would need to upload the session using the ‘session_parameter’ variable. It’s not the best way since it would cause a complete refresh of your page but it updates your session variable instantly.

    But as you mentioned, I would prefer to make an asynchronous javascript call to some intermediary ASP page that would refresh the session as needed. You could achieve this using the XMLHttpRequest object.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a select box on a classic ASP page which looks like this:
I have this classic ASP site which has been working fine until we updated
I have a classic ASP page which is loading an ASP.net page through an
I have a 3rd party server which has a classic ASP page which takes
NET and VB.net code behind. I have a classic ASP page that connects to
I am writing a small application in Classic ASP. I have a page which
In my classic asp application I have a page with 2 iframes. leftframe has
I have a classic asp page which generates a PDF serves it to the
I have a classic asp page from which I open a popup page in
I have a large-ish web project which is migrating from classic ASP to ASP.NET

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.