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

SQL SERVER – FIX : Error 3154: The backup set holds a backup of a database other than the existing database

SharePoint Close methods for SP Long Operations and Redirect Error Page

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