Hi
I am getting this error - Cannot implicitly convert type string to system.collections.genericlist
protected void Page_Load(object sender, EventArgs e)
{
List<Data> datas = new List<Data>();
JavaScriptSerializer serializer = new JavaScriptSerializer();
Root root = new Root { status = true, data = response0.Content };
rptDatas.DataSource = root.data;
rptDatas.DataBind();
}
public class Root
{
public bool status { get; set; }
public List<Data> data { get; set; }
}
public class Data
{
public string id { get; set; }
public string name { get; set; }
}
Thanks