G
Geoff Pennington
I need to create a table with a moderately complex layout - so a grid
control won't quite do it. Some of the rows need command buttons. I don't
know until run time how many rows I have or which ones need the buttons.
I can add the buttons easily enough with the code
bt = New Button()
bt.Text = "Select"
bt.CommandName = "Select" & strHour
bt.CommandArgument = strHour24
sc.Controls.Add(bt)
but there doesn't seem to be a way to specify an onclick/onCommand argument,
so I can respond to the click. Suggestions?
Much obliged.
control won't quite do it. Some of the rows need command buttons. I don't
know until run time how many rows I have or which ones need the buttons.
I can add the buttons easily enough with the code
bt = New Button()
bt.Text = "Select"
bt.CommandName = "Select" & strHour
bt.CommandArgument = strHour24
sc.Controls.Add(bt)
but there doesn't seem to be a way to specify an onclick/onCommand argument,
so I can respond to the click. Suggestions?
Much obliged.