Email: Password:       Forgot Password 
    .netCodeSG
A Saarsha Group Online Community for dot net codes group like C#, Asp.NET, VB.NET, Sharepoint, JavaScript, JQuery, Ajax, SQL, WCF, WPF.
 
TECHNOLOGIES:
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. 

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