0

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

Edited by FirstProgrammer: n/a

2
Contributors
1
Reply
2
Views
5 Years
Discussion Span
Last Post by postonoh
0

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

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.