Skip to content
Loading
    
  •     "panel2" style="display: none; border: 1px solid red">    
  •         Panel 2 data    
  •         
  •     "panel3" style="display: none; border: 1px solid red">    
  •         Panel 3 data    
  •         
  •     "panel4" style="display: none; border: 1px solid red">    
  •         Panel 4 data    
  •         
  •     
  •     
  •     
  •      
  •  
    +2
  • Hamid Khan
    +2
    Dear Mohammad Mushfique,
     
    If you are using plain MVC then you could use partial view,
    If you are using Angular thnen you could use component/ directive 
    +2
  • Khushbu Saini
    +1
    If you want to use panel functionality in mvc then there is only one way to achieve this,that is create partial views in a div give each of them a div-id and then perform hide show using jQuery...
    +1
  • Varun Setia
    0
    Here are few references that can solve your issue:
     
    https://forums.asp.net/t/1985906.aspx?How+to+make+a+Panel+section+in+MVC+like+in+Web+Forms 
     
    https://stackoverflow.com/questions/28097510/how-can-i-create-a-re-usable-custom-html-panel-in-asp-net-mvc 
     
     
    You can also download panel extension in your project. Entire doc can be found here for that
     
    https://docs.devexpress.com/AspNet/17810/aspnet-mvc-extensions/site-navigation-and-layout/panel#contents 
     
    You can also share any specific scenario that you want to implement, will try to help you  :)
    0