dharmendr says:
Hi,
Refer the below links.
when i'm inserting code below
[HttpPost]
[RecaptchaControlMvc.CaptchaValidatorAttribute]
and above
public ActionResult Register(RegisterModel model)
{
if (ModelState.IsValid)
{
// Attempt to register the user
MembershipCreateStatus createStatus;
Membership.CreateUser(model.UserName, model.Password, model.Email, null, null, true, null, out createStatus);
if (createStatus == MembershipCreateStatus.Success)
{
FormsAuthentication.SetAuthCookie(model.UserName, false /* createPersistentCookie */);
return RedirectToAction("Index", "Home");
}
else
{
ModelState.AddModelError("", ErrorCodeToString(createStatus));
}
}
// If we got this far, something failed, redisplay form
return View(model);
}
//
// GET: /Account/ChangePassword
[Authorize]
public ActionResult ChangePassword()
{
return View();
}
then it gives a error
Error 1 The type or namespace name 'RecaptchaControlMvc' could not be found (are you missing a using directive or an assembly reference?) c:\users\documents\visual studio 2010\Projects\MvcApplication1\MvcApplication1\Controllers\AccountController.cs 76 10 MvcApplication1