2 Attachment(s)
[RESOLVED] How can detect which dynamic CommandButton was pressed?
Hi,
I create some textboxes and the button dynamically in form.
Attachment 168515
Please recommend a solution for defining textboxes on the line on which the button was pressed. :confused:
Also,a quick example of project here:
Attachment 168517
Re: How can detect which dynamic CommandButton was pressed?
1 Attachment(s)
Re: How can detect which dynamic CommandButton was pressed?
Quote:
Originally Posted by
sergeos
Hi,
I create some textboxes and the button dynamically in form.
Attachment 168515
Please recommend a solution for defining textboxes on the line on which the button was pressed. :confused:
Also,a quick example of project here:
Attachment 168517
The "proper" way to handle that is using arrays and not dynamically creating controls.
The code will be simpler and will avoid confusion.
Nonetheless, it can be done with your current approach and attached is an example that adds a couple of classes to handle the events.