Hai all i wrote this lines for catching id in registration page
then i m getting this eror
int i = v.InsertUserRegistration(user.Name, user.Gender, user.Education, user.MobileNumber, user.EmailId, user.IsActive);
//storing data in session for nexpage
if (i != 0)
{
name = Session["Name"].ToString();---object referene not set to instance of object
userid = (int)Session["Id"];
Email = Session["EmailId"].ToString();
}
TempData["notice"] = "Successfully registered";
return RedirectToAction("CreatePassword");
}
i need to pass the id to anothe page ... any help
TIA

Bhuvanesh MohankumarRank #310 · 8.1K reputationPosted May 17, 2016, 1:02 AM EDT
I believe you are using MVC.
aditya immadi144 reputationPosted May 17, 2016, 1:13 AM EDT
Ravi PatelRank #439 · 5.7K reputationPosted May 17, 2016, 1:13 AM EDT
aditya immadi144 reputationPosted May 17, 2016, 1:26 AM EDT
Ravi PatelRank #439 · 5.7K reputationPosted May 17, 2016, 1:49 AM EDT