Getting a ClientID of a control in the footer

Discussion in 'ASP .Net Web Controls' started by Jon Turner, Oct 10, 2003.

  1. Jon Turner

    Jon Turner Guest

    How do you get the client ID of a control located within the footer ?


    Thanks
     
    Jon Turner, Oct 10, 2003
    #1
    1. Advertising

  2. Jon Turner

    Teemu Keiski Guest

    Hi,

    technically it ain't any different from getting the ClientID normally from
    control that is using ClientID property. On containing Control's PreRender
    event you could get it for example. Getting the ClientID is too early at
    ItemCreated as containing control (I assume you mean Repeater, DataGrid or
    DataList here) has not yet added the child control to the control tree yet,
    so ClientID is not resolved yet, though you could get reference to the child
    control at ItemCreated but check the ClientID from this reference at
    PreRender. That should do it.

    --
    Teemu Keiski
    MCP, Microsoft MVP (ASP.NET), AspInsiders member
    ASP.NET Forum Moderator, AspAlliance Columnist

    "Jon Turner" <> wrote in message
    news:...
    > How do you get the client ID of a control located within the footer ?
    >
    >
    > Thanks
    >
    >
     
    Teemu Keiski, Oct 12, 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. Maras
    Replies:
    1
    Views:
    3,170
    Cowboy \(Gregory A. Beamer\)
    Oct 15, 2003
  2. Alexandre Soares

    getting ClientID of control inside datagrid item

    Alexandre Soares, Oct 3, 2004, in forum: ASP .Net
    Replies:
    0
    Views:
    758
    Alexandre Soares
    Oct 3, 2004
  3. Adam Clauss

    Getting server control from it's clientId

    Adam Clauss, Apr 10, 2006, in forum: ASP .Net
    Replies:
    0
    Views:
    415
    Adam Clauss
    Apr 10, 2006
  4. Henrik
    Replies:
    1
    Views:
    449
    Ken Cox [Microsoft MVP]
    Jul 6, 2006
  5. Rickey Whitworth

    Getting the ClientID of a control in a GridView EditTemplate

    Rickey Whitworth, Nov 10, 2005, in forum: ASP .Net Web Controls
    Replies:
    1
    Views:
    417
    Rickey Whitworth
    Nov 10, 2005
Loading...

Share This Page