Loading aspx page in jquery modal popup
-
Hi. I am able to load a Jquery modal pop up. My requirement is . I would like to load another aspx page in a jquery modal popup.. Can any one help me out in this. I tried a lot.. Thanks
-
Hi. I am able to load a Jquery modal pop up. My requirement is . I would like to load another aspx page in a jquery modal popup.. Can any one help me out in this. I tried a lot.. Thanks
You need to put an iframe in the modal box and the target page goes in the iframe. Google "show iframe query modal" for examples http://stackoverflow.com/questions/5660263/how-to-display-an-iframe-inside-a-jquery-ui-dialog[^]
-
Hi. I am able to load a Jquery modal pop up. My requirement is . I would like to load another aspx page in a jquery modal popup.. Can any one help me out in this. I tried a lot.. Thanks
You can use jQuery.ajax to load server side pages. Example:
$.ajax({ url: 'default.aspx', cache: false, success: function (data) { $('#page-content').html(data); } });
If you are loading these pages from another aspx page, you might need to remove runat="server" from your <form id="form1"> tags in your pages that you want to load. I had issues regarding duplicate form tags.
-
You need to put an iframe in the modal box and the target page goes in the iframe. Google "show iframe query modal" for examples http://stackoverflow.com/questions/5660263/how-to-display-an-iframe-inside-a-jquery-ui-dialog[^]
Thanks . It is working... But, I am facing some difficulty to adjust the width.
-
Hi. I am able to load a Jquery modal pop up. My requirement is . I would like to load another aspx page in a jquery modal popup.. Can any one help me out in this. I tried a lot.. Thanks
Use this code to add aspx page in jquery. http://stackoverflow.com/questions/4629899/loading-aspx-page-in-jquery-ui-dialog[^]