0

Is there anyone who knows how to create another layout page for my survey without using the default( _layout.cshtml).

Cheers.

2 Answers 2

2

Sure, just set this inside your survey views:

@{ Layout = "~/Path/To/Your/Layout.cshtml"; } 

With ~/Path/To/Your/Layout.cshtml being your custom layout view.

Sign up to request clarification or add additional context in comments.

Comments

1

Use this:

@{ "~/Shared/AnotherLayout.cshtml"; } 

1 Comment

This won't use any layout page at all.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.