We can prevent the partial view in MVC 5 using ChieldActionOnly attribute on Partial-view action method in the controller . The below example might help you. [ChildActionOnly] public PartialViewResult Partial(string id) { return PartialView(); }
Angular, React, JavaScript, Java, PHP, SQL, C#, Vue, NodeJs, TypeScript and Interview Questions Answers