Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

355
Views
Is there a way to check if textbox information exists in the database without clicking the button after typing in a textbox?

I intend to check the user's work ID based on the user's input in the text box, and I intend to redirect the user to the edit page as soon as the existing username is entered. For the time being, I have this code. I was attempting to cache the entire table column and then refer to it in the text box, but I'm getting the following errors. I'm not sure what I'm missing here.

Errors

error CS1513: } expected
error CS1519: Invalid token 'return' in class, struct, or interface member declaration
error CS1022: Type or namespace definition, or end-of-file expected

My code is:

protected void Work_ID_TextChanged(object sender, EventArgs e)
{

   var query = from myRow in myDataTable.AsEnumerable()
            where r.Field<string>("WorkO_ID")==Work_ID.Text
            select new
            {
                Work_ID = myRow.Field<string>("Work_ID"),
            };
    foreach (var row in query)
    {
       System.Diagnostics.Process.Start(new ProcessStartInfo
    {
        FileName = "edit",
        UseShellExecute = true
    });
    }
}
about 4 years ago · Santiago Gelvez
1 answers
Answer question

0

It should not be indented beneath anything; it should be able to stand on its own.

about 4 years ago · Santiago Gelvez Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!