Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
AI OnAI Off
Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
try passing currentBlock contentreference in as a parameter value to the ajax request
new AjaxOptions{
HttpMethod = "POST", currentBlock = Model.ContentLink
}
Greeting. I have a controller for my block containing this:
The method Vote is invoked through an ajax call, seen in this View for the block:
The problem is that when I click the actionlink it invokes the method Vote but currentBlock is null.
If I debug the currentBlock for Index method it is correctly set with the currentBlock as the current BlockData object.
What am I missing?
Regards,
ChrisRun