Powered by MSDN

US - English
NEW! Silverlight 5 is available Learn More

  • josh100

    josh100

    Member

    50 Points

    86 Posts

    Re: return datarow from WebMethod

    May 19, 2008 10:35 AM | LINK

    dr.read do not make compilation error.

    when the method return string, it's ok.

    if (dr.Read())

    TheResult = dr["usid"].ToString();

    else

    TheResult = "wrong";

    return TheResult;

     can i returned the whole row from database with datarow ?