Posts

Add Web Part Programatically on Home / Default Page

Hi, Create a SharePoint 2010 Solution in Visual Studio. Add Feature & its scope. Add Feature Receiver Class & the add below mentioned code :         public override void FeatureActivated(SPFeatureReceiverProperties properties)         {             // Get a reference to a web and a list             SPWeb web = properties.Feature.Parent as SPWeb;             string pageURL=web.RootFolder.WelcomePage;             if(pageURL=="")                 pageURL="default.aspx";             SPLimitedWebPartManager mgr = web.GetLimitedWebPartManager(pageURL  , System.Web.UI.WebControls.WebParts.PersonalizationScope.Shared);                          // Add the web part             mgr.AddWebPart(CreatePageWebPart(web.Url), "Left", 1);         }         public override void FeatureDeactivating(SPFeatureReceiverProperties properties)         {             try             {                 // Get a reference to a web and a list      

PDF Viewer Webpart

Image
Download PDF Viewer Web Part solution & code   Hi, Here now presenting PDF Viewer web part solution with code. You can view any pdf file by providing url of the pdf document or you can use this pdf viewer web part as connected web part also. When you install this web part , you will see a “View PDF” button in your ribbon of all document libraries. You can view pdf by clicking on the button from the ribbon. Download PDF Viewer Web Part solution & code Enjoy!!!

Dragable and Resizable DIV

How to create a drag able and resizable div in ASP.Net/C# OR How to make a div Drag able and Resizable using Jquery in ASP.Net/C# Download Code

SharePoint 2013 Important Links

SharePoint Server 2013 Preview Download: http://technet.microsoft.com/en-US/evalcenter/hh973397 SharePoint Foundation 2013 Preview Download: http://www.microsoft.com/en-us/download/details.aspx?id=30345 SharePoint 2013 & Office 2013 Training For Developers: http://msdn.microsoft.com/en-US/sharepoint/fp123633 SharePoint 2013 Training For IT Pros: http://technet.microsoft.com/en-US/sharepoint/fp123606 Start: Set up the development environment for SharePoint 2013: http://msdn.microsoft.com/en-us/library/ee554869(v=office.15 ) Cheers

How to calculate difference between two dates in javascript/jquery

Simple steps to calculate difference between two date fields using JavaScript/JQuery  In some scenario, we need to calculate the difference between two dates from the client side. Here we are going to demonstrate all about date fields using javascript such as Javascript date field validation for different format, difference between two dates in days, hours, minutes, seconds, years and weeks Very strong and simple Javascript validation for date fields for format dd/mm/yyyy  Following javascript function simply verify and return result for checking valid date from client side itself. It will automatically validate leap year entries and return correct result. That means if we pass ’29/02/2011′ to the function it will be return false. If we are passing ’29/02/2012′ to the function it will return true. So we don’t need to bother about the leap year or other complex things. function isValidDate(dateStr) { // Date validation Function // Checks For the following valid Date formats: /