I created custom SharePoint New form with lots of custom code. So, when I load the form by clicking on New Item, it will open sometimes correctly and sometimes it gave error:
Unable to display this Web Part. To troubleshoot the problem, open this Web page in a Microsoft SharePoint Foundation-compatible HTML editor such as Microsoft SharePoint Designer. If the problem persists, contact your Web server administrator.
But after one or two refresh its again working fine.
Please help me with this that how can I get the newform without abaove error in one go.