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


I have a user control registered and placed in the ASPX page.

  & lt;% @ Register tagprix = "uc1" tagname = "client" src = "/ PageLayout / Client.ascx"%> & Lt; Uc1: Client id = "id-client1" run = "server" & gt; & Lt; / Uc1: Client & gt;   

I want to use the id "IdClient1" in my user control client's codebeh can someone tell me how can I use it?

Thanks

In the code you use in control ID id in VB or this.ID in C #.

In VB.NET

  me.id   

in C # in

  this. ID    

Comments

Popular posts from this blog

java - ImportError: No module named py4j.java_gateway -

python - Receiving "KeyError" after decoding json result from url -

.net - Creating a new Queue Manager and Queue in Websphere MQ (using C#) -