Last post Apr 04, 2010 12:30 AM by jkirkerx
Mar 17, 2010 05:19 PM|stevesimon|LINK
I have a control that displays a list of comments. The comments are created in a loop. The problem is that I want to put a LinkButton at the end of each comment and change the CommanArgument of each button to the ID of the current comment.
When I put the Linkbutton in the CreateChildControls method and then add the CommandArgument in the Render loop, the button works, but the argument is blank. When I put the code that's in the CreateChildControls method inside of the loop, I don't get an
error, but nothing happens when the button is clicked.
Below is the relevent code ...
Apr 04, 2010 12:30 AM|jkirkerx|LINK
I've never been able to that to work.
Linkbutton is the same as button
The only thing that gets passed is
e as Eventargs, something as event.
OnClientClick or xomething