Click here to Skip to main content
14,767,265 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i am adding buttons dynamicaly to repeater.. button displays well.. but when i click button event does not get fired.. i tried both OnCLick of button and comamndname of button (so that i can have itemcommand of repeater..) but both wrere in vain.. Kindly assist me.. Thanks...

just a piece of code here.. but not complete.. forgive me..

"<span>" + lstFlightSegment[i].Attribute("Duration").Value + "</span></div><div class=\"duration_time_mid\">" + StopOver + "</div>" +
   "</td><td class=\"fare_tab1\"><div class=\"fare_tab_top\"><span>Rs</span> " + totalFare + "</div><div class=\"fare_tab_btm\">Inclusive of all Taxes</div></td>" +
   "<td class=\"book2\"><div class=\"book1_top\"><div runat=\"server\" id=\"mydiv\">" + ControlRenderToString(btn) + "</div>"


ControlRenderToString(btn)
method displays button in every item of item template
Posted

1 solution

May be you check for the client side ID to access that element.
   
Comments
sridhargiri 25-Sep-13 1:09am
   
i updated the button atrributes to clientidmode=static.. but still no fruit

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900