Quantcast
Channel: Web Forms
Viewing all articles
Browse latest Browse all 23244

How to call server side event from dynamically created control in Repeater?

$
0
0

Hi,

I am using repeater control there I used to bind the one button control dynamically based on status. When I click the button the postback occures but not able to call the server side button click event.

here is the code I used in repeater control;

<%# (String.Equals(DataBinder.Eval(Container.DataItem, "Status").ToString(), "Verified", StringComparison.CurrentCultureIgnoreCase)) ? " <input type=\"submit\" id=\"btnRemove\" name=\"btnRemove\" onserverclick="btnRemove_click" value=\"Remove\">" : " <input type=\"submit\" id=\"btnAccept\" name=\"btnAccept\" onserverclick="btnAccept_click" value=\"Acc\">"

-Thanks


Viewing all articles
Browse latest Browse all 23244

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>