asp.net mvc 4 - RedCaptcha After 3 failed three Attempts -


may questions have been asked haven't found on mvc context.

i have implemented of how add recaptcha asp.net mvc4 register form

recaptcha need rendered after 3 failed attempt. render it, shall requires new partial view, or go same view. if same view ,what modification required. may sound stupid that's how learn things .

you can add counter in viewmodel increment each failed attempt.

then, in view, can choose display control, example if using microsoft.web.helpers:

@if (model.counter > 3) {    @recaptcha.gethtml(theme: "white") } 

Comments

Popular posts from this blog

How to mention the localhost in android -

php - Calling a template part from a post -

c# - String.format() DateTime With Arabic culture -