how do i create a link to navigate to the parent page inside a 2sxc app using c razor templates?

One simple thing you can always do is just href=”/tabid/nnn” – so

<a href="/tabid/@Dnn.Tab.ParentId">Up</a>

Based on your description, I am not sure that covers you 100% of the time, but seemed worth pointing out. 🙂

If you prefer a more “code” approach, use 2sxc’s Link.To()…

<a href="@Link.To(pageId: Dnn.Tab.ParentId, parameters: "this=403&category=all")">Up</a>


CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top