DataList Command event not firing on first click
Hi,
Ive got a datalist containing linkbuttons with commands attached to them. This is inside a control Ive made, instances of which are dynamically generated and added inside another containing control.
The Datalist has an ItemCommand method wired to it.
I have the problem that the ItemCommand method is not firing on the first click but waits until the second click before anything is done. I'm sure this must be a common problem but I cant find the solution. Do any of you have some advice?
The problem is the same whether I'm trying to access the ItemCommand of the datalist or an onClick event on one of the constituent linkButtons.
Ive tried dragging the code which renders the container control and generates instances of the smaller control into the PageInit of my page but with no result.
any advice?
cheers
nikkk
|