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 PatelRank #439 · 5.7K reputationPosted Aug 14, 2017, 3:00 AM EDT
Akshay PhadkeRank #161 · 14.6K reputationPosted Aug 13, 2017, 11:17 PM EDT
Kailash Polai195 reputationPosted Aug 14, 2017, 1:02 AM EDT
Akaash Chintamani MeherRank #5,130 · 310 reputationPosted Aug 14, 2017, 2:12 AM EDT
Puneet KankarRank #446 · 5.6K reputationPosted Aug 14, 2017, 3:58 AM EDT
Gokhul VarmanRank #1,505 · 1.1K reputationPosted Aug 14, 2017, 4:05 AM EDT