Thursday 15 April 2010

asp.net - Access User control Id used in aspx page in the user control code behind -



asp.net - Access User control Id used in aspx page in the user control code behind -

i have user command registered , placed in aspx page.

<%@ register tagprefix="uc1" tagname="client" src="/pagelayout/client.ascx" %> <uc1:client id="idclient1" runat="server"></uc1:client>

i access id "idclient1" in codebehind of user command client. can tell how can access ?

thanks

in code behind can access command id using me.id in vb or this.id in c#.

in vb.net

me.id

in c#

this.id

asp.net c#-4.0 user-controls

No comments:

Post a Comment