Home > Mobile >  why default layout information still appeared after deleted the default Layout in ASP.NET MVC?
why default layout information still appeared after deleted the default Layout in ASP.NET MVC?

Time:03-03

I just created new project in ASP.NET MVC and created new layout and deleted the default layout but when I run the project its show the new layout and down it shows the default layout information's ASP.NET and its information please see the image .

enter image description here

why its show the default layout text I deleted already and how to remove it

This is the new layout footer code :

<!-- Footer Start -->
    <div  data-wow-delay="0.1s">
        <div >
            <div >
                <div >
                    <h4 >Quick Link</h4>
                    <a  href="">About Us</a>
                    <a  href="">Contact Us</a>
                    <a  href="">Privacy Policy</a>
                    <a  href="">Terms & Condition</a>
                    <a  href="">FAQs & Help</a>
                </div>
                <div >
                    <h4 >Contact</h4>
                    <p ><i ></i>123 Street, New York, USA</p>
                    <p ><i ></i> 012 345 67890</p>
                    <p ><i ></i>[email protected]</p>
                    <div >
                        <a  href=""><i ></i></a>
                        <a  href=""><i ></i></a>
                        <a  href=""><i ></i></a>
                        <a  href=""><i ></i></a>
                    </div>
                </div>
                <div >
                    <h4 >Gallery</h4>
                    <div >
                        <div >
                            <img  [email protected]("/Contents/img/course-1.jpg") alt="">
                        </div>
                        <div >
                            <img  [email protected]("/Contents/img/course-2.jpg") alt="">
                        </div>
                        <div >
                            <img  [email protected]("/Contents/img/course-3.jpg") alt="">
                        </div>
                        <div >
                            <img  [email protected]("/Contents/img/course-2.jpg") alt="">
                        </div>
                        <div >
                            <img  [email protected]("/Contents/img/course-3.jpg") alt="">
                        </div>
                        <div >
                            <img  [email protected]("/Contents/img/course-1.jpg") alt="">
                        </div>
                    </div>
                </div>
                <div >
                    <h4 >Newsletter</h4>
                    <p>Dolor amet sit justo amet elitr clita ipsum elitr est.</p>
                    <div  style="max-width: 400px;">
                        <input  type="text" placeholder="Your email">
                        <button type="button" >SignUp</button>
                    </div>
                </div>
            </div>
        </div>
        <div >
            <div >
                <div >
                    <div >
                        &copy; <a  href="#"></a>, All Right Reserved.

                        <!--/*** This template is free as long as you keep the footer author’s credit link/attribution link/backlink. If you'd like to use the template without the footer author’s credit link/attribution link/backlink, you can purchase the Credit Removal License from "https://htmlcodex.com/credit-removal". Thank you for your support. ***/-->
                        Designed By <a  href="https://htmlcodex.com">HTML Codex</a><br><br>
                        Distributed By <a  href="https://themewagon.com">ThemeWagon</a>
                    </div>
                    <div >
                        <div >
                            <a href="">Home</a>
                            <a href="">Cookies</a>
                            <a href="">Help</a>
                            <a href="">FQAs</a>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <!-- Footer End -->
    <!-- Back to Top -->
    <a href="#" ><i ></i></a>


    <!-- JavaScript Libraries -->
    <script src="https://code.jquery.com/jquery-3.4.1.min.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"></script>
    <script [email protected]("/Contents/lib/wow/wow.min.js")></script>
    <script [email protected]("/Contents/lib/easing/easing.min.js")></script>
    <script [email protected]("/Contents/lib/waypoints/waypoints.min.js")></script>
    <script [email protected]("/Contents/lib/owlcarousel/owl.carousel.min.js")></script>

    <!-- Template Javascript -->
    <script [email protected]("/Contents/js/main.js")></script>
    @RenderBody()
</body>
</html>

I searched also the files I didnt found the text appeared in the project from the default layout from where its appear can you check the image please ?

CodePudding user response:

Go to Views > Home > Index.cshtml then Remove code.

  • Related