I have a login view. In that view, I am using Jquery post call to run a controller method and its returning a diff view. When I am going to run this, then its not redirect to the mentioned view pls suggest me.
thanks in adv.
The controller code is as below:
public ActionResult CheckLogin(RegistrationPL data)
{
if (ModelState.IsValid)
{
WCF_Rest_New.RegistrationServiceClient objService = new WCF_Rest_New.RegistrationServiceClient();
WCF_Rest_New.RegistrationDataContract objPL = new WCF_Rest_New.RegistrationDataContract();
objPL.EmailID = data.EmailID;
objPL.Password = data.Password;
string strResult = objService.CheckDefaultUser(objPL);
if (strResult.Equals("EXIST"))
Session["Emailid"] = data.EmailID;
return RedirectToAction("Registration", "Home");
}
return View(data);
}

Ravi PatelPosted Aug 14, 2017, 7:00 AM
Gokhul VarmanPosted Aug 14, 2017, 8:05 AM
Puneet KankarPosted Aug 14, 2017, 7:58 AM
Akaash Chintamani MeherPosted Aug 14, 2017, 6:12 AM
Kailash PolaiPosted Aug 14, 2017, 5:02 AM
Akshay PhadkePosted Aug 14, 2017, 3:17 AM