Monday, 29 July 2013

add SharePoint DateTimeControl in SharePoint 2010

1.Open "Visual Studio 2010"
2.Create an  "Empty Sharepoint Project"
3.Add the Microsoft.sharepoint dll in your project
4.create one "visual webpart" and paste the below code in the Design code

Code:-

<%@ Register TagPrefix="spuc" Namespace="Microsoft.SharePoint.WebControls"
   Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>

<spuc:DateTimeControl runat="server" ID="DateTimePickerControl1" />


No comments:

Post a Comment