I have a page with 3 buttons that call the same page and wanted to know if you have how to see which of the 3 buttons called the page. These are Web Forms buttons.
What I did was put them to add a value in a hidden field to know on the other page who called.
protected void Button1_Click1(object sender, EventArgs e)
{
hdfLivroEscolhido.Value = "3";
}
protected void btnLivro1_Click(object sender, EventArgs e)
{
hdfLivroEscolhido.Value = "1";
}
protected void btnLivro2_Click(object sender, EventArgs e)
{
hdfLivroEscolhido.Value = "2";
}