c# - How to call view as full page (ignoring render body)? -



c# - How to call view as full page (ignoring render body)? -

i have regular application _layout.cshtml , @renderbody() render views inside, login view need render total page not within @renderbody().

regards

you need set layout property null @ origin of view.

so, login.cshtml file should start with:

@model yourmodel @{ layout = null; }

c# asp.net-mvc razor

Comments

Popular posts from this blog

php - How to pass multiple values from url -

xslt - DocBook 5 to PDF transform failing with error: "fo:flow" is missing child elements. Required content model: marker* -

database - php search bar when I press submit with nothing in the search bar it shows all the data -