F
Frank Schumacher
Hi NG,
I encountered another problem, which I don't really understand. Maybe
someone of you can give me a clue.
I have a WebForm with multiple UserControls of the same type on it. Each
uc is distinguished by a GUID, which I store in a Label.Text.
There is a button on each uc, which will fire an event, that is catched
by the WebForm. The code for raising the event looks like this:
private void ImageButtonClose_Click(object sender,
System.Web.UI.ImageClickEventArgs e)
{
if (eventClose != null)
{
eventClose(this, this.LabelGUID.Text);
}
}
the problem is, that each second time, this function is called, the
value of this.LabelGuiD.Text is not from the uc where the Button is
pressed, but from the *next* uc in line.
I have absolutely no idea why this happens.
Thanks in advance,
Frank
I encountered another problem, which I don't really understand. Maybe
someone of you can give me a clue.
I have a WebForm with multiple UserControls of the same type on it. Each
uc is distinguished by a GUID, which I store in a Label.Text.
There is a button on each uc, which will fire an event, that is catched
by the WebForm. The code for raising the event looks like this:
private void ImageButtonClose_Click(object sender,
System.Web.UI.ImageClickEventArgs e)
{
if (eventClose != null)
{
eventClose(this, this.LabelGUID.Text);
}
}
the problem is, that each second time, this function is called, the
value of this.LabelGuiD.Text is not from the uc where the Button is
pressed, but from the *next* uc in line.
I have absolutely no idea why this happens.
Thanks in advance,
Frank