Interviews - C# Corner

Shrimant Telgave
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?


  1. public class HomeController : Controller
  2. {
  3. public string Index(ref int id)
  4. {
  5. return "This is Index Method" + id;
  6. }
  7. }
By Shrimant Telgave in .NET onOct 04 2019
  • Kanaga Raj
    Oct, 2019 15

    Its not possible, because of the "action method" called by ajax method how we pass the ref parameter from ajax input.

    • 0

Most Popular Companies

Most Popular Job Functions