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 235183
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T20:14:44+00:00 2026-05-11T20:14:44+00:00

hey again stackoverflowers I’m migrating a website from old ASP (in VBScript) and there’s

  • 0

hey again stackoverflowers

I’m migrating a website from old ASP (in VBScript) and there’s certain stuuf I have to iFrame as to keep the old stuff working inside a new container.

on the aspx page I have an iFrame with the runat=”server” attribute to make it available in the code behind file.

<iframe id="frmLoader" runat="server" scrolling="auto" width="100%" height="600px"></iframe>

now the issue, to get certain functionality I have to POST to a page (from the old site) to make it render differently and thus provide a response to the POST.

the following code resides in the Page_Load with of course parameters in the postData object

byte[] encData = new ASCIIEncoding().GetBytes(postData);

req.Method = "POST";
req.ContentType = "application/x-www-form-urlencoded";
req.ContentLength = encData.Length;

Stream dataStream = req.GetRequestStream();
dataStream.Write(encData, 0, encData.Length);
dataStream.Flush();
dataStream.Close();

WebResponse res = req.GetResponse();
StreamReader sr = new StreamReader(res.GetResponseStream());
string s = sr.ReadToEnd();
frmLoader.InnerHtml = s;

the pain here is that I can’t seem to render the string into the iframe.
with debugging I checked whether something should appear and it should, but it doesnt :p

anyone know how I get the string parsed into the iframe?

additionally, when triggering functionality in the iframe, the page should stay there, with the response to additional posts from the original site (old asp)
I’ve been looking, but not finding answers.


creating a handler would mean I have to create a custom handler for every old page I wish to use then?

I’m not that experienced in in-depth webdevelopment 🙂

in old ASP the previous developers put a lot of functionality into 1 page and by using the post message I can call upon these functions, rendering a different page each time.

can a handler, like you said, be built to accept a bunch of parameters to vary the post?

EDIT:

I just noticed another problem here. the handler does not have access to the session in which data resides to make the post I need it to. there’s a different post per action …

  • 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-11T20:14:44+00:00Added an answer on May 11, 2026 at 8:14 pm

    Have you tried this manually? Try the following:

    <iframe>text</iframe>
    

    How does that display in the browser?

    It’s because iframe doesn’t work that way. Like an img tag, it needs a “src” attribute saying where the content comes from.

    You may be able to create a .ashx file (HttpHandler), and have it do the POST and return the result. Your iframe would then be <iframe src="yourHandler.ashx"/>.

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

Sidebar

Ask A Question

Stats

  • Questions 108k
  • Answers 108k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer What you have in mind could, I believe, be done… May 11, 2026 at 9:15 pm
  • Editorial Team
    Editorial Team added an answer Well, I really don't think you should waste vertical screen… May 11, 2026 at 9:15 pm
  • Editorial Team
    Editorial Team added an answer If you're configuring iPhones in a commercial environment, you should… May 11, 2026 at 9:15 pm

Related Questions

hey guys can you please help me again, i want my restaurant system to
Hey gang, I need to know if i need to restart my computer to
Right, initially ran: c:\regsvr32 Amazing.dll then, (accidentally - I might add) I must have
I am developing an auto-builder that will run a series of steps in our
I want to give credit to all open source libraries we use in our

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.