function GetPage() { $.ajax({ url: "Page1.aspx", type: "Post", async: false, data: { "param": "abcd" }, success: function(obj) { } });
<html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title></title> </head> <script language=javascript> alert('ggg'); </script> <body id="bd" bgcolor="#ff9999"> <form id="form3" runat="server"> <div id="dynamic"> </div> <asp:TextBox ID="TextBox1" runat="server"> <asp:Button ID="Button1" runat="server" Text="Button" /> <div id="mainremoved" style="width:100%"> This is Home content </div> </form> </body> </html>
function GetPage() { $.ajax({ url: "Page1.aspx div#dynamic", type: "Post", async: false, data: { "param": "abcd" }, success: function(obj) { //here you will get the div with id dynamic only. } });
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)