Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Jan 22, 2013 01:42 AM by Yanping Wang - MSFT
Member
63 Points
49 Posts
Jan 20, 2013 11:01 AM|LINK
Dear Folks
How to display the aspx page inside the aspx page thry jquer(not prefer iframe)
Below I tried.but not working
<style type="text/css">
.divPage
{width:300px;
height:200px;
}
</style>
<script src="JS/jquery-1.9.0.min.js" language="jscript" type="text/jscript"> </script>
<script src="Scripts/jquery-1.4.1-vsdoc.js" type="text/javascript"></script>
<script src="Scripts/jquery-1.4.1.min.js" type="text/javascript"></script>
<script language="javascript" type="text/javascript">
$(document).ready(
function() {$("#Button1").click(letmeload);
});
function letmeload() {
$("#LoadPage").load("Default2.aspx", { name: 'aspNet' }, function(content) {
$(this).hide().fadeIn("slow");
return false;});
</script>
<div id="LoadPage" class="divPage">
<html xmlns="http://www.w3.org/1999/xhtml"><body><form id="form1" runat="server">
<asp:GridView ID="GridView1" runat="server"><SelectedRowStyle BackColor="#FF0066" /></asp:GridView>
<table width="800px">
<tr>
<td align="right">
<asp:Button ID="Button1" runat="server" Text="Button" />
</td>
</tr>
<td align="left" colspan="2" id="mytable"></td>
</table>
</form>
</body></html>
All-Star
15189 Points
1552 Posts
Microsoft
Jan 22, 2013 01:42 AM|LINK
Hi subhankarpandey,
Please check the jquery load example in the following link, and you will find where the problem is
http://www.asp.net/ajaxlibrary/jquery_webforms_dynamic_load.ashx
thanks.
subhankarpan...
Member
63 Points
49 Posts
Load Aspx page thrue command button via jQuery
Jan 20, 2013 11:01 AM|LINK
Dear Folks
How to display the aspx page inside the aspx page thry jquer(not prefer iframe)
Below I tried.but not working
<style type="text/css">
.divPage
{width:300px;
height:200px;
}
</style>
<script src="JS/jquery-1.9.0.min.js" language="jscript" type="text/jscript"> </script>
<script src="Scripts/jquery-1.4.1-vsdoc.js" type="text/javascript"></script>
<script src="Scripts/jquery-1.4.1.min.js" type="text/javascript"></script>
<script language="javascript" type="text/javascript">
$(document).ready(
function() {$("#Button1").click(letmeload);
});
function letmeload() {
$("#LoadPage").load("Default2.aspx", { name: 'aspNet' }, function(content) {
$(this).hide().fadeIn("slow");
return false;});
}
</script>
<div id="LoadPage" class="divPage">
<html xmlns="http://www.w3.org/1999/xhtml"><body><form id="form1" runat="server">
<asp:GridView ID="GridView1" runat="server"><SelectedRowStyle BackColor="#FF0066" /></asp:GridView>
<table width="800px">
<tr>
<td align="right">
<asp:Button ID="Button1" runat="server" Text="Button" />
</td>
</tr>
<tr>
<td align="left" colspan="2" id="mytable"></td>
</tr>
</table>
</form>
</body></html>
Subhankar
Yanping Wang...
All-Star
15189 Points
1552 Posts
Microsoft
Re: Load Aspx page thrue command button via jQuery
Jan 22, 2013 01:42 AM|LINK
Hi subhankarpandey,
Please check the jquery load example in the following link, and you will find where the problem is
http://www.asp.net/ajaxlibrary/jquery_webforms_dynamic_load.ashx
thanks.
Feedback to us
Develop and promote your apps in Windows Store