<asp:ListView ID="lvTabs" runat="server">
                            <tr id="itemPlaceholder" runat="server"></tr>
                        <td class="ListViewIcon"><asp:Label runat="server" ID="lblId"></asp:Label></td>
                        <td class="ListView"><asp:LinkButton Font-Underline="false" runat="server" ID="Tabs"><%# Eval("Tabs")%></asp:LinkButton></td>
                        <td class="ListView"><asp:Label runat="server" ID="lblType"><%# Eval("Dis")%></asp:Label></td>

and on click event Code is

Protected Sub lvTabs_ItemCommand(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.ListViewCommandEventArgs) Handles lvTabs.ItemCommand
        Dim dataItem As ListViewDataItem = CType(e.Item, ListViewDataItem)
        Dim TabsName As LinkButton = CType(dataItem.FindControl("Tabs"), LinkButton)
        txtTno.Text = TabsName.Text
    End Sub

The problem is when i click an item i want to get that name. But its empty i mean the result of tabsname.text is empty

please help

Member Avatar

What is txtTno.Text I don't see this in the code.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.