Solution for Default Button

Sep 20, 2012 at 11:49 AM

Hi,

Very useful library for MVC applications.

And we are using it for one of our websites. And during our development, we faced one issue when we used it on registration form.

 

We had a "Register" button as our default button for this form, but when we put this XCaptcha code to render a captcha security code on this form, the default button property was not working.

 

So, when we click on "Register" button, it was just refreshing the captcha code. So, to resolve this issue, I have locally made an update in your code in file "HtmlHelperExtensions.cs" and made that "refresh" button to render as an "anchor" tag instead of a "Button" tag. This resolved issue for me.

 

Thank you,

Suhani,