FindControl in FooterTemplate

Discussion in 'ASP .Net Datagrid Control' started by tropico, Nov 6, 2003.

  1. tropico

    tropico Guest

    I all

    I've got a beautifull datalist with a ItemTemplate and a FooterTemplate

    There is a link button in the itemTemplate and Id'like to change a control
    in the FooterTemplate when someone click the buttonlink.

    So I try to use the FindControl method in the ItemCommand event of the
    datalist to access the footerTemplate control. But it always return
    null...

    Thansk for help
     
    tropico, Nov 6, 2003
    #1
    1. Advertising

  2. Hi

    [CUT]

    > So I try to use the FindControl method in the ItemCommand event of the
    > datalist to access the footerTemplate control. But it always return
    > null...


    You can acces your footer control in this way:

    Control control = e.Item.Controls[1];

    Ciao
    Giorgio
     
    Giorgio Parmeggiani, Nov 9, 2003
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Jorge Loaiza Arango

    Access to controls in <FooterTemplate>

    Jorge Loaiza Arango, Dec 21, 2003, in forum: ASP .Net
    Replies:
    1
    Views:
    643
    Jose Suero
    Dec 21, 2003
  2. =?Utf-8?B?bWFoc2E=?=

    how can I access to controls in footertemplate

    =?Utf-8?B?bWFoc2E=?=, Jul 9, 2004, in forum: ASP .Net
    Replies:
    0
    Views:
    351
    =?Utf-8?B?bWFoc2E=?=
    Jul 9, 2004
  3. Vishal

    Footertemplate is called twice?

    Vishal, Jan 12, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    348
    Scott Allen
    Jan 12, 2005
  4. Arthur Dent

    Repeater footertemplate shows on TOP

    Arthur Dent, Sep 28, 2005, in forum: ASP .Net
    Replies:
    3
    Views:
    826
    Eliyahu Goldin
    Sep 28, 2005
  5. Will Chamberlain

    Can't Populate FooterTemplate Label

    Will Chamberlain, Sep 28, 2005, in forum: ASP .Net
    Replies:
    2
    Views:
    530
    Will Chamberlain
    Sep 29, 2005
Loading...

Share This Page