Hi,
I am trying to access value from nested datalist .but m not getting value of inner data list .Please help me .
Example 1-Datalist is outer side
2-Datalist is inside of outer datalist
In inner datalist is a textbox and when we click on outer datalist edit event ,value of inner datalist should be fetched. But i am not able to fetch data.

Deepak SainiRank #2,411 · 586 reputationPosted Apr 12, 2015, 10:52 PM EDT
you use foreach loop to collect the data on a spacific id based and fatch into next datalist.....
Swatantra Mishra5 reputationPosted Apr 12, 2015, 11:22 PM EDT
Deepak SainiRank #2,411 · 586 reputationPosted Apr 12, 2015, 11:32 PM EDT
you perform this work on OnItemDataBound to fatch to inner datalist..find this datalist and display your data.......i hope that i will give a Example very soon
Deepak SainiRank #2,411 · 586 reputationPosted Apr 12, 2015, 11:35 PM EDT
Dear Swatantra, protected void ui_dlst_ETLMainInformation_ItemDataBound(object sender, DataListItemEventArgs e) { if (e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType.AlternatingItem) { Customer c = e.Item.DataItem as Customer; DataList innerDataList = e.Item.FindControl("innerDataListControl") as DataList; ListCustomers> customers = ((IList)Session["CustomersCollection"]).CastCustomers>().ToList(); Customer customer = customers.Find(ct => ct.ID == c.ID); innerDataList.DataSource = customer.Orders; innerDataList.DataBind(); } } and your perform edit option in inner data list ItemDataBound and this cant be perfrom inner update panel ......