Reputation: 2408
I created a modal popup as you will see here. my problem is that I need the layout when the user connects normally but not when I display modal popup using the same login for. So I want to make something like :
$("@Layout").setValue(null);
I'd like to know if it is possible. Thanks in advance for any help !
Upvotes: 0
Views: 311
Reputation: 9764
If you want to remove layout from view,
Just put this above your view
@{
Layout = null;
}
A better approach will be using partial view inside the Pop-Up.
Upvotes: 1