I'm trying to do a simple call from html to C# to return the current 'Message' in an array. I am trying to send the index in the array from a javascript method, but it's not letting me, saying "The name 'rowID' does not exist in the current context". I understand from this Stack Overflow post, that he's struggling to pass in the variable, however for him there's no parameter to insert. So I'm still stick on the same problem. This is what I want to do:
var rowID = table.row('.selected').index();
SetSmartWindow(@Model.Messages[rowID].DeviceId, false, false, false, false, false, false);