c# - Dynamically add button at certain position -
i want dynamically add buttons in loop after specific text. have site questions , answer , want have 'vote best answer' button each question. consider following:
for (int = 0 ; < num_of_answers ; i++) { //print answer...done //add button mark best... how? }
it can lead script, point is, when button added, goes bottom of page , not near question want it. know how add button, how position want it?
it not idea make controls dynamically in asp.net because of hard or in complex cases impossible handle events .
instead can use repeater control.
here examples
i can make example if want.
Comments
Post a Comment