-1

Is it possible that calling a single div (without master page) by the use of <iframe>.

<iframe style=" width: 1150px; height: 600px;" id="frame" src="EmployeeAllowance.aspx" runat="server"></iframe>

Above code is working but it show the full page including the master page. How can I call the content wrapper div as a single part?

HRM
  • 2,097
  • 6
  • 23
  • 37
Shanu Shaji
  • 134
  • 1
  • 11

1 Answers1

1

since you also use jQuery tag, here's an answer using the jQuery .load in JsFiddle

using this markup

<div id="box"></div>

and script

$("#box").load("/ #run");

it will load the root url from http://jsfiddle.net because you're using /, then it will load the selector from that page, which in this case is a Hyperlink with id run, you can use the demo and try changing the selector to #savenew, #actions, .actionItem, and any other selector to test it.

For more information, you can take a look at the jQuery .load api

Kyojimaru
  • 2,694
  • 1
  • 14
  • 22