Skip to content
Loading
  • Gnanavel Sekar
    +2
    Welcome 
    Abhilash Jayakumar
    +2
  • Abhilash J A
    +1
    Hello Joginder Bander and Gnanavel Sekar,
     
    Thank you for reply me. I did tried another way
     
    Inside View page,
    1. @Html.ActionLink("Next >>", "PremiumUserRegistration", new { controller = "UserRegister" }, new { @class = "btnActionNext", onclick = "return false;" })  
    2.                                   @Html.Hidden("NextPrevious") 
     Inside Script page,
    1. $('.btnActionNext').click(function () {  
    2.     $("#NextPrevious").val("value");  
    3.     $(this).closest('form')[0].submit();   
    4. }); 
     Inside post method inside Controller,
     
    1. [HttpPost]  
    2.       public ActionResult PremiumUserRegistration(PartnersVM partnersVM, FormCollection frm, string NextPrevious)  
    3.       {  
    4.  (NextPrevious == "value")  
    5.               {  
    6.                   // here is logic  
    7.                }  
    8.        } 
     Now its working fine...!
     
    Thank you all!
    Abhilash J A
    +1