Francois Borgies
Francois Borgies

Reputation: 2408

How to change the value of Layout in JQuery ?

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

Answers (1)

ssilas777
ssilas777

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

Related Questions