Can some help me with the syntax, ADo.net C# dataset query

Discussion in 'ASP .Net' started by khawar, Jul 18, 2003.

  1. khawar

    khawar Guest

    hi every body
    i need help
    i have a dataset called ds, which contains a table called
    login_table, which contains three columns, namely (login,
    password, email).
    Now the question is that, can someone translate this query
    in correct syntax of C#:
    "select email from login_table where login='john'"

    i want some thing like following, and i don't know the
    correct syntax:
    string email=ds."select email from login_table where
    login='john'"

    basically save the scalar(string in this case) value to an
    string called email.

    all help will be appriciate, help the needy coder
    bye
    khawar, Jul 18, 2003
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. nita
    Replies:
    1
    Views:
    869
    Saravana
    Nov 20, 2004
  2. ronaldlee

    Transfer ADO Code to ADO.NET

    ronaldlee, Dec 17, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    454
    Kevin Spencer
    Dec 17, 2004
  3. Replies:
    0
    Views:
    1,311
  4. Timo
    Replies:
    2
    Views:
    451
  5. Good Night Moon
    Replies:
    9
    Views:
    280
    Rick DeNatale
    Jul 25, 2007
Loading...

Share This Page