Witam,
Jak umieścić wartość np. z pierwszej kolumny ("nazwa") zaznaczonego rekordu ListView1 w komponencie np Label1.Text na zdarzenie ListView1_SelectedIndexChanged ?
<asp:XmlDataSource runat="server" ID="xmlSource" XPath="nazwy/nazwa"
DataFile="~/dane.xml"></asp:XmlDataSource>
<asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
<asp:ListView ID="ListView1" runat="server" DataSourceID="xmlSource">
<ItemTemplate>
<%#XPath("@name") %>
</ItemTemplate>
</asp:ListView>
a tu zdarzenie:
<code class="c#">protected void ListView1_SelectedIndexChanged(object sender, EventArgs e)
{
Label1.Text=ListView1. ?????????????????
}
Niby drobiazg, ale ma duże znaczenie.
Barrrrrdzo dziękuję za pomoc.