How to develop a custom SharePoint search webpart

This sample SharePoint webpart is meant to do search using search web service and result the result and show it on SPGridView. create a new class library in visual studio and paste the below code. using System; using System.Data; using System.Reflection; using System.Runtime.InteropServices; using System.Text; using System.Web; using System.Web.UI; using System.Web.UI.HtmlControls; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts;…