Web Forms :: How To Add Captcha Image Validation
Jun 23, 2012I want to have the captcha image validation where users need to enter the text shown in image.
View 1 RepliesI want to have the captcha image validation where users need to enter the text shown in image.
View 1 RepliesI have implemented captcha in my Register.aspx page. I am verifying captcha at server side. here is the code which is working fine.
protected void CreateUserWizard1_CreatedUser(object sender, EventArgs e)
{
bool IsCaptcha;
IsCaptcha = validateCaptcha();
if (IsCaptcha == true)
StringBuilder bodyMsg = new StringBuilder();
TextBox textBoxUserName = (TextBox)CreateUserWizard1.CreateUserStep.ContentTemplateContainer.FindControl("UserName");
[code]...
how you have implemented mathematics type captcha in comments sections in URL...I like to implement this type of captcha security, its more clean and user friendly.
View 1 Repliesi have a image control that show Captcha...
Problem:in the Host(not local system) Captcha show only one image that created for first time,but in my local system every things is right,and captcha change for every page load...
i think image can't find server folder address and always show first produced image!!!
see code:
[Code]....
where is the problem?
notice:when i see server "Upload" folder and "AddIntuitionReflexRandom.gif" file,content change truly,but that can't show in my image.
How can I bind image control with captcha from generic handler using jquery.
View 1 Replieshow can i use CAPTCHA Image Verification in C#
View 10 RepliesI'm implementing captcha on my website like the one in [URL]. It is working fine while running on VS2008. However, not when uploaded on IIS. I think the image is being blocked by IIS.. anyone knows how to fix this?
View 1 RepliesI am using the ASPNET_Captcha control for my login page. It works fine. However when i implement the forms authentication, the catcha image does not appear.
Do i need the location section in the web.config file? If yes can you share the details for the same.
I have a web application running asp.net and SQL Server 2008.
When i run the site within VS2008, the captcha image works fine, but when i run the site via the internet i have no captcha image.
I used a custom captha inside my mvc application and it works perfectly fine in local but in production it isn't being generated. why is that?
I used the following statement for saving the image. do you think it is beacuse of that?
[Code]....
[URL]
I have implemented as writeen in the aritcle but the captcha image is not being shown when I run the application.why
captcha which supports in MVC application and allow captcha image to refresh with "Genreate new image" link.
View 5 RepliesI have issue in Mathematical captcha, its not working in IIS,Image path not getting, it shows altertext "Captcha".
View 1 RepliesI have implemented captcha control in my webpage based on the article How to implement Captcha in ASP.Net.
It is working fine when running through the VS IDE, but when i deployed the website in IIS 8 (Windows 8.1) server the captcha image does not show.
I tried this link to generate verification Image [URL] ..... It works fine.
But I'd like to put a button in page for regenerating captcha for example. When the image was unreadable for user.
So I put an updatepanel in page and this is my code:
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<tr> <td colspan="2">
<asp:Image ID="imCaptcha" ImageUrl="~/Captcha.ashx" runat="server" />
[Code] .....
Although the image changes but the whole page is refreshed. Whether this is due to incompatibilities httphandler and updatepanel?
i want to upload particular image file in asp.net and i m using regularexpressionvalidation but there is some error occurs so please help me.. i m using this syntex..
<asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="FileUpload1"
ErrorMessage="Only .jpg,.gif,.png files are allowed..." ValidationExpression="[^.].jpg$"></asp:RegularExpressionValidator>
I'm having trouble accomplishing the above. Below is all the mark up and code. I'm not getting error messages, but the validate image function is not working (fileupload portion is working ok).
In my attempt below---not sure if it's the simplest or best validation approach anyway---the "UserId" parameter appears during rendering to be empty---but in most methods I have it successfully containing or referring to the logged-in user's identification.
Following is the control that refers to the image field (page = advertisement.aspx):
<asp:Image ID="Image" runat="server" ImageUrl ='<%#Eval("UserId","Image.aspx?UserId={0}") %>'
Following is the successful code behind for the page image.aspx referred to above (page = image.aspx.vb):
[code]....
I am using one datalist control for uploading multiple images.I hv used one Asp:FileUplaod Control and one button in one itemtemplate.I am using reqired field validator and regular expression validator for file upload cntrl I am assigning validation group for both of them on ItemDataBound event of my datalist so that each upload cntrl hv same validaton group as required field and regular expression validator.Now what i want to do is - i want to show my error message in validation summary which is right at the top of the page.I want one know how to write javascript that will assign validation group of my control in datalist on which i click ?
View 1 Repliesi want to add captcha in my website.
View 1 RepliesMy question to all. I have a feedback form php form. Here its code.
[Code]....
I wish to insert in this form CAPTCHA. There is for somebody have a code CAPTCHA which well works? And how to me it to insert?
How to set voice in Captcha validation
View 1 RepliesThe captcha is working fine..but when we reload the page and click the verify button without entering enything..it's throwing error. Also it's throwing the error when we enter the code wrong 2 times..It's throwing the error as
Object reference not set to an instance of an object.
Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.
Line 15:protected void btnVerify_Click(object sender, EventArgs e)
Line 15: {
Line 16: Captcha1.ValidateCaptcha(txtCaptcha.Text.Trim());
Line 17:
Line 18: if (Captcha1.UserValidated)
i had created a captcha coz by reffering a blog
http://nanddeepnachan.blogspot.com/2008/06/captcha-for-sharepoint-blog.html. its successfully can run after i deploy it.
I created a feedbackForm in aspx, then add the captcha web part. the captcha appeared in feedbackForm, but the problem is the data tat i added in feedbackForm cant insert in sharepoint list...
.aspx
[Code]....
.aspx.cs
[Code]....
i had created a aspx page..Feedback and i had created the captcha coding... both i created in different folder...i wanna link the Feedback form with the captcha... -wen i want send the feedback, i have to write the captcha...after tat only can send.. how to link the form n captcha??
View 4 RepliesI would like to do the validation work using javascript or jquery in onclientclick and then show blockUI, next page using server click. But, I have a captcha validation in server click and I don't know how to validate the captcha in jquery or javascript.
protected void btnRegister_Click(object sender, EventArgs e) {
lblMessage.Text = ""; if (Page.IsValid) { if (txtUserName.Text == "") {
lblMessage.Text = "نام کاربری را وارد نمائید";
txtUserName.Focus(); return;
} if (!BLL.IsStrictPassword(txtPassword.Text)) {
lblMessage.Text = "طول کلمه عبور حداقل باید 5 کاراکتر باشد";
txtPassword.Focus(); return; } if (ddlYear.Text == "<سال>"
|| ddlMonth.Text == "<ماه>" || ddlDay.Text == "<روز>") {
lblMessage.Text = "لطفا تاریخ تولدتان را وارد نمائید";
return; } if (!chk_Low.Checked) {
lblMessage.Text = "برای عضویت می بایست قوانین سایت را بپذیرید"; return; } if (txtSecurityCode.Text == String.Empty) {
.Text = "کد امنیتی را وارد نکرده اید";
txtSecurityCode.Focus(); return; } secCode.ValidateCaptcha(txtSecurityCode.Text);
if (!secCode.UserValidated) {
lblMessage.Text = "کد امنیتی نادرست وارد شده است";
return; } try { //some code } }