Custom Webpart – Displays the latest image from picture library
Here is the simple custom webpart which displays the latest image from picture library. Download complete source code using System; using System.Runtime.InteropServices; using System.Web.UI; using System.Web.UI.WebControls.WebParts; using System.Xml.Serialization; using System.Web.UI.WebControls; using Microsoft.SharePoint; using Microsoft.SharePoint.WebControls; using Microsoft.SharePoint.WebPartPages; namespace LatestImage { [Guid("8c21451d-1763-4a7f-817c-f4330a5b1fd8")] public class LatestImage : System.Web.UI.WebControls.WebParts.WebPart { Image myimage = new Image(); protected override void CreateChildControls() [...]
