If you have a custom action under SharePoint 2010 “welcome menu” or under “site actions menu” and when you click on the custom action you want to open the application page in standard SharePoint modal dialog. Here is the solution,

You need to change the UrlAction code in the element file as given below

<?xml version="1.0" encoding="utf-8"?> 
<Elements xmlns="http://schemas.microsoft.com/sharepoint/"> 
        Id ="CustomMenu_MoreInformation"
        Title="More Information"
        Description="View more information"  
    <UrlAction Url="javascript:OpenPopUpPageWithTitle('{SiteUrl}/SitePages/MoreInformatin.aspx, RefreshOnDialogClose, 600, 400,'My Custom Action')"/>

Now when you click on the menu option, your application page will open in modal dialog as shown in below pictures.





Comments are closed.

About Us

Follow Us

Email: contact@keapoint.com
Phone:  0208 7852 888

Registered Address: 1 Amber Close, Reading, RG6 7ED. United Kingdom

Company No. 11586817