DataList control application. You can handle users click event. In the ASPX code: DataList2.datasource = ds.tables ["khda"]. DefaultView; DataList2.DATABIND (); Void DataList_ItemCommand (Object Sender, DatalistCommandeventArgs E) {DataList2.Selected Index = E.Item.itemindex; Bindlist ();} The original display: Click on its "Details" to display the following: Of course, you want to set in DataList: SelectedItemTemplate < TD> Details TD> <% # DataBinder.eval (Container.DataItem, "khbh")%> <% # databinder.eval (container.DataItem, "khmc")%> <% # databinder.eval (container.dataitem, "khbh")% > <% # Databinder.eval (container.dataitem, "khmc")%> <% # DataBinder.eval (Container.DataItem, "khbh")%> <% # databinder.eval (container.DataItem, "khmc")%> <% # DataBinder.eval (Container.DataItem, "khbh")%> <% # databinder.eval (container.DataItem, "khmc")%> <% # DataBinder.eval (Container.DataItem, "khbh")%> <% # databinder.eval (container.DataItem, "khmc")%> <% # DataBinder.eval (Container.DataItem, "khbh")%> <% # databinder.eval (container.DataItem, "khmc")%> <% # DataBinder.eval (Container.DataItem, "khbh")%> <% # databinder.eval (container.DataItem, "khmc")%> <% # DataBinder.eval (Container.DataItem, "khbh")%> <% # databinder.eval (container.DataItem, "khmc")%> <% # DataBinder.eval (Container.DataItem, "khbh")%> <% # databinder.eval (container.DataItem, "khmc")%> Customer Name: <% # DataBinder.eval (Container.DataItem, "KHMC")%>
Address: <% # DataBinder.eval (Container. DataITEM, "KHDZ")%>
Customer Phone: <% # DataBinder.eval (Container.DataItem, "KHDH")%>
Registration Date: <% # ((DateTime) DataBinder.eval (Container. DataItem, "DJRQ"))%> td> also: ItemTemplate setting: Td> <% # databinder.eval (container.DataItem, "khmc")%> td> tr>