Quantcast
Channel: SharePoint 2010 - Development and Programming forum
Viewing all articles
Browse latest Browse all 11571

Navigating the Main window to a list from a modal dialog

$
0
0

Hello,

I built a web part in c# and put it on a webpage, this web page is  popped up as a modal dialog, at the end of the page there is a submit button. I'm trying to get that submit button to close the modal dialog and navigate the parent window to a list. I got the dialog to close with this solution, but couldn't figure out how to navigate it. http://social.msdn.microsoft.com/Forums/office/en-US/a9a4d7ab-4838-44de-83c0-1baa39e64d8b/closing-a-sharepoint-modal-popup,

I found this line of code somewhere else.

context.Response.Write("<script type='text/javascript'>window.frameElement.navigateParent('lists')</script>"); This does what I want it to but it tries to path through sitepages. 

so instead of just going to http://sharepoint/projects/lists it goes to http://sharepoint/projects/SitePages/lists. I believe this is done because I put my web part page as a sitepage. Any idea how to redirect and specify the whole path. 

Thank you for any help you can provide





Viewing all articles
Browse latest Browse all 11571

Latest Images

Trending Articles



Latest Images