[CLOSED] asp listview with ext button

  1. #1

    [CLOSED] asp listview with ext button

    Hi,

    Is it possible to do the following code? I am getting an exception on the button click.

    Exception: The control with ID 'ctl00_ctl00_center_center_ListViewNoticia_ctrl0_B tn' not found

    Thanks

           <asp:ListView ID="ListViewNoticia" runat="server">
                                <ItemTemplate>
                                    <ext:LinkButton ID="Btn" Text='<%# Eval("Titulo")%>' runat="server">
                                        <DirectEvents>
                                            <Click OnEvent="PopulateNoticia">
                                                <ExtraParams>
                                                    <ext:Parameter Name="Id" Value='1' />
                                                </ExtraParams>
                                            </Click>
                                        </DirectEvents>
                                    </ext:LinkButton>
                                </ItemTemplate>
                            </asp:ListView>
    Last edited by Daniil; Apr 06, 2011 at 2:49 PM. Reason: [CLOSED]
  2. #2
    Hi,

    It is not possible because a control must exists on server side to process direct event but in your case only one control in template exists only
    Please use DirectMethod instead DirectEvent
  3. #3
    Thank you, please, mark as solved.

Similar Threads

  1. Is it possible to add button in a listview
    By NishaLijo in forum 1.x Help
    Replies: 1
    Last Post: Mar 26, 2012, 7:08 PM
  2. [CLOSED] Button in a listview with a loginview
    By SouthDeveloper in forum 1.x Legacy Premium Help
    Replies: 10
    Last Post: Nov 18, 2011, 12:00 PM
  3. [CLOSED] ListView - Row ToolTips
    By ndotis in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Sep 30, 2011, 4:37 PM
  4. Listview within Listview
    By ctallos in forum 1.x Help
    Replies: 3
    Last Post: Sep 13, 2011, 3:15 PM
  5. [CLOSED] ListView rendering
    By ogokgol in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Mar 08, 2011, 12:23 PM

Posting Permissions