Currently we have different pages and one main page. when we click on any link of main page, it redirects to the relevant page. but now we want that if we click on any link on main page, modal pop up extender should open and in that it should show the relevant
page. I mean we want to give PopupControlID as page instead of div or panel.
For this kind of problem bease apporach is take your div and inside your div rather than pulting all code just add one user control.
So in this way you can create one common or more then one user control and that need to add in your div so I thing by this apporach you can achieve your task.
My Tech Blogs MCPD Enterprise and Web Application
MCTS Web, Window and Enterprise Application
1.You could probably put an iframe pointing to the page within the Modal Popup Extender.
2.Putting whatever content on that page into a user control and then referencing that control from both the original page and the page with the modal popup.
Hope this helps.
Marked as answer by Ammar Badar on Mar 19, 2012 05:17 AM
One way to do it is to use jQuery's .load() function. It allow you to load a page into, say, a panel/div. So you can attache to the modal popup extender's showing event, and in there call .load to load the "other" page into the panel/div you're extending.
Alternatively, you can use the window.open() to open the "other" page in a new window...
1.You could probably put an iframe pointing to the page within the Modal Popup Extender.
2.Putting whatever content on that page into a user control and then referencing that control from both the original page and the page with the modal popup.
Hope this helps.
avinash_bhudke thanks for reply, i am using iFrame but how i can hide modalPopUpExtender when i am in iFrame, while my modalPopUpControl is in main
page
I have closed iFrame by javascript by getting iFrame in child node, and setting its display propert to none and then reloading page by parent.location.reload(), my complete javascript function on child page is
function closeWindow() {
parent.document.getElementById("iCurrentSchoolYear").style.display = "none";
parent.location.reload();
}
this has solved the problem, but this procedure is taking too much time that AJAXing seems useless.
Can i close iFrame from child page in some other way???so that i dont require to reload parent page!!!
Ammar Badar
Member
57 Points
39 Posts
Can we give page instead of div or panel as PopupControlID to a ModalPopUpExtender
Feb 13, 2012 11:24 AM|LINK
Hi
Currently we have different pages and one main page. when we click on any link of main page, it redirects to the relevant page. but now we want that if we click on any link on main page, modal pop up extender should open and in that it should show the relevant page. I mean we want to give PopupControlID as page instead of div or panel.
Is this possible??
any help!!
amitpatel.it
Star
7966 Points
1865 Posts
Re: Can we give page instead of div or panel as PopupControlID to a ModalPopUpExtender
Feb 13, 2012 11:36 AM|LINK
For this kind of problem bease apporach is take your div and inside your div rather than pulting all code just add one user control.
So in this way you can create one common or more then one user control and that need to add in your div so I thing by this apporach you can achieve your task.
MCPD Enterprise and Web Application
MCTS Web, Window and Enterprise Application
avinash_bhud...
Contributor
2881 Points
517 Posts
Re: Can we give page instead of div or panel as PopupControlID to a ModalPopUpExtender
Feb 13, 2012 11:40 AM|LINK
There are two options available
1.You could probably put an iframe pointing to the page within the Modal Popup Extender.
2.Putting whatever content on that page into a user control and then referencing that control from both the original page and the page with the modal popup.
Hope this helps.
MetalAsp.Net
All-Star
112191 Points
18262 Posts
Moderator
Re: Can we give page instead of div or panel as PopupControlID to a ModalPopUpExtender
Feb 13, 2012 12:02 PM|LINK
One way to do it is to use jQuery's .load() function. It allow you to load a page into, say, a panel/div. So you can attache to the modal popup extender's showing event, and in there call .load to load the "other" page into the panel/div you're extending.
Alternatively, you can use the window.open() to open the "other" page in a new window...
chetan.sarod...
All-Star
65839 Points
11163 Posts
Re: Can we give page instead of div or panel as PopupControlID to a ModalPopUpExtender
Feb 14, 2012 02:45 AM|LINK
Use UFrame
http://www.codeproject.com/Articles/26330/UFrame-goodness-of-UpdatePanel-and-IFRAME-combined
Senior Software Engineer,
Approva Systems Pvt Ltd, Pune, India.
Ammar Badar
Member
57 Points
39 Posts
Re: Can we give page instead of div or panel as PopupControlID to a ModalPopUpExtender
Feb 14, 2012 05:14 AM|LINK
avinash_bhudke thanks for reply, i am using iFrame but how i can hide modalPopUpExtender when i am in iFrame, while my modalPopUpControl is in main page
Ammar Badar
Member
57 Points
39 Posts
Re: Can we give page instead of div or panel as PopupControlID to a ModalPopUpExtender
Feb 14, 2012 06:25 AM|LINK
I have closed iFrame by javascript by getting iFrame in child node, and setting its display propert to none and then reloading page by parent.location.reload(), my complete javascript function on child page is
function closeWindow() {
parent.document.getElementById("iCurrentSchoolYear").style.display = "none";
parent.location.reload();
}
this has solved the problem, but this procedure is taking too much time that AJAXing seems useless.
Can i close iFrame from child page in some other way???so that i dont require to reload parent page!!!