I do not know if I can but I need to execute a javascript instruction that returns a value to me. But I need to do it from an ActionResult of a controller in ASP.NET MVC
Clarification: I already know that it is a client code in the server code but I just wanted to know if you can ...
For example:
Public ActionResult GetInfo(){
//Ejecutar una funcion de javascript y que me devuelva un valor
// <script>GetPermission(){ return Notification.permission;}</script>
// Y usar GetPermission ya en c# del lado del servidor
// string _permission= GetPermission();
return View();
}
Thanks to the whole community!