hi

<asp:ListView ID="lvTabs" runat="server">
                    <LayoutTemplate>
                         <table>
                           <thead>
                                <tr>
                                    <th>Icons</th>
                                    <th>Tabs</th>
                                    <th>Discription</th>
                                </tr>
                            </thead>
                           
                            <tr id="itemPlaceholder" runat="server"></tr>
                        </table>
                    </LayoutTemplate>
        
                    <ItemTemplate>
                        <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>
                        <td></td>
                        </tr>
                    </ItemTemplate>
       
                </asp:ListView>

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 for postonoh

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, networking, learning, and sharing knowledge.