Tuesday, May 16, 2017

DateTime control "Sorry, this site hasn't been shared with you"

We developed custom web part for SharePoint 2013 using Visual Studio 2012.
In web part we used SharePoint Date Time control. For some user after clicking calendar image its showing " "Sorry, this site hasn't been shared with you". For some users its working fine, all users having same permission.
DatePickerFrameUrl="<%$SPUrl:~sitecollection/_layouts/15/iframe.aspx %>"

<SharePoint:DateTimeControl ID="dtStartdate" runat="server"
DateOnly="true" DatePickerFrameUrl="<%
$SPUrl:~sitecollection/_layouts/15/iframe.aspx %>" />

1 comment: