Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > Getting a ClientID of a control in the footer

Reply
Thread Tools

Getting a ClientID of a control in the footer

 
 
Jon Turner
Guest
Posts: n/a
 
      10-10-2003
How do you get the client ID of a control located within the footer ?


Thanks


 
Reply With Quote
 
 
 
 
Teemu Keiski
Guest
Posts: n/a
 
      10-12-2003
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" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> How do you get the client ID of a control located within the footer ?
>
>
> Thanks
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Any way to reorder how a datagrid is drawn (header/footer/items vs.header/items/footer)? Henrik ASP .Net Datagrid Control 1 07-06-2006 12:23 AM
Getting server control from it's clientId Adam Clauss ASP .Net 0 04-10-2006 06:53 PM
Getting the ClientID of a control in a GridView EditTemplate Rickey Whitworth ASP .Net Web Controls 1 11-10-2005 03:14 PM
getting ClientID of control inside datagrid item Alexandre Soares ASP .Net 0 10-03-2004 04:54 PM
[ASP. NET VB .NET] clientID and ClientID Maras ASP .Net 1 10-15-2003 02:04 PM



Advertisments