Issue using SharePoint DateTime Control in custom webpart

Creating a custom web part in SharePoint and use SharePoint's DateTime control but DateTime frame/popup is not working properly i.e. design , font and css etc.



Resolution:
Use below code in page load event:-

dtpInvoiceDate.DatePickerFrameUrl = SPContext.Current.Web.ServerRelativeUrl +"/_layouts/iframe.aspx";


Comments

Popular posts from this blog

How to remove app from SharePoint 2013/2016

The model backing the context has changed since the database was created. Consider using Code First Migrations to update the database