.Net 2.0 的 ReCaptcha 与现场其他表单冲突
我已经阅读并重新阅读了该网站上的多篇文章以及其他似乎涉及类似主题的文章,但建议的修复程序都不适合我。
Asp.net 2.0 站点,具有母版页和多个用户控件。我有一个登录用户控件,允许用户在网站上登录/注册。我还有一个完全独立的控件,其中包含用户可以填写以付款的表单。我在这个表单中添加了一个 reCaptcha(与 .net 2.0 兼容的版本)并且它可以工作。
但是,一旦我将其添加到网站上的任何位置,我就无法再登录,登录表单会提交,但只是刷新而不采取任何操作,登录详细信息是正确的。
我认为这与验证组有关,所以我(通过自定义验证器)向 reCaptcha 添加了一个验证组(该站点上的一个线程建议了该解决方案) - 这不起作用,同样的问题。
然后,我将登录控件更改为模板,以便我可以手动设置它的验证组,因为我在这里也看到了这个建议 - 再次不起作用 - 相同的刷新问题。
我不知所措,一旦我在网站上的任何位置添加包含验证码的用户控件,我的登录就停止工作。
我无法升级到 .net 3.5 +,因为该网站已经完全构建并正常运行。
谁能提出任何可以让这两个人很好地合作的建议?
I've read and re-read multiple posts on this site and others that seem to touch on a similar topic but none of the suggested fixes work for me.
Asp.net 2.0 site, has Master pages and multiple user controls. I have a login user control that allows a user to login / register on the site. I've also an entirely separate control with a form that a user can fill out to pay money. I added a reCaptcha (the version compatible with .net 2.0) to this form and it works.
However, once I add it ANYWHERE on the site I can no longer login, the login form submits but just refreshes with no action taken, login details are correct.
I thought it was to do with Validation groups so I added (via a custom validator) a validation group to the reCaptcha (a thread on this site suggested that solution) - this didn't work, same problem.
I then changed the login control to a template so I could set it's Validation Group manually as I saw this suggested here as well - again didn't work - same refresh issue.
I'm at a loss, as soon as I add the usercontrol that contains the recaptcha anywhere on my site, my login ceases to work.
I can't upgrade to .net 3.5 + as the site is fully built and functional already.
Can anyone suggest anything that might make these two play nicely together?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
是否可能是因为 recapctha(未正确填写时)使您的页面无效?当您提供正确的登录详细信息并正确填写验证码表单时会发生什么?
Is it maybe because the recapctha (when not filled correctly) makes your page not valid? What happens when you provide correct login details and also correctly fill the recaptcha form?