locked
how to get parent name in _layout.cshtml RRS feed

  • Question

  • Hi, i have a question in  _layout.cshtml but i am not sure if i ask in the right forum.

    there are some parent cshtml  will "include" the _layout.cshtml, by doing @{layout=" _layout.cshtml"}, and I need to know the name of the parent cshtml page, or even, i want to pass the data, which is the name of parent cshtml page, how to do it? can anyone help me? thank you very much

    • Moved by CoolDadTx Tuesday, October 9, 2018 6:15 PM ASP.NET related
    Tuesday, October 9, 2018 5:21 PM

All replies

  • Please post questions related to MVC in the ASP.NET forums.

    Michael Taylor http://www.michaeltaylorp3.net

    Tuesday, October 9, 2018 6:15 PM