Hello I would like to
know what the syntax for opening a partial page is. I would like to show a partial page as the content of an expanded bar. I also would like to pass the model as an argument when calling the partial page.
I unsuccessfully tried using the .Content like this
.Content(@<text>Html.PartialPage("_TestPartial2")</text>)
Another question I would like to add is:
in the .Content I was able use both html and Razor syntaxes. However I am not sure if I can use C# logical statements such as "if" or "while" statement.
Could you give me an example for both of them please?
Thanks.
know what the syntax for opening a partial page is. I would like to show a partial page as the content of an expanded bar. I also would like to pass the model as an argument when calling the partial page.
I unsuccessfully tried using the .Content like this
.Content(@<text>Html.PartialPage("_TestPartial2")</text>)
Another question I would like to add is:
in the .Content I was able use both html and Razor syntaxes. However I am not sure if I can use C# logical statements such as "if" or "while" statement.
Could you give me an example for both of them please?
Thanks.