将文本框数据与asp .net中的sql数据进行比较 [英] compare the text box data with sql data in asp .net

查看:66
本文介绍了将文本框数据与asp .net中的sql数据进行比较的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何将Button上的文本框数据与sql数据进行比较,比较后将转到下一页

how to compare the textbox data with sql data on Button click after comparison it will goes to next page

推荐答案

您可以尝试以下查询.
You could try the following query.
select count(a) from table1 where a = 'value of textbox'.


将其分配给变量,如果该值为1,则表示匹配,否则为Not.

问候
Sebatian


assign this to a variable, if the value is 1, then it is matching else Not.

Regards
Sebatian


这篇关于将文本框数据与asp .net中的sql数据进行比较的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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