如何从asp.net中的图像中读取文本。 [英] how to read text from image in asp.net.?

查看:56
本文介绍了如何从asp.net中的图像中读取文本。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好朋友,



i有一个注册表格,其中我有验证码字段,我想在按钮点击时用验证码图像中显示的字符串填充文本框。 。



任何建议都会非常有用...

hello friends,

i have a registration form in which i have captcha field and i want to fill the textbox with thee string shown in captcha image on button click..

any suggession will be very helpful...

推荐答案

你不能直接让asp.net从图像中读取字符串是不可能的!!!

但是说你有一个验证码图像你可以通过写一下将它的值存储在字符串中:

well u can''t directly make asp.net to read string from image thats impossible!!!
But say you have one captcha images u can store its values in string by writing:
string sdr= "2345";





然后验证



and then validate that

void btn1_click()
{
if (textbox.text!= sdr)
{
//write error code
}
}





如需更好的信息,请访问

如何使用Captcha



简单:)



For better info visit
How to use Captcha

Its simple :)


这篇关于如何从asp.net中的图像中读取文本。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆