Hi,
I have a datatable like shown below
User Password
user1 pwd1
pwd1 pwd2
I have two textbox where the user will enter user name and password.
How can I check if user name matches and password is entered wrongly.
var userPassword = (from m in dt.AsEnumerable() where m.Field
select m).Any();

Manas MohapatraRank #182 · 13.2K reputationPosted Oct 25, 2016, 11:27 PM EDT
Salman BegRank #284 · 8.8K reputationPosted Oct 25, 2016, 11:22 PM EDT
Manas MohapatraRank #182 · 13.2K reputationPosted Oct 26, 2016, 2:03 AM EDT
Ifour Hiren61 reputationPosted Nov 3, 2016, 4:14 AM EDT
var userPassword = (from m in dt.AsEnumerable() where m.Field("User") == Usr && !(m.Field("Password") == sPwd)
select m).count();Vignesh KumarRank #1,578 · 1K reputationPosted Oct 25, 2016, 11:30 PM EDT