Removing Duplicate Footer In ASP.NET MVC

When you use Partial view into parent view then sometime two times footer is get displayed , If you are using default layout page which is created after MVC application creation.
So let us learn how to solve the problem , before going to proceed , I hope you have created sample application and used partial view in parent view.


To Fix above issue , We need to set LayoutPage=null in partial view as
@{  
    
  Layout = null;  
          
 }  
 
Now run the application , The only one footer will be shown

Summary
I hope this article is useful for all readers . If you have a suggestion related to this article then please contact me.
 To learn ASP.NET MVC step by step please refer following articles

Post a Comment

www.CodeNirvana.in

Protected by Copyscape
Copyright © Compilemode