[WebMethod] public List<string> getParameters() { DataSet ds = new DataSet(); string connect = "Data Source=BERKAY-PC\\SQLEXPRESS;Initial Catalog=Hastahane;Integrated Security=True;"; SqlConnection deneme = new SqlConnection(connect); //SqlCommand komut = new SqlCommand("SELECT * FROM [User]", deneme); SqlDataAdapter da = new SqlDataAdapter(); da.SelectCommand = new SqlCommand("SELECT * FROM [User]", deneme); da.Fill(ds, "[User]"); List<string> AdSoyadcek = (from TC in ds.Tables["[User]"].AsEnumerable() select TC.Field<string>("AD") + " " + TC.Field<string>("SOYAD")).ToList(); return AdSoyadcek; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)