TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
C# Corner
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Create Calender Webpart using Visual Studio in SharePoint 2010
Sagar Pardeshi
Mar 31
2016
Code
1.3
k
0
0
facebook
twitter
linkedIn
Reddit
WhatsApp
Email
Bookmark
expand
using
System;
using
System.Collections.Generic;
using
System.Web;
using
System.Text;
using
System.Web.UI.WebControls;
using
System.Collections.Generic;
using
System.Web.UI.WebControls.WebParts;
using
System.Text;
using
System.Web.UI;
using
System.Runtime.InteropServices;
namespace
CalenderWebpart
{
[Guid(
"2483C4E6-F435-48af-B5BB-AD7343ED61CE"
)]
public
class
CalenderWebpart: WebPart
{
protected
override
void
CreateChildControls()
{
Calendar cldr =
new
Calendar();
cldr.Enabled =
true
;
cldr.ShowGridLines =
true
;
cldr.ShowTitle =
true
;
cldr.EnableViewState =
true
;
cldr.SelectedDate = DateTime.Now;
}
public
override
void
RenderControl(HtmlTextWriter writer)
{
RenderChildren(writer);
}
}
}
SharePoint
Calender Webpart
Visual Studio