0
asp.netのウェブページでcaptchaを使用する際に問題があります。 リロードとサウンドボタンがキャプチャ画像の横にないことを除いて、すべてが正常に機能しているようです。代わりに、彼らは(画像怒鳴る)キャプチャのリロードとサウンドボタン
これを解決する方法上の任意のヘルプテキストボックスの下にありますか?
コードは次のとおりです。
<fieldset>
<legend>Registration Form</legend>
<ol>
<li class="email">
<label for="email" @if(!ModelState.IsValidField("email")){<text>class="error-label"</text>}>Email address</label>
<input type="text" id="email" name="email" value="@email" @Validation.For("email") />
@* Write any email validation errors to the page *@
@Html.ValidationMessage("email")
</li>
<li class="password">
<label for="password" @if(!ModelState.IsValidField("password")) {<text>class="error-label"</text>}>Password</label>
<input type="password" id="password" name="password" @Validation.For("password") />
@* Write any password validation errors to the page *@
@Html.ValidationMessage("password")
</li>
<li class="confirm-password">
<label for="confirmPassword" @if(!ModelState.IsValidField("confirmPassword")) {<text>class="error-label"</text>}>Confirm password</label>
<input type="password" id="confirmPassword" name="confirmPassword" @Validation.For("confirmPassword") />
@* Write any password validation errors to the page *@
@Html.ValidationMessage("confirmPassword")
</li>
<li class="recaptcha">
@Html.Label("Retype the code from the picture:", "CaptchaCode")
<p></p>
@{
Captcha exampleCaptcha = new Captcha("ExampleCaptcha");
exampleCaptcha.CodeLength = 4;
exampleCaptcha.ImageSize = new System.Drawing.Size(240, 70);
exampleCaptcha.UseHorizontalIcons = true;
exampleCaptcha.UserInputID = "CaptchaCode";
exampleCaptcha.AdditionalCssClasses = "class1 class2 class3";
}
@Html.Raw(exampleCaptcha.Html)
@Html.TextBox("CaptchaCode")
</li>
</ol>
<input type="submit" value="Register" />
</fieldset>
おかげで、 Dinisの
を。 ? – Ravikumar
申し訳ありませんが、コードを元の投稿に掲載しました。 – D1N15