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

Custom Error Page not opening as Model Dialog Box

$
0
0

Hi,

I have created a custom Error Page to show the message on Item Deleting Event Receiver.

public override void ItemDeleting(SPItemEventProperties properties) 
{
    base.ItemDeleting(properties); 
        properties.Cancel = true; 
        properties.Status = SPEventReceiverStatus.CancelWithRedirectUrl; 
        properties.RedirectUrl = "/_layouts/EventReceiverProject1/CustomErrorPage.aspx
    }
}

when I click on delete option from ribbon it redirects me to the customErrorPage. but it does now show customErrorPage as Model window. it shows me the full page with top and left navigation. how can I open customErrorPage in model window.

please help.


Viewing all articles
Browse latest Browse all 11508

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>