Email: Password:       Forgot Password 
A Saarsha Group Online Community for dot net codes group like C#, Asp.NET, VB.NET, Sharepoint, JavaScript, JQuery, Ajax, SQL, WCF, WPF.
Restrict MVC actions to be invoked only by GET or POST.

Posted On: 8/23/2015 1:41:39 AM
Decorate the MVC action with the HttpGet or HttpPost attribute to restrict the type of HTTP calls. 

public ViewResult EmployeeDetail(int emp_id)
    Employee obj = emps[emp_id];
    return View("EmpDetail",obj);
         HOME   |   Submit Article   |   Contact Us   |   About Us   |   Terms & Condition   |   Advertise With us