A
Andre
Hi.
There is a way, that I can create a dynamic ID in a WebControl.
This doesn´t work, but, looks like what I want:
<asp:Button ID="btnAdd<%="1"%>" runat="server" Text="Add Resposta"
OnClick="btnAdd_Click" />
I´ve tried to set up the id at the finish of the aspx, but, when I get
in the codebehind, the id is the original.
Doesn´t change.
What I looking for is:
I have many usercontrols in a page, I need a way to get a value that
represents the unique usercontrol clicked.
For this, I need the dynamic id in the button to diferentiate a user
control from anothers.
Changing the id in postback like this:
if (!Page.IsPostBack)
{
btnAdd.ID = "btnAdd" + _hdPerguntaID;
}
doesn´t work because I´m using ajax extensions and the page always is
in PostBack.
Thanks in advance
Andre
There is a way, that I can create a dynamic ID in a WebControl.
This doesn´t work, but, looks like what I want:
<asp:Button ID="btnAdd<%="1"%>" runat="server" Text="Add Resposta"
OnClick="btnAdd_Click" />
I´ve tried to set up the id at the finish of the aspx, but, when I get
in the codebehind, the id is the original.
Doesn´t change.
What I looking for is:
I have many usercontrols in a page, I need a way to get a value that
represents the unique usercontrol clicked.
For this, I need the dynamic id in the button to diferentiate a user
control from anothers.
Changing the id in postback like this:
if (!Page.IsPostBack)
{
btnAdd.ID = "btnAdd" + _hdPerguntaID;
}
doesn´t work because I´m using ajax extensions and the page always is
in PostBack.
Thanks in advance
Andre