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

button click event on code behind

$
0
0

Hi,

how can I assign a method to a button defined in the code behind?

my code:

Button btn = new Button();
                    btn.CommandArgument = i.ToString();
                    btn.ID = "btn" + i.ToString();
                    btn.Text = "rimuovi";
                    btn.Click=;

I want to reach the protected method deleteLotto

Thanks in advance


Viewing all articles
Browse latest Browse all 23244

Trending Articles



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