Correct me if I'm wrong, but why are you not using a Repeater or DataList
control? Using these would allow you to use databinding rather than a while
loop. Using databinding makes it easier to do layout and usually requires
less code. Perhaps if I could see your code I might be able to be more
specific about what I would suggest.
--
Nathan Sokalski
nj********@hotmail.com http://www.nathansokalski.com/
<Fr***********@gmail.comwrote in message
news:11********************@r23g2000prd.googlegrou ps.com...
How do I dynamically generate <ASP:buttoncontrols for a repeating
recordset (using reader with while loop).
Each row would have ASP:Button and CommandName="sameFunctionForAll()"
CommandArgument=reader["ProductID"].ToString()
I'm not at all sure how to tackle this.
I have page that contains embedded .ASCX. The buttons would be
displayed within the embedded web user control.
Thanks.
F.Z.