Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I have been following this tutorial closely to try and produce a booking process for my site.
In my template, I am returning a partial view using the following code:
What I now need to do is access a property on the current page from within the ShowBookingForm partial view. How can I do this as my partial view is defined as follows:
This means that I cannot access the page properties because I do not inherit from:
Any help would be greatly appreciated.
Did you try this:
You could add the property to your model and set it in your ShowBookingForm method where you'll have access to CurrentPage.
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted