Is it possible to provide a ref and out keyword to the action method in ASP.NET MVC? If yes how it is and if not what is the reason?
Shrimant Telgave
Example:
public class HomeController : Controller { public string Index(ref int id) { return "This is Index Method" + id; }}
public class HomeController : Controller
{
public string Index(ref int id)
return "This is Index Method" + id;
}
ref and out variable store address of the value.
So it not possible to pass address of variable using url or other way.
Its not possible, because of the "action method" called by ajax method how we pass the ref parameter from ajax input.
Yes
NA