I want my LINQ query to count the number of instances a member is present in a table based on what the user enters into a textbox.
As a result, I have the following
protected void btnSubmit_Click(object sender, EventArgs e)
{
LoginDataContext lg = new LoginDataContext();
int logincheck = (from r in lg.tblOnlineReportingLogins
where r.MemberID == tbxMember.Text.ToString()
select r).Count();
When I debug this, the value appears as 0 when I know this is not the case.
Can someone point out where I am going wrong?