Wednesday 6 November 2013

add SharePoint DateTimeControl in SharePoint 2010

Share it Please
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

Followers

Follow The Author