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

  • SEARCH
  • Home
  • 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 7766775
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T15:30:26+00:00 2026-06-01T15:30:26+00:00

I have two sites one is written in asp.net webforms and the other one

  • 0

I have two sites one is written in asp.net webforms and the other one is written in asp.net mvc 2.
I have a page in webforms wich uses jQuery Load to get data from both projects.

Code from the page in asp.net webforms:

$("#divFeedsPorTagMVC").load('http://localhost:50001/InfoMVC/?tag=java', function (){});

$("#divFeedsPorTagWebForms").load('http://localhost:50000/InfoWebForms.aspx?tag=java', function () {}});  

Divs in aspx page:

<div id="divFeedsPorTagWebForms" ></div>
<div id="divFeedsPorTagMVC" ></div>

The jQuery call to WebForms works well and fills the “divFeedsPorTagWebForms” with the HTML i need.
The jQuery call to MVC2 enters to the Index function of the InfoMVCController(debug mode), shows that the tag param is being passed well, but doesn´t fill the “divFeedsPorTagMVC” div with the HTML it’s suppossed to return.

Any suggestions?
Thanks.

EDIT
Controller:

 public class InfoMVCController : Controller
    {
        private ServicioSORSS.ServicioSORSSClient _srvSORSS = new ServicioSORSSClient();

        //
        // GET: /InfoWebForms/

        public ActionResult Index(string tag)
        {
            return View(_srvSORSS.ObtenerFeedsPorTag(tag));
        }

    }  

If I just copy the URL and paste it in the nav bar of firefox it does return all the data i need!

  • 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-06-01T15:30:27+00:00Added an answer on June 1, 2026 at 3:30 pm

    You are running into a problem with Same origin policy. You browser isn’t allowing the load, because it’s coming from a different site.

    Look into the standard $.ajax() function, and use jsonp as the dataType.

    It will be something like:

    $.ajax({
        type: "GET",
        url: "http://localhost:50001/InfoMVC/?tag=java",
        dataType: "jsonp",
        success: function(data){
            $('#divFeedsPorTagMVC').html(data);
        }
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have two ASP.NET sites that are used for managing patient information. One application
We have two sites using jQuery UI and one of the sites includes some
I have two web sites: one built with aspx and the other built with
I have two sites with different SITE_IDs, but I want to have only one
I have two databases on one machine that also has two different sites running
The Issue We have two sites, one domain, we want to setup a virtual
Let's assume I have two sites around one DB. The first is based on
i have two domains setup one called fastcms.com and the other is called fastautos.com
I have written a message board as my first ASP.NET project. It seems to
I have two SWFs, one is a 960x30px, the other is a 960x300px. I

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.