c# - How to add Pre render Event to a repeater control -


need adding pre render event repeater control change value of text box placed inside repeater control.

how write code behind this? started

protected void rptservices_prerender(object sender, eventargs e) { } how access text box in repeater control , assign new value

you can add event loop items in repeater finding textbox need , making edits needed.

foreach (repeateritem item in rptservices.items) {     if (item.itemtype == listitemtype.item || item.itemtype == listitemtype.alternatingitem)     {        var textbox = (textbox)item.findcontrol("tbx");         //do textbox        textbox.text = "test";     } } 

Comments