如何使用customvalidator控件从数据库中提取数据 [英] how to pull out the data from db using customvalidator control

查看:63
本文介绍了如何使用customvalidator控件从数据库中提取数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,先生,我可以说出&这两个字吗?在使用customvalidator控件验证文本框后,从db(对于我的在线词典项目)的定义.我需要一些编码来验证txtbox中键入的单词"与数据库中的单词.

hello sir, may i know how to pull out the words & its definition from db(for my online-dictionary project), after the text box validation using customvalidator control. I need some coding to validate the ''word'' typed in txtbox with the one in the database.

推荐答案

按照 ^ ]链接以了解如何使用CustomValidator控件.在服务器验证代码中,编写代码以访问数据库,并将文本框中键入的单词与数据库中的条目进行比较.我怀疑您可以通过客户端验证来做到这一点.
Follow this[^] link to learn how to use the CustomValidator control. In your server validation code, write code to access your database and compare the word typed in the textbox to the entries in your database. I doubt you can do this with client side validation.


这篇关于如何使用customvalidator控件从数据库中提取数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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