public class HomeController : Controller { public ActionResult Index() { // Code to Generate a link and sending email. // Link is of aformat http://localhost:1234/HomeController/Index1? name=xyx&eamil=xyz@mail.com return View(); } [httpGet] public ActionResult Index1() { return View(); } [httpPost] public ActionResult Index1(string name,string email,formCollection collection) { // Name and email here are always null while I get the avalues in form collection, return View(); } }
http://localhost:1234/HomeController/Index1?name=xyx&eamil=xyz@mail.com
[HttpGet] public ActionResult Index1(string name, string email) { //get the values of name, email return View(); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)