So I have a block (controller + view) that has a TemplateDescriptor attribute:
[TemplateDescriptor(AvailableWithoutTag = true, Tags = new []{"NoForm"})]
public class SearchBookBlockController : BlockController
For certain pages, the block is added onto pages via a dedicated block type property, not a ContentArea. This is because I want control over exactly where its rendered. To redner the block I'm using the following:
So I have a block (controller + view) that has a TemplateDescriptor attribute:
For certain pages, the block is added onto pages via a dedicated block type property, not a ContentArea. This is because I want control over exactly where its rendered. To redner the block I'm using the following:
View A:
View B:
I want to know if the action in my controller was triggered with the "NoForm" tag or not, but the following is always null:
Any one any ideas?
Am I better just using Html.Action in this case?