I am using a SharePoint DateTimeControl in my web part solution in SharePoint 2013. it is working fine in Internet Explorer:

enter image description here

but when I open the same page in Google Chrome, it looks like the following:

enter image description here

Please help me resolve this issue


Following is the HTML:

   <SharePoint:DateTimeControl runat="server" ID="txt_expectedReturnDate" />


I have added the following in Page Load:

txt_expectedReturnDate.DatePickerFrameUrl = ResolveUrl(SPContext.Current.Site.Url + "/_layouts/15/iframe.aspx");

but now it's showing the following in Chrome while it's fine in internet explorer:

enter image description here

I am also facing the following issue: Chrome is opening Local Host site with HTTPS

1 Answer 1


Try to add DatePickerFrameUrl="<% $SPUrl:~sitecollection/_layouts/15/iframe.aspx %>" within the <SharePoint:DateTimeControl> tag and check again.

  • I am unable to build the project after adding <SharePoint:DateTimeControl DatePickerFrameUrl="<% $SPUrl:~sitecollection/_layouts/15/iframe.aspx %>" runat="server" ID="txt_expectedReturnDate" />, the initializeControl method is getting removed after adding this so all the controls on this page are seem to be "does not exitsts" Jun 13, 2019 at 3:44
  • please see my update and help me Jun 13, 2019 at 4:22

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.