Click here to Skip to main content
15,902,114 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
[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;
        }

I have 2 project(connected).The 1st one C# Windows 8 app. 2nd one is ASP.NET Web Forms. I have a list in the web service . But i cant transfer this to Windows 8 app. I can't use "Response" in there. How can i make this?
Thanks in advance.
====Solution= If we add [Serializable] on the class the problem was dissappear.====
Posted
Updated 24-Jun-13 1:25am
v3

1 solution

Answered only to remove from unanswered list: solved by OP.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900