How to set src path in iframe tag from asp.net core application razor page to call a .net framework application webform under same solution? page

zbx888 20 Reputation points
2023-10-05T21:30:00.1866667+00:00

I implemented an asp.net core razor page application and try to integrate with SSRS report to show data reports.

I created another .net framework project under same solution and use its webform to display the reports, then use iframe in the razor page to request the webform. How do I set up the src attribute in iframe to call the webform?

Developer technologies ASP.NET ASP.NET Core
{count} votes

Accepted answer
  1. SurferOnWww 4,631 Reputation points
    2023-10-07T00:40:48.4066667+00:00

    If you have the .aspx page with RpoerViewer V15 such like below:

    ReportViwerV15

    Add iframe to the Razor Page and set the url of the above page to the src attribute of iframe, as follows:

    iframe

    The ReportViewer will be shown on the Razor Page, as follows:

    RazorPages


1 additional answer

Sort by: Most helpful
  1. Bruce (SqlWork.com) 77,686 Reputation points Volunteer Moderator
    2023-10-06T02:19:17.5433333+00:00

    You set the src to the url of webform. The webform site is probably a different port or path, but we don’t know how you configured the asp.net webform site.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.