I create a button in asp.net, put onclick "testBotao", and press f7, but it does not load the event, just the pageLoader. How do I capture the event?
I create a button in asp.net, put onclick "testBotao", and press f7, but it does not load the event, just the pageLoader. How do I capture the event?
When typing OnClick=""
you can press Ctrl + Space within the quotation marks and select <Create New Event>
Andyourmethodwillbecreatedinthecodebehind.
onclick="btnMeuBotao_Click"
and not onclick"testeBotao"
and in the behind do:
protected void btnMeuBotao_Click(object sender, EventArgs e)
{....}