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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T16:09:03+00:00 2026-05-13T16:09:03+00:00

I need to load aspx page into jQuery UI’s modal dialog window. I used

  • 0

I need to load aspx page into jQuery UI’s modal dialog window.
I used following approach: load page content via ajax call into dialog’s div and show it:

$.get('Page.aspx', function(response){
    $('#dialog').html(response);
    $("#dialog").dialog('open');
});

but I’ve got very strange error (IE8) in line 137215738 (!): ‘theForm.elements.length’ – is null or not an object. JS debbuger says that source code is not available for such location. I have an assumption that this error happens because of multiple ‘form’ tags that appears on page after ajax call

I wonder, how can i fix this? Or maybe some other way of showing aspx page in modal dialog?

  • 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-13T16:09:03+00:00Added an answer on May 13, 2026 at 4:09 pm

    You cannot fully embed one ASPX page’s content within another for a couple of reasons:

    1. You would be nesting <html> tags in a non-sensical way.
    2. You are polluting one page’s javascript state with the other’s.

    You need to render Page.aspx as a partail view, rather than including the entire payload of an ASPX page.

    I’m not 100% sure if you can do this in plain-old-asp.net without calling the Render function of individual controls, using the Response stream as the target.

    In ASP.NET-MVC, however, you can use a PartialView result.

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

Sidebar

Ask A Question

Stats

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

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

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

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

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Transferring files via USB is not officially supported on the… May 13, 2026 at 7:44 pm
  • Editorial Team
    Editorial Team added an answer Dig into the source code. Edit PHPMailer.php and find "function… May 13, 2026 at 7:44 pm
  • Editorial Team
    Editorial Team added an answer Nearly all ASP.NET Web Forms post back to the same… May 13, 2026 at 7:44 pm

Related Questions

If there were no visits to the dotnetnuke portal for some time, depending on
I have an aspx page that has a control which serves as a summary
Question I'm trying to build a quick and easy ASP.NET page that redirects a
I have a UserControl which I have added to my web.config <add tagPrefix=BCF src=~/controls/MyMessageBox.ascx
I have small page which has label, DropDownList and a submit button. <div> <asp:label

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.