Click here to Skip to main content
15,910,277 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how to compare the textbox data with sql data on Button click after comparison it will goes to next page
Posted
Comments
Dhanamanikandan 26-Apr-12 8:42am    
Do u know to get data from the SQL using ADO.Net/Linq?
Sandeep Mewara 26-Apr-12 10:00am    
Did you try anything? Sounds straight forward, where did you got stuck?

1 solution

You could try the following query.
SQL
select count(a) from table1 where a = 'value of textbox'.

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

Regards
Sebatian
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900