Get the MVC controller name in Javascript function

Viewed 13725

I have a Jquery CRUD function; which is called from several Controllers actions. Is there any way to find out which contoller is tiggering that function.

For Example; function call from View:

$('a.Edit-Icon').live("click", function (event) { 
  editDialog(this, event, '#_List'); 
});

Function parameters:

function editDialog(tag, event, target,value)
{
  ------
  // How to get the Controller name ???????????

}

Thanks in advance.....

1 Answers
Related