Quick Tip – Adding a Date Control Picker to a webpart
In order to add a date control to a webpart you need to add the Microsoft.sharepoint.portal reference to your project:
This will then allow you to add the following:
using Microsoft.SharePoint.WebControls;
And then add the control to your class:
private DateTimeControl txtAudit_Date;
txtAudit_Date = new DateTimeControl();
Leave a comment