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: 23/08/2015 01:41:39
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