My requirement was having on webpart there I must create the Form to be filled by end user.These will be inserted into SharePoint List.
In Visual webpart I used the below code
SPSite site = SPContext.Current.Site; SPWeb web = site.OpenWeb(); SPList myList = web.Lists["List OF Employee"]; SPListItem Item = myList.Items.Add(); Item["Title"] = TextBox1.Text; Item["Name"] = TextBox2.Text; Item.Update();