请问C#编写的Web Server如何返回多项值
例如:
[WebMethod]
public string User_Login(string User_ID, string PW)
{
string s := "";
OleDbConnection conn = new OleDbConnection("Provider=MSDAORA;Data Source=lyzw;User ID=qdgl;Password=qdgl");
OleDbCommand cmd = new OleDbCommand("Select User_Name, User_Type, To_Char(Last_Time, 'yyyy-mm-dd') from Users where User_ID=" + User_ID, conn);
try
{
conn.Open();
OleDbDataReader adp = cmd.ExecuteReader;
adp.Read();
请问如何将用户的三个值返回呢?
}
catch (Exception e)
{
return "失败";
}
finally
{
conn.Close();
}
}